Made the button be automatically added the first time the extension is loaded.
[taboo.git] / chrome / taboo / content / start.html
blobc64fae89f1ce42e1fdad34bb8b0a6ea7fcad859c
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>Tablets</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">
22 document.write('<link rel="stylesheet" href="start.css?' + Math.random() + '" />');
24 function loadJS() {
25 const loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
26 .getService(Components.interfaces.mozIJSSubScriptLoader);
28 var scripts = [
29 'chrome://taboo/content/start.js',
32 for (var i = 0; i < scripts.length; i++) {
33 loader.loadSubScript(scripts[i], window);
37 window.addEventListener("load", loadJS, false);
38 </script>
39 </head>
40 <body></body>
41 </html>