Template:Team:Aberdeen Scotland/JS
From 2014.igem.org
(Difference between revisions)
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"; | |
- | + | }; | |
- | + | ||
- | + | ||
- | + |
Revision as of 14:17, 16 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"; };