summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/timeline/other/timezone.html
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
commit210e8feae2fb4842bfb2de38666e6c41671fef3c (patch)
treecbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/vis/examples/timeline/other/timezone.html
parente7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff)
removed lib
Diffstat (limited to 'www/lib/vis/examples/timeline/other/timezone.html')
-rw-r--r--www/lib/vis/examples/timeline/other/timezone.html80
1 files changed, 0 insertions, 80 deletions
diff --git a/www/lib/vis/examples/timeline/other/timezone.html b/www/lib/vis/examples/timeline/other/timezone.html
deleted file mode 100644
index 8994ba98..00000000
--- a/www/lib/vis/examples/timeline/other/timezone.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>Timeline | Time zone</title>
-
- <style type="text/css">
- body, html {
- font-family: sans-serif;
- max-width: 800px;
- }
- </style>
-
- <script src="../../../dist/vis.js"></script>
- <link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
- <script src="../../googleAnalytics.js"></script>
-</head>
-<body>
-
-<h1>Time zone</h1>
-
-<p>
- The following demo shows how to display items in local time (default), in UTC, or for a specific time zone offset. By configuring your own <code>moment</code> constructor, you can display items in the time zone that you want. All timelines have the same start and end date.
-</p>
-
-<h2>Local time</h2>
-<div id="local"></div>
-
-<h2>UTC</h2>
-<div id="utc"></div>
-
-<h2>UTC +08:00</h2>
-<div id="plus8"></div>
-
-
-<script type="text/javascript">
- // Create a DataSet (allows two way data-binding)
- var today = vis.moment(vis.moment.utc().format('YYYY-MM-DDT00:00:00.000Z'));
- var start = today.clone();
- var end = today.clone().add(2, 'day');
- var customTime = today.clone().add(28, 'hour');
-
- var items = new vis.DataSet([
- {id: 1, content: 'item 1', start: today.clone().add(8, 'hour')},
- {id: 2, content: 'item 2', start: today.clone().add(16, 'hour')},
- {id: 3, content: 'item 3', start: today.clone().add(32, 'hour')}
- ]);
-
- // Create a timeline displaying in local time (default)
- var timelineLocal = new vis.Timeline(document.getElementById('local'), items, {
- editable: true,
- start: start,
- end: end
- });
- timelineLocal.addCustomTime(customTime);
-
- // Create a timeline displaying in UTC
- var timelineUTC = new vis.Timeline(document.getElementById('utc'), items, {
- editable: true,
- start: start,
- end: end,
- moment: function (date) {
- return vis.moment(date).utc();
- }
- });
- timelineUTC.addCustomTime(customTime);
-
- // Create a timeline displaying in UTC +08:00
- var timelinePlus8 = new vis.Timeline(document.getElementById('plus8'), items, {
- editable: true,
- start: start,
- end: end,
- moment: function (date) {
- return vis.moment(date).utcOffset('+08:00');
- }
- });
- timelinePlus8.addCustomTime(customTime);
-</script>
-
-</body>
-</html> \ No newline at end of file