added README
[vaporizer] / vaporizer.html
1 <html>
2 <head>
3 <title>Vaporizer</title>
4 <style type="text/css">
5 body {
6     font-family: sans-serif;
7 }
8 #comingsoon {
9     font-size: 200%;
10     text-align: center;
11     font-weight: bold;
12 }
13
14 #footer {
15     font-size: 0.8em;
16     text-align: center;
17 }
18 </style>
19 <body>
20
21
22 <div id="comingsoon">
23 Coming <span id="tmonth">August</span> <span id="tdate">18</span>, <span id="tyear">2008</span>
24 </div>
25
26 <p>This webpage contains Javascript that will describe an upcoming
27 planned release date. When you pass it, will increment that release day
28 to one day in the future automatically. View, modify, save, and reuse
29 the HTML source.</p>
30
31 <hr />
32 <div id="footer">
33 Copyright (c) 2008 <a
34 href="http://mako.cc">Benjamin Mako Hill</a> for his sins.<br />
35 Released to you under <a
36 href="http://www.gnu.org/licenses/gpl-3.0.txt">GNU GPL</a> for yours.
37 </div>
38
39 <script type="text/javascript">
40 // UNCOMMENT THE FOLLOWING LINE AND CHANGE IT TO YOUR EXPECTED ANNOUNCEMENT
41 // var planned_date = new Date("August 18, 2008");
42
43 var now = new Date();
44 var tomorrow = new Date();
45
46 // set tomorrow correctly
47 tomorrow.setDate(now.getDate()+1);
48
49 if (!(typeof planned_date == "undefined") && planned_date >= now ) {
50     display_date = planned_date;
51 } else {
52     display_date = tomorrow;
53 }
54
55 var monthname = new Array("January", "February", "March", "April",
56                          "May", "June", "July", "August", "September",
57                          "October", "November", "Dececember");
58 document.getElementById("tdate").innerHTML = display_date.getDate();
59 document.getElementById("tmonth").innerHTML = monthname[display_date.getMonth()];
60 document.getElementById("tyear").innerHTML = display_date.getFullYear();
61
62 </script> </body> </html>

Benjamin Mako Hill || Want to submit a patch?