From 3e81f5ddf611076f2ac869c51667ccace87223d3 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Mon, 16 Jan 2012 19:46:21 -0500 Subject: [PATCH] Cleaned up nasty table style. --- gallery/README | 2 -- gallery/interaction.js | 69 +++++++++++++++++++++++++++----------------------- 2 files changed, 38 insertions(+), 33 deletions(-) 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() { -- 2.7.4