vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
3.0 KiB

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Timeline | Points</title>
  5. <style type="text/css">
  6. body {
  7. font: 10pt arial;
  8. }
  9. </style>
  10. <script src="../../dist/vis.js"></script>
  11. <link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
  12. <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head>
  13. <body>
  14. <h1>World War II timeline</h1>
  15. <p>Source: <a href="http://www.onwar.com/chrono/index.htm" target="_blank">http://www.onwar.com/chrono/index.htm</a></p>
  16. <div id="mytimeline" style="background-color: #FAFAFA;"></div>
  17. <div id="visualization"></div>
  18. <script type="text/javascript">
  19. var container = document.getElementById('visualization');
  20. // note that months are zero-based in the JavaScript Date object
  21. var items = new vis.DataSet([
  22. {start: new Date(1939,8,1), content: 'German Invasion of Poland'},
  23. {start: new Date(1940,4,10), content: 'Battle of France and the Low Countries'},
  24. {start: new Date(1940,7,13), content: 'Battle of Britain - RAF vs. Luftwaffe'},
  25. {start: new Date(1941,1,14), content: 'German Afrika Korps arrives in North Africa'},
  26. {start: new Date(1941,5,22), content: 'Third Reich Invades the USSR'},
  27. {start: new Date(1941,11,7), content: 'Japanese Attack Pearl Harbor'},
  28. {start: new Date(1942,5,4), content: 'Battle of Midway in the Pacific'},
  29. {start: new Date(1942,10,8), content: 'Americans open Second Front in North Africa'},
  30. {start: new Date(1942,10,19),content: 'Battle of Stalingrad in Russia'},
  31. {start: new Date(1943,6,5), content: 'Battle of Kursk - Last German Offensive on Eastern Front'},
  32. {start: new Date(1943,6,10), content: 'Anglo-American Landings in Sicily'},
  33. {start: new Date(1944,2,8), content: 'Japanese Attack British India'},
  34. {start: new Date(1944,5,6), content: 'D-Day - Allied Invasion of Normandy'},
  35. {start: new Date(1944,5,22), content: 'Destruction of Army Group Center in Byelorussia'},
  36. {start: new Date(1944,7,1), content: 'The Warsaw Uprising in Occupied Poland'},
  37. {start: new Date(1944,9,20), content: 'American Liberation of the Philippines'},
  38. {start: new Date(1944,11,16),content: 'Battle of the Bulge in the Ardennes'},
  39. {start: new Date(1944,1,19), content: 'American Landings on Iwo Jima'},
  40. {start: new Date(1945,3,1), content: 'US Invasion of Okinawa'},
  41. {start: new Date(1945,3,16), content: 'Battle of Berlin - End of the Third Reich'}
  42. ]);
  43. var options = {
  44. // Set global item type. Type can also be specified for items individually
  45. // Available types: 'box' (default), 'point', 'range', 'rangeoverflow'
  46. type: 'point',
  47. showMajorLabels: false
  48. };
  49. var timeline = new vis.Timeline(container, items, options);
  50. </script>
  51. </body>
  52. </html>