Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>SIMILE Widgets | Timeline</title>
- <link rel='stylesheet' href='http://www.simile-widgets.org/timeline/styles.css' type='text/css' />
- <link rel="alternate" type="application/rdf+xml" href="doap.rdf" />
- <script src="http://www.simile-widgets.org/timeline/api/timeline-api.js" type="text/javascript"></script>
- <script>
- var tl;
- function onLoad() {
- // Timeline event source object
- var eventSource = new Timeline.DefaultEventSource();
- // Time divisions on the screen (zones)
- var zones = [
- { start: "Thu Apr 12 2012 00:00:00 GMT-0300",
- end: "Fri Apr 20 2012 00:00:00 GMT-0300",
- magnify: 10,
- unit: Timeline.DateTime.DAY,
- //multiple: 5
- },
- ];
- var zones2 = [
- { start: "Thu Apr 12 2012 00:00:00 GMT-0300",
- end: "Fri Apr 20 2012 00:00:00 GMT-0300",
- magnify: 10,
- unit: Timeline.DateTime.WEEK,
- //multiple: 5
- },
- ];
- // Create timeline theme object
- var theme = Timeline.ClassicTheme.create();
- theme.event.bubble.width = 250;
- // Center on screen - datetime.now()
- var date = "Fri Apr 01 2012 13:00:00 GMT-0600"
- var bandInfos = [
- Timeline.createHotZoneBandInfo({
- width: "80%", // Altura da linha o.O
- intervalUnit: Timeline.DateTime.WEEK,
- intervalPixels: 200,
- zones: zones,
- eventSource: eventSource,
- date: date,
- timeZone: -3 // Brasil - GMT -3
- //theme: theme
- }),
- Timeline.createHotZoneBandInfo({
- width: "20%",
- intervalUnit: Timeline.DateTime.MONTH,
- intervalPixels: 200,
- zones: zones2,
- eventSource: eventSource,
- date: date,
- timeZone: -3,
- overview: true
- // theme: theme
- })
- ];
- bandInfos[1].syncWith = 0;
- bandInfos[1].highlight = true;
- tl = Timeline.create(document.getElementById("tl"), bandInfos, Timeline.HORIZONTAL);
- tl.loadXML("./next.xml", function(xml, url) { eventSource.loadXML(xml, url); });
- }
- var resizeTimerID = null;
- function onResize() {
- if (resizeTimerID == null) {
- resizeTimerID = window.setTimeout(function() {
- resizeTimerID = null;
- tl.layout();
- }, 500);
- }
- }
- function themeSwitch(){
- var timeline = document.getElementById('tl');
- timeline.className = (timeline.className.indexOf('dark-theme') != -1) ? timeline.className.replace('dark-theme', '') : timeline.className += ' dark-theme';
- }
- </script>
- </head>
- <body onload="onLoad();" onresize="onResize();">
- <div id="content">
- <table class="spaced-table" width="100%">
- <tr>
- <td style="font-size: 150%; color: #888; width: 30em">
- <p>Cliente: {{cliente.name}}</p>
- </td>
- </tr>
- </table>
- <div id="tl" class="timeline-default" style="height: 350px; margin-top: 20px; margin-bottom: 50px;"></div>
- </div>
- <div id="footer">Copyright © <a href="http://web.mit.edu/">Massachusetts Institute of Technology</a> and Contributors 2006-2009 ~ Some rights reserved</div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement