Template:Team:Aberdeen Scotland/JS
From 2014.igem.org
(Difference between revisions)
(Created page with "// CHANGE TITLE - →blablabla: var ind = document.title.lastIndexOf("/"); if (ind > 0) { var DocTitle = document.title.substring(document.title.lastIndexOf("/")+1,document.ti...") |
|||
(6 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
// CHANGE TITLE | // CHANGE TITLE | ||
- | / | + | var ind = document.title.lastIndexOf("/"); |
+ | if (ind > 0) { | ||
+ | var DocTitle = document.title.substring(document.title.lastIndexOf("/")+1,document.title.indexOf("-")); | ||
+ | document.title = DocTitle + " - Aberdeen Scotland - 2014.igem.org"; | ||
+ | } else { | ||
+ | document.title = "Aberdeen Scotland - 2014.igem.org"; | ||
+ | }; | ||
- | + | $('.left-menu li').removeAttr("style"); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Latest revision as of 13:37, 31 July 2014
// CHANGE TITLE var ind = document.title.lastIndexOf("/"); if (ind > 0) { var DocTitle = document.title.substring(document.title.lastIndexOf("/")+1,document.title.indexOf("-")); document.title = DocTitle + " - Aberdeen Scotland - 2014.igem.org"; } else { document.title = "Aberdeen Scotland - 2014.igem.org"; };
$('.left-menu li').removeAttr("style");