initial import into bzr tmp
author<mako@atdot.cc> <>
Thu, 14 Aug 2008 20:19:47 +0000 (16:19 -0400)
committer<mako@atdot.cc> <>
Thu, 14 Aug 2008 20:19:47 +0000 (16:19 -0400)
vaporizer.html [new file with mode: 0644]

diff --git a/vaporizer.html b/vaporizer.html
new file mode 100644 (file)
index 0000000..3287d1a
--- /dev/null
@@ -0,0 +1,62 @@
+<html>
+<head>
+<title>Vaporizer</title>
+<style type="text/css">
+body {
+    font-family: sans-serif;
+}
+#comingsoon {
+    font-size: 200%;
+    text-align: center;
+    font-weight: bold;
+}
+
+#footer {
+    font-size: 0.8em;
+    text-align: center;
+}
+</style>
+<body>
+
+
+<div id="comingsoon">
+Coming <span id="tmonth"></span> <span id="tdate"></span>, <span id="tyear"></span>
+</div>
+
+<p>This webpage contains Javascript that will describe an upcoming
+planned release date. When you pass it, will increment that release day
+to one day in the future automatically. View, modify, save, and reuse
+the HTML source.</p>
+
+<hr />
+<div id="footer">
+Copyright (c) 2008 <a
+href="http://mako.cc">Benjamin Mako Hill</a> for his sins.<br />
+Released to you under <a
+href="http://www.gnu.org/licenses/gpl-3.0.txt">GNU GPL</a> for yours.
+</div>
+
+<script type="text/javascript">
+// UNCOMMENT THE FOLLOWING LINE AND CHANGE IT TO YOUR EXPECTED ANNOUNCEMENT
+// var planned_date = new Date("August 18, 2008");
+
+var now = new Date();
+var tomorrow = new Date();
+
+// set tomorrow correctly
+tomorrow.setDate(now.getDate()+1);
+
+if (!(typeof planned_date == "undefined") && planned_date >= now ) {
+    display_date = planned_date;
+} else {
+    display_date = tomorrow;
+}
+
+var monthname = new Array("January", "February", "March", "April",
+                         "May", "June", "July", "August", "September",
+                         "October", "November", "Dececember");
+document.getElementById("tdate").innerHTML = display_date.getDate();
+document.getElementById("tmonth").innerHTML = monthname[display_date.getMonth()];
+document.getElementById("tyear").innerHTML = display_date.getFullYear();
+
+</script> </body> </html>

Benjamin Mako Hill || Want to submit a patch?