Team:KULeuven/5 July 2008

From 2008.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript">
<script type="text/javascript">
-
var numeric_date = date_retriever();
 
var mnames = new Array('January', 'February', 'March', 'April', 'May',
var mnames = new Array('January', 'February', 'March', 'April', 'May',
'June', 'July', 'August', 'September', 'October', 'November', 'December');
'June', 'July', 'August', 'September', 'October', 'November', 'December');
Line 21: Line 20:
// arg determines whether you take yesterday (arg = 0) or tomorrow (arg = 1)
// arg determines whether you take yesterday (arg = 0) or tomorrow (arg = 1)
function date(arg) {
function date(arg) {
 +
var numeric_date = date_retriever();
switch(arg) {
switch(arg) {
-
case 0: numeric_date -= 86400*1000;
+
case 0: numeric_date -= 86400*1000; break;
-
case 1: numeric_date += 86400*1000;
+
case 1: numeric_date += 86400*1000; break;
 +
default: break;
}
}
Line 41: Line 42:
return url;
return url;
 +
}
 +
 +
function test() {
 +
hey.value = date_retriever();
}
}
</script>
</script>
 +
 +
<input type="text" name="hey"/>
 +
<input type="button" onClick="test()"/>
<center>
<center>

Revision as of 22:00, 15 July 2008

<< return to notebook