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.

58 lines
2.5 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. </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. var items = [
  21. {start: new Date(1939,8,1), content: 'German Invasion of Poland'},
  22. {start: new Date(1940,4,10), content: 'Battle of France and the Low Countries'},
  23. {start: new Date(1940,7,13), content: 'Battle of Britain - RAF vs. Luftwaffe'},
  24. {start: new Date(1941,1,14), content: 'German Afrika Korps arrives in North Africa'},
  25. {start: new Date(1941,5,22), content: 'Third Reich Invades the USSR'},
  26. {start: new Date(1941,11,7), content: 'Japanese Attack Pearl Harbor'},
  27. {start: new Date(1942,5,4), content: 'Battle of Midway in the Pacific'},
  28. {start: new Date(1942,10,8), content: 'Americans open Second Front in North Africa'},
  29. {start: new Date(1942,10,19),content: 'Battle of Stalingrad in Russia'},
  30. {start: new Date(1943,6,5), content: 'Battle of Kursk - Last German Offensive on Eastern Front'},
  31. {start: new Date(1943,6,10), content: 'Anglo-American Landings in Sicily'},
  32. {start: new Date(1944,2,8), content: 'Japanese Attack British India'},
  33. {start: new Date(1944,5,6), content: 'D-Day - Allied Invasion of Normandy'},
  34. {start: new Date(1944,5,22), content: 'Destruction of Army Group Center in Byelorussia'},
  35. {start: new Date(1944,7,1), content: 'The Warsaw Uprising in Occupied Poland'},
  36. {start: new Date(1944,9,20), content: 'American Liberation of the Philippines'},
  37. {start: new Date(1944,11,16),content: 'Battle of the Bulge in the Ardennes'},
  38. {start: new Date(1944,1,19), content: 'American Landings on Iwo Jima'},
  39. {start: new Date(1945,3,1), content: 'US Invasion of Okinawa'},
  40. {start: new Date(1945,3,16), content: 'Battle of Berlin - End of the Third Reich'}
  41. ];
  42. var options = {
  43. // Set global item type. Type can also be specified for items individually
  44. // Available types: 'box' (default), 'point', 'range', 'rangeoverflow'
  45. type: 'point',
  46. showMajorLabels: false
  47. };
  48. var timeline = new vis.Timeline(container, items, options);
  49. </script>
  50. </body>
  51. </html>