Merge commit 'jesse/master'
[taboo.git] / chrome / content / start.html
blob6abae579e3f2332f28b6baf1227cf5861de987b9
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <!--
4 Copyright 2007 Jesse Andrews and Manish Singh
6 This file may be used under the terms of of the
7 GNU General Public License Version 2 or later (the "GPL"),
8 http://www.gnu.org/licenses/gpl.html
10 Software distributed under the License is distributed on an "AS IS" basis,
11 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 for the specific language governing rights and limitations under the
13 License.
14 -->
15 <html>
16 <head>
17 <title>Taboo</title>
18 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
19 <script type="text/javascript" src="chrome://browser/content/utilityOverlay.js"></script>
20 <script type="text/javascript">
21 // for debugging - get around chrome caching
22 document.write('<link rel="stylesheet" href="chrome://taboo/skin/start.css?' + Math.random() + '" />');
23 document.write('<link rel="stylesheet" href="chrome://taboo/skin/calendar.css?' + Math.random() + '" />');
24 document.write('<link rel="stylesheet" href="chrome://taboo/skin/grid.css?' + Math.random() + '" />');
26 const CC = Components.classes;
27 const CI = Components.interfaces;
28 const SVC = Components.classes['@oy/taboo;1']
29 .getService(Components.interfaces.oyITaboo);
30 tboPrefs = CC['@mozilla.org/preferences-service;1'].getService(CI.nsIPrefBranch);
32 var $ = function(x) { return document.getElementById(x); }
34 function init() {
35 const loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
36 .getService(Components.interfaces.mozIJSSubScriptLoader);
38 var scripts = [
39 'chrome://taboo/content/calendar.js',
40 'chrome://taboo/content/grid.js',
41 'chrome://taboo/content/displayInfo.js',
42 'chrome://taboo/content/start.js',
45 scripts.forEach(function(script) {
46 loader.loadSubScript(script);
47 });
49 $('search').onkeyup = function(event) {
50 controller.filter($('search').value);
52 $('search').value = '';
53 $('search').focus();
56 window.addEventListener("load", init, false);
58 </script>
59 </head>
60 <body>
61 <div id="header">
62 <div id="views">
63 <a href="#" onclick="controller.load(Grid); return false;">grid</a>
64 <a href="#" onclick="controller.load(Calendar); return false;">calendar</a>
65 <a href="#" onclick="controller.load(GridTrash); return false;">trashcan</a>
66 </div>
67 <input type="text" id="search" />
68 </div>
69 <div id="content"></div>
70 </body>
71 </html>