Team:KULeuven/Tools/New Day/Date Retriever

From 2008.igem.org

(Difference between revisions)
m
Line 10: Line 10:
var url_tokens = location.href.split("/");
var url_tokens = location.href.split("/");
// Filter out the last token which contains the proper date
// Filter out the last token which contains the proper date
-
var url_date_token = url_tokens[url_tokens.length-1];
+
var url_last_token = url_tokens[url_tokens.length-1];
 +
 
 +
var wiki_tokens = url_last_token.href.split("#");
 +
var url_date_token = wiki_tokens[0];
var date_tokens = url_date_token.split("_");
var date_tokens = url_date_token.split("_");

Revision as of 13:17, 30 July 2008

<< return to notebook return to homepage >>
<< previous friday < yesterday tomorrow > next monday >>