From: Robert Konigsberg Date: Tue, 17 Jan 2012 00:46:21 +0000 (-0500) Subject: Cleaned up nasty table style. X-Git-Tag: v1.0.0~320^2~8 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3e81f5ddf611076f2ac869c51667ccace87223d3;p=dygraphs.git Cleaned up nasty table style. --- diff --git a/gallery/README b/gallery/README index 6c8d357..fc0e5e8 100644 --- a/gallery/README +++ b/gallery/README @@ -26,7 +26,5 @@ Tips on adding entries to the gallery TODOs: * Remove the awful tables in interaction.html (that I wrote) * Move all style to css - * Consider moving HTML to HTML files that are read via XMLHTTP * Add margin-left: 30px to #workarea, and then make #workarea h2 { margin-left: -30px} - * Standard width. No need for very wide graphs. * Remove runtime warnings. \ No newline at end of file diff --git a/gallery/interaction.js b/gallery/interaction.js index 03b30e4..69a812c 100644 --- a/gallery/interaction.js +++ b/gallery/interaction.js @@ -5,37 +5,44 @@ Gallery.register( title: 'title', setup: function(parent) { parent.innerHTML = [ - "", - "", - "", - "", - "", - "
", - "Default interaction model", - "
", - "
Zoom: click-drag
Pan: shift-click-drag
Restore zoom level: double-click
", - "
", - "No interaction model", - "
", - "
Click and drag all you like, it won't do anything!", - "
", - "
", - "Custom interaction model", - "", - "
", - "
", - "Zoom in: double-click, scroll wheel
", - "Zoom out: ctrl-double-click, scroll wheel
", - "Standard Zoom: shift-click-drag", - "Standard Pan: click-drag
", - "Restore zoom level: press button
", - "
", - "Fun model!", - "
", - "
", - "Keep the mouse button pressed, and hover over all points", - "to mark them.", - "
"].join("\n"); + "

Default interaction model

", + "
", + "

", + " Zoom: click-drag, Pan: shift-click-drag, Restore: double-click", + "

", + "
", + "
", + "", + "

Empty interaction model

", + "
", + "

", + " Click and drag all you like, it won't do anything!", + "

", + "
", + "
", + "
", // what is this? + "", + "

Custom interaction model

", + "
", + "

", + " Zoom in: double-click, scroll wheel
", + " Zoom out: ctrl-double-click, scroll wheel
", + " Standard Zoom: shift-click-drag", + " Standard Pan: click-drag
", + " Restore zoom level: press button
", + "

", + " ", + "
", + "
", + "

Fun model!

", + "
", + "

", + " Keep the mouse button pressed, and hover over all points", + " to mark them.", + "

", + "
", + "
", + ].join('\n'); }, run: function() {