Team:KULeuven/5 July 2008

From 2008.igem.org

(Difference between revisions)
(Removing all content from page)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
<html>
 
-
<script type="text/javascript">
 
-
var mnames = new Array('January', 'February', 'March', 'April', 'May',
 
-
'June', 'July', 'August', 'September', 'October', 'November', 'December');
 
-
function date_retriever() {
 
-
// First step is to split the url of the current notebook entry
 
-
var url_tokens = location.href.split("/");
 
-
// Filter out the last token which contains the proper date
 
-
var url_date_token = url_tokens[url_tokens.length-1];
 
-
 
-
var date_tokens = url_date_token.split("_");
 
-
var day = date_tokens[0];
 
-
var month = date_tokens[1];
 
-
var year = date_tokens[2];
 
-
// Date is retrieved expressed in milliseconds
 
-
return Date.parse(day + ' ' + month + ', ' + year);
 
-
}
 
-
 
-
// arg determines whether you take yesterday (arg = 0) or tomorrow (arg = 1)
 
-
function date(numeric_date, arg) {
 
-
switch(arg) {
 
-
case 0: numeric_date -= 86400*1000;
 
-
case 1: numeric_date += 86400*1000;
 
-
}
 
-
 
-
var date = new Date();
 
-
date.setTime(numeric_date);
 
-
 
-
return date;
 
-
}
 
-
 
-
function url_date(date) {
 
-
var url = "https://2008.igem.org/Team:KULeuven/";
 
-
url += date.getDate();
 
-
url += '_';
 
-
url += mnames[date.getMonth()];
 
-
url += '_';
 
-
url += date.getFullYear();
 
-
 
-
return url;
 
-
}
 
-
</script>
 
-
 
-
<center>
 
-
<table width="70%">
 
-
<tr>
 
-
<td width="25%"><a href="https://2008.igem.org/Team:KULeuven/Meeting_Reports">&lt;&lt; return to notebook</a>
 
-
<td width="25%"><script language="javascript">document.write("< yesterday".link(url_date(date_yesterday(ndate))));</script></td>
 
-
<td width="25%"><script language="javascript">document.write("tomorrow >".link(url_date(date_tomorrow(ndate))));</script></td>
 
-
<td width="25%"></td>
 
-
</tr>
 
-
</table>
 
-
</center>
 
-
 
-
</html>
 

Latest revision as of 22:04, 15 July 2008