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.

60 lines
2.7 KiB

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