2011-04-23 11:04:37 +00:00
|
|
|
console.log('calling Ox.UI()')
|
|
|
|
//console.log('Ox =', Ox)
|
|
|
|
//console.log('Ox.UI =', Ox.UI)
|
|
|
|
|
2011-04-27 19:24:33 +00:00
|
|
|
Ox.load('UI', {debug: true, hideScreen: true, showScreen: true, theme: 'modern'}, function() {
|
2011-04-20 11:29:34 +00:00
|
|
|
|
2011-04-23 11:04:37 +00:00
|
|
|
console.log('running Ox.UI()')
|
|
|
|
//console.log('Ox =', Ox)
|
|
|
|
|
2011-04-23 16:45:50 +00:00
|
|
|
// Ox.theme('modern');
|
2011-04-20 11:29:34 +00:00
|
|
|
|
2011-04-23 12:33:41 +00:00
|
|
|
//Ox.print('$$$$', Ox.Calendar)
|
2011-04-22 22:03:10 +00:00
|
|
|
|
2011-04-29 14:56:40 +00:00
|
|
|
Ox.Calendar({
|
2011-04-23 12:33:41 +00:00
|
|
|
date: new Date(0),
|
2011-05-25 09:22:16 +00:00
|
|
|
events: [
|
|
|
|
{name: 'The Epoch', start: '1970-01-01 00:00:00', end: '1970-01-01 00:00:01'},
|
|
|
|
|
|
|
|
|
|
|
|
{name: 'Genghis Khan', start: '1162', end: '1228', type: 'Person'},
|
|
|
|
{name: 'Marco Polo', start: '1254', end: '1324-01-08', type: 'Person'},
|
|
|
|
{name: 'Columbus', start: '1451-08-22', end: '1506-05-20', type: 'Person'},
|
|
|
|
{name: 'Da Vinci', start: '1452-04-15', end: '1519-05-02', type: 'Person'},
|
|
|
|
{name: 'Michelangelo', start: '1475-03-06', end: '1564-02-18', type: 'Person'},
|
|
|
|
{name: 'Bruegel', start: '1525', end: '1569-09-09', type: 'Person'},
|
|
|
|
{name: 'Galilei', start: '1564-02-15', end: '1642-01-08', type: 'Person'},
|
|
|
|
{name: 'Shakespeare', start: '1564-04-26', end: '1616-04-23', type: 'Person'},
|
|
|
|
{name: 'Descartes', start: '1596-03-31', end: '1650-02-11', type: 'Person'},
|
|
|
|
{name: 'Velazquez', start: '1599-06-06', end: '1660-08-06', type: 'Person'},
|
|
|
|
{name: 'Vermeer', start: '1632-10-31', end: '1675-12-15', type: 'Person'},
|
|
|
|
{name: 'Spinoza', start: '1632-11-24', end: '1677-02-21', type: 'Person'},
|
|
|
|
{name: 'Louix XIV', start: '1638-09-05', end: '1715-09-01', type: 'Person'},
|
|
|
|
{name: 'Newton', start: '1643-01-04', end: '1727-03-31', type: 'Person'},
|
|
|
|
{name: 'Leibniz', start: '1646-07-01', end: '1716-11-14', type: 'Person'},
|
|
|
|
{name: 'Kant', start: '1724-04-22', end: '1804-02-12', type: 'Person'},
|
|
|
|
{name: 'Napoleon', start: '1769-08-15', end: '1821-05-05', type: 'Person'},
|
|
|
|
{name: 'Hegel', start: '1770-08-27', end: '1831-11-14', type: 'Person'},
|
|
|
|
{name: 'Darwin', start: '1809-02-12', end: '1882-04-19', type: 'Person'},
|
|
|
|
{name: 'Marx', start: '1818-05-05', end: '1883-03-14', type: 'Person'},
|
2011-05-25 07:29:42 +00:00
|
|
|
///*
|
2011-05-25 09:22:16 +00:00
|
|
|
{name: 'Gandhi', start: '1869-10-02', end: '1948-01-30', type: 'Person'},
|
|
|
|
{name: 'Lenin', start: '1870-04-22', end: '1924-01-21', type: 'Person'},
|
|
|
|
{name: 'Stalin', start: '1878-12-18', end: '1953-03-05', type: 'Person'},
|
|
|
|
{name: 'Einstein', start: '1879-03-14', end: '1955-04-18', type: 'Person'},
|
|
|
|
{name: 'Picasso', start: '1881-10-25', end: '1973-04-08', type: 'Person'},
|
|
|
|
{name: 'Roosevelt', start: '1882-01-30', end: '1945-04-12', type: 'Person'},
|
|
|
|
{name: 'Hitler', start: '1889-04-20', end: '1945-04-30', type: 'Person'},
|
|
|
|
{name: 'Hitchcock', start: '1899-08-13', end: '1980-04-29', type: 'Person'},
|
|
|
|
{name: 'Turing', start: '1912-06-23', end: '1954-06-07', type: 'Person'},
|
|
|
|
{name: 'Kennedy', start: '1917-05-29', end: '1963-11-22', type: 'Person'},
|
|
|
|
{name: 'Deleuze', start: '1925-01-18', end: '1995-11-04', type: 'Person'},
|
|
|
|
{name: 'Warhol', start: '1928-08-06', end: '1987-02-22', type: 'Person'},
|
|
|
|
{name: 'Debord', start: '1931-12-28', end: '1994-11-30', type: 'Person'},
|
2011-05-25 07:29:42 +00:00
|
|
|
//*/
|
2011-04-23 12:33:41 +00:00
|
|
|
/*
|
2011-05-25 09:22:16 +00:00
|
|
|
{name: 'Test', start: new Date('1970-01-01'), end: new Date('1970-01-02')},
|
|
|
|
{name: 'Battle of Hastings', start: new Date('1066-10-14'), end: new Date('1066-10-15')},
|
|
|
|
{name: 'Renaissance', start: new Date('1300'), end: new Date('1700')},
|
|
|
|
{name: 'Spanish Inquisition', start: new Date('1480-09-27'), end: new Date('1820-03-10')},
|
|
|
|
{name: 'Discovery of America', start: new Date('1492'), end: new Date('1493')},
|
|
|
|
{name: 'East India Company', start: new Date('1600'), end: new Date('1874')},
|
|
|
|
{name: 'Thirty Years\' War', start: new Date('1618'), end: new Date('1649')},
|
|
|
|
{name: 'Declaration of Independence', start: new Date('1776-07-04'), end: new Date('1776-07-05')},
|
|
|
|
{name: 'French Revolution', start: new Date('1789'), end: new Date('1800')},
|
|
|
|
{name: 'Storming of the Bastille', start: new Date('1789-07-14'), end: new Date('1789-07-15')},
|
|
|
|
{name: 'Napoleonic Era', start: new Date('1799-11-09'), end: new Date('1815-06-29')},
|
|
|
|
{name: 'The Year Without a Summer', start: new Date('1816'), end: new Date('1817')},
|
|
|
|
{name: 'Queen Victoria', start: new Date('1837-06-20'), end: new Date('1901-01-23')},
|
|
|
|
{name: 'Crimean War', start: new Date('1853-10'), end: new Date('1856-03')},
|
|
|
|
{name: 'American Civil War', start: new Date('1861-04-12'), end: new Date('1865-04-10')},
|
|
|
|
{name: 'Franco-Prussian War', start: new Date('1870-07-19'), end: new Date('1871-05-11')},
|
|
|
|
{name: 'Paris Commune', start: new Date('1871-03-18'), end: new Date('1871-05-29')},
|
|
|
|
{name: 'Congo Free State', start: new Date('1885-07-11'), end: new Date('1908-11-16')},
|
|
|
|
{name: '20th century', start: new Date('1900'), end: new Date('2000')},
|
|
|
|
{name: 'Titanic', start: new Date('1912-04-15'), end: new Date('1912-04-16')},
|
|
|
|
{name: 'World War One', start: new Date('1914-07-28'), end: new Date('1918-11-12')},
|
|
|
|
{name: 'Battle of Verdun', start: new Date('1916-02-21'), end: new Date('1916-12-19')},
|
|
|
|
{name: 'Russian Revolution', start: new Date('1917'), end: new Date('1918')},
|
|
|
|
{name: 'October Revolution', start: new Date('1917-11-07'), end: new Date('1917-11-09')},
|
|
|
|
{name: 'Spanish Flu', start: new Date('1918'), end: new Date('1919')},
|
|
|
|
{name: 'Weimar Republic', start: new Date('1918-11-09'), end: new Date('1933-01-30')},
|
|
|
|
{name: 'Treaty of Versailles', start: new Date('1919-06-28'), end: new Date('1919-06-29')},
|
|
|
|
{name: '1920s', start: new Date('1920'), end: new Date('1930')},
|
|
|
|
{name: 'Soviet Union', start: new Date('1922-12-30'), end: new Date('1991-12-27')},
|
|
|
|
{name: 'The Third Reich', start: new Date('1933-01-30'), end: new Date('1945-05-09')},
|
|
|
|
{name: 'Spanish Civil War', start: new Date('1936-07-17'), end: new Date('1939-04-02')},
|
|
|
|
{name: '1936 Summer Olympics', start: new Date('1936-08-01'), end: new Date('1936-08-17')},
|
|
|
|
{name: 'Hindenburg', start: new Date('1937-05-06'), end: new Date('1937-05-07')},
|
|
|
|
{name: 'World War Two', start: new Date('1939-09-01'), end: new Date('1945-09-03')},
|
|
|
|
{name: 'Pearl Harbour', start: new Date('1941-12-07'), end: new Date('1941-12-08')},
|
|
|
|
{name: 'Wannsee Conference', start: new Date('1942-01-20'), end: new Date('1942-01-21')},
|
|
|
|
{name: 'Battle of Stalingrad', start: new Date('1942-08-23'), end: new Date('1943-02-03')},
|
|
|
|
{name: 'D-Day', start: new Date('1944-06-06'), end: new Date('1944-06-07')},
|
|
|
|
{name: 'Liberation of Auschwitz', start: new Date('1945-01-27'), end: new Date('1945-01-28')},
|
|
|
|
{name: 'Hiroshima', start: new Date('1945-08-06'), end: new Date('1945-08-07')},
|
|
|
|
{name: 'Nagasaki', start: new Date('1945-08-09'), end: new Date('1945-08-10')},
|
|
|
|
{name: 'Nuremburg Trials', start: new Date('1945-11-20'), end: new Date('1946-10-02')},
|
|
|
|
{name: 'Fourth Republic', start: new Date('1946-10-14'), end: new Date('1958-10-05')},
|
|
|
|
{name: 'West Germany', start: new Date('1949-05-23'), end: new Date('1990-10-03')},
|
|
|
|
{name: 'Korean War', start: new Date('1950-06-25'), end: new Date('1953-07-28')},
|
|
|
|
{name: 'Cuban Revolution', start: new Date('1953-07-26'), end: new Date('1959-01-02')},
|
|
|
|
{name: 'Algerian War', start: new Date('1954-11-01'), end: new Date('1962-03-20')},
|
|
|
|
{name: 'Vietnam War', start: new Date('1955-11-01'), end: new Date('1975-05-01')},
|
|
|
|
{name: '1960s', start: new Date('1960-01-01'), end: new Date('1970-01-01')},
|
|
|
|
{name: 'Eichmann Trial', start: new Date('1961-04-11'), end: new Date('1961-08-15')},
|
|
|
|
{name: 'Bay of Pigs', start: new Date('1961-04-17'), end: new Date('1961-04-20')},
|
|
|
|
{name: 'Berlin Wall', start: new Date('1961-08-13'), end: new Date('1989-11-09')},
|
|
|
|
{name: 'Cuban Missile Crisis', start: new Date('1962-10'), end: new Date('1962-12')},
|
|
|
|
{name: 'Assassination of John F. Kennedy', start: new Date('1963-11-22'), end: new Date('1963-11-23')},
|
|
|
|
{name: 'Sgt. Pepper', start: new Date('1967-06-01'), end: new Date('1967-06-02')},
|
|
|
|
{name: 'Assassination of Benno Ohnesorg', start: new Date('1967-06-02'), end: new Date('1967-06-03')},
|
|
|
|
{name: 'Six-Day War', start: new Date('1967-06-05'), end: new Date('1967-06-11')},
|
|
|
|
{name: '1968', start: new Date('1968-01-01'), end: new Date('1969-01-01')},
|
|
|
|
{name: 'My Lai', start: new Date('1968-03-16'), end: new Date('1968-03-17')},
|
|
|
|
{name: 'Assassination of Martin Luther King', start: new Date('1968-04-04'), end: new Date('1968-04-05')},
|
|
|
|
{name: 'Assassination of Rudi Dutschke', start: new Date('1968-04-11'), end: new Date('1968-04-12')},
|
|
|
|
{name: 'May 1968', start: new Date('1968-05-01'), end: new Date('1968-06-01')},
|
|
|
|
{name: '1968 Cannes Film Festival', start: new Date('1968-05-10'), end: new Date('1968-05-20')},
|
|
|
|
{name: 'Valerie Solanas', start: new Date('1968-06-03'), end: new Date('1968-06-04')},
|
|
|
|
{name: 'Assassination of Robert F. Kennedy', start: new Date('1968-06-05'), end: new Date('1968-06-06')},
|
|
|
|
{name: '1968 Summer Olympics', start: new Date('1968-10-12'), end: new Date('1968-10-28')},
|
|
|
|
{name: 'Apollo 11', start: new Date('1969-07-16'), end: new Date('1969-07-25')},
|
|
|
|
{name: 'Moon Landing', start: new Date('1969-07-20'), end: new Date('1969-07-21')},
|
|
|
|
{name: 'The Epoch', start: new Date('1970-01-01 00:00:00'), end: new Date('1970-01-01 00:00:01')},
|
|
|
|
{name: '1970s', start: new Date('1970-01-01'), end: new Date('1980-01-01')},
|
|
|
|
{name: '1972 Summer Olympics', start: new Date('1972-08-26'), end: new Date('1972-09-11')},
|
|
|
|
{name: 'Apollo 17', start: new Date('1972-12-07'), end: new Date('1972-12-20')},
|
|
|
|
{name: 'World Trade Center', start: new Date('1973-04-04'), end: new Date('2001-09-11')},
|
|
|
|
{name: '1980s', start: new Date('1980-01-01'), end: new Date('1990-01-01')},
|
|
|
|
{name: 'Iran-Iraq War', start: new Date('1980-09-22'), end: new Date('1988-08-21')},
|
|
|
|
{name: 'Tschernobyl', start: new Date('1986-04-26'), end: new Date('1986-04-27')},
|
|
|
|
{name: 'Fall of the Berlin Wall', start: new Date('1989-11-09'), end: new Date('1989-11-10')},
|
|
|
|
{name: 'Gulf War', start: new Date('1990-08-02'), end: new Date('1991-03-01')},
|
|
|
|
{name: 'Clinton Presidency', start: new Date('1993-01-20'), end: new Date('2001-01-20')},
|
|
|
|
{name: 'German Reunification', start: new Date('1990-10-03'), end: new Date('1990-10-04')},
|
|
|
|
{name: 'The Battle of Seattle', start: new Date('1999-11-30'), end: new Date('1999-12-01')},
|
|
|
|
{name: 'George W. Bush', start: new Date('2001-01-20'), end: new Date('2009-01-20')},
|
|
|
|
{name: 'Carlo Giuliani', start: new Date('2001-07-20'), end: new Date('2001-07-21')},
|
|
|
|
{name: '9-11', start: new Date('2001-09-11'), end: new Date('2001-09-12')},
|
|
|
|
{name: 'Fukushima', start: new Date('2011-03-11'), end: new Date('2011-03-12')}
|
2011-05-25 07:29:42 +00:00
|
|
|
*/
|
2011-04-23 12:33:41 +00:00
|
|
|
],
|
|
|
|
height: window.innerHeight,
|
|
|
|
width: window.innerWidth
|
|
|
|
}).appendTo(Ox.UI.$body);
|
2011-04-20 11:29:34 +00:00
|
|
|
|
|
|
|
});
|