X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Finteraction.js;h=fd50def744f55ded96df06566f82ce8d8f2ec315;hb=866ceb258a016484e30d2c7f96cb6cbb9ff05c8c;hp=7ef64b03b9d7a1277af378877c7a7d39deac6e2f;hpb=abfadf4c33d50d5b8f0ec97ea94c2ff60e6db38a;p=dygraphs.git diff --git a/gallery/interaction.js b/gallery/interaction.js index 7ef64b0..fd50def 100644 --- a/gallery/interaction.js +++ b/gallery/interaction.js @@ -4,38 +4,45 @@ Gallery.register( name: 'Custom interaction models', 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." + - " |
", + " Zoom: click-drag, Pan: shift-click-drag, Restore: double-click", + "
", + " ", + "", + " Click and drag all you like, it won't do anything!", + "
", + " ", + "",
+ " 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
",
+ "
", + " Keep the mouse button pressed, and hover over all points", + " to mark them.", + "
", + " ", + "