Browse Source

Extended example 22

v3_develop
jos 10 years ago
parent
commit
c274c092cc
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      examples/timeline/22_window_adjustment.html

+ 4
- 0
examples/timeline/22_window_adjustment.html View File

@ -24,6 +24,7 @@
<input type="button" id="focus1" value="Focus item 2"><br> <input type="button" id="focus1" value="Focus item 2"><br>
<input type="button" id="focus2" value="Focus items 5 and 6 (slow animation)"><br> <input type="button" id="focus2" value="Focus items 5 and 6 (slow animation)"><br>
<input type="button" id="focus3" value="Focus current selection"><br> <input type="button" id="focus3" value="Focus current selection"><br>
<input type="button" id="moveTo" value="Move to 2014-02-01"><br>
<div id="visualization"></div> <div id="visualization"></div>
@ -84,6 +85,9 @@
var selection = timeline.getSelection(); var selection = timeline.getSelection();
timeline.focus(selection); timeline.focus(selection);
}; };
document.getElementById('moveTo').onclick = function() {
timeline.moveTo('2014-02-01');
};
</script> </script>
</body> </body>

Loading…
Cancel
Save