oxjs/demos/calendar/js/calendar.js

77 lines
6.3 KiB
JavaScript
Raw Normal View History

2011-04-20 11:29:34 +00:00
$(function() {
Ox.theme('modern');
new Ox.Calendar({
date: new Date(0),
dates: [
2011-04-20 13:51:10 +00:00
{name: 'Battle of Hastings', start: new Date('1066-10-14'), stop: new Date('1066-10-15')},
2011-04-20 12:44:11 +00:00
{name: 'Renaissance', start: new Date('1300'), stop: new Date('1700')},
2011-04-20 13:51:10 +00:00
{name: 'Thirty Years\' War', start: new Date('1618'), stop: new Date('1649')},
2011-04-20 12:44:11 +00:00
{name: 'Declaration of Independence', start: new Date('1776-07-04'), stop: new Date('1776-07-05')},
{name: 'French Revolution', start: new Date('1789'), stop: new Date('1800')},
{name: 'Storming of the Bastille', start: new Date('1789-07-14'), stop: new Date('1789-07-15')},
{name: 'Napoleonic Era', start: new Date('1799-11-09'), stop: new Date('1815-06-29')},
{name: 'The Year Without a Summer', start: new Date('1816'), stop: new Date('1817')},
{name: 'American Civil War', start: new Date('1861-04-12'), stop: new Date('1865-04-10')},
2011-04-20 13:51:10 +00:00
{name: 'Franco-Prussian War', start: new Date('1870-07-19'), stop: new Date('1871-05-11')},
2011-04-20 12:44:11 +00:00
{name: 'Paris Commune', start: new Date('1871-03-18'), stop: new Date('1871-05-29')},
2011-04-20 11:29:34 +00:00
{name: '20th century', start: new Date('1900-01-01'), stop: new Date('2000-01-01')},
2011-04-20 12:44:11 +00:00
{name: 'World War One', start: new Date('1914-07-28'), stop: new Date('1918-11-12')},
{name: 'Russian Revolution', start: new Date('1917'), stop: new Date('1918')},
{name: 'October Revolution', start: new Date('1917-11-07'), stop: new Date('1917-11-09')},
2011-04-20 13:51:10 +00:00
{name: 'Weimar Republic', start: new Date('1918-11-09'), stop: new Date('1933-01-30')},
2011-04-20 12:44:11 +00:00
{name: 'Treaty of Versailles', start: new Date('1919-06-28'), stop: new Date('1919-06-29')},
2011-04-20 13:51:10 +00:00
{name: '1920s', start: new Date('1920'), stop: new Date('1930')},
{name: 'Soviet Union', start: new Date('1922-12-30'), stop: new Date('1991-12-27')},
2011-04-20 11:29:34 +00:00
{name: 'The Third Reich', start: new Date('1933-01-30'), stop: new Date('1945-05-09')},
2011-04-20 12:44:11 +00:00
{name: 'Spanish Civil War', start: new Date('1936-07-17'), stop: new Date('1939-04-02')},
{name: '1936 Summer Olympics', start: new Date('1936-08-01'), stop: new Date('1936-08-17')},
{name: 'World War Two', start: new Date('1939-09-01'), stop: new Date('1945-09-03')},
{name: 'Wannsee Conference', start: new Date('1942-01-20'), stop: new Date('1942-01-21')},
{name: 'Hiroshima', start: new Date('1945-08-06'), stop: new Date('1945-08-07')},
{name: 'Nagasaki', start: new Date('1945-08-09'), stop: new Date('1945-08-10')},
2011-04-20 13:51:10 +00:00
{name: 'West Germany', start: new Date('1949-05-23'), stop: new Date('1990-10-03')},
2011-04-20 12:44:11 +00:00
{name: 'Korean War', start: new Date('1950-06-25'), stop: new Date('1953-07-28')},
{name: 'Cuban Revolution', start: new Date('1953-07-26'), stop: new Date('1959-01-02')},
2011-04-20 13:51:10 +00:00
{name: 'Algerian War', start: new Date('1954-11-01'), stop: new Date('1962-03-20')},
2011-04-20 12:44:11 +00:00
{name: 'Vietnam War', start: new Date('1955-11-01'), stop: new Date('1975-05-01')},
2011-04-20 11:29:34 +00:00
{name: '1960s', start: new Date('1960-01-01'), stop: new Date('1970-01-01')},
2011-04-20 13:51:10 +00:00
{name: 'Eichmann Trial', start: new Date('1961-04-11'), stop: new Date('1961-08-15')},
2011-04-20 12:44:11 +00:00
{name: 'Bay of Pigs', start: new Date('1961-04-17'), stop: new Date('1961-04-20')},
2011-04-20 13:51:10 +00:00
{name: 'Berlin Wall', start: new Date('1961-08-13'), stop: new Date('1989-11-09')},
{name: 'Cuban Missile Crisis', start: new Date('1962-10'), stop: new Date('1962-12')},
2011-04-20 11:29:34 +00:00
{name: 'Assassination of John F. Kennedy', start: new Date('1963-11-22'), stop: new Date('1963-11-23')},
2011-04-20 13:51:10 +00:00
{name: 'Sgt. Pepper', start: new Date('1967-06-01'), stop: new Date('1967-06-02')},
2011-04-20 11:29:34 +00:00
{name: 'Assassination of Benno Ohnesorg', start: new Date('1967-06-02'), stop: new Date('1967-06-03')},
2011-04-20 13:51:10 +00:00
{name: 'Six-Day War', start: new Date('1967-06-05'), stop: new Date('1967-06-11')},
2011-04-20 11:29:34 +00:00
{name: '1968', start: new Date('1968-01-01'), stop: new Date('1969-01-01')},
2011-04-20 13:51:10 +00:00
{name: 'My Lai', start: new Date('1968-03-16'), stop: new Date('1968-03-17')},
2011-04-20 11:29:34 +00:00
{name: 'Assassination of Martin Luther King', start: new Date('1968-04-04'), stop: new Date('1968-04-05')},
{name: 'Assassination of Rudi Dutschke', start: new Date('1968-04-11'), stop: new Date('1968-04-12')},
{name: 'May 1968', start: new Date('1968-05-01'), stop: new Date('1968-06-01')},
{name: '1968 Cannes Film Festival', start: new Date('1968-05-10'), stop: new Date('1968-05-20')},
2011-04-20 13:51:10 +00:00
{name: 'Valerie Solanas', start: new Date('1968-06-03'), stop: new Date('1968-06-04')},
2011-04-20 11:29:34 +00:00
{name: 'Assassination of Robert F. Kennedy', start: new Date('1968-06-05'), stop: new Date('1968-06-06')},
{name: 'Apollo 11', start: new Date('1969-07-16'), stop: new Date('1969-07-25')},
{name: 'Moon Landing', start: new Date('1969-07-20'), stop: new Date('1969-07-21')},
{name: 'The Epoch', start: new Date('1970-01-01 00:00:00'), stop: new Date('1970-01-01 00:00:01')},
2011-04-20 12:44:11 +00:00
{name: '1970s', start: new Date('1970-01-01'), stop: new Date('1980-01-01')},
{name: '1972 Summer Olympics', start: new Date('1972-08-26'), stop: new Date('1972-09-11')},
2011-04-20 11:29:34 +00:00
{name: 'Apollo 17', start: new Date('1972-12-07'), stop: new Date('1972-12-20')},
2011-04-20 12:44:11 +00:00
{name: '1980s', start: new Date('1980-01-01'), stop: new Date('1990-01-01')},
{name: 'Iran-Iraq War', start: new Date('1980-09-22'), stop: new Date('1988-08-21')},
2011-04-20 11:29:34 +00:00
{name: 'Tschernobyl', start: new Date('1986-04-26'), stop: new Date('1986-04-27')},
2011-04-20 12:44:11 +00:00
{name: 'Fall of the Berlin Wall', start: new Date('1989-11-09'), stop: new Date('1989-11-10')},
{name: 'Gulf War', start: new Date('1990-08-02'), stop: new Date('1991-03-01')},
{name: 'German Reunification', start: new Date('1990-10-03'), stop: new Date('1990-10-04')},
{name: 'The Battle of Seattle', start: new Date('1999-11-30'), stop: new Date('1999-12-01')},
{name: 'George W. Bush', start: new Date('2001-01-20'), stop: new Date('2009-01-20')},
2011-04-20 11:29:34 +00:00
{name: '9-11', start: new Date('2001-09-11'), stop: new Date('2001-09-12')}
],
height: window.innerHeight,
width: window.innerWidth,
zoom: 5
}).appendTo(Ox.UI.$body);
});