Template:Team:Aberdeen Scotland/JS

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
// CHANGE TITLE
// CHANGE TITLE
-
/*blablabla*/
+
var ind = document.title.lastIndexOf("/");
-
 
+
if (ind > 0) {
-
var ind = document.title.lastIndexOf("/");
+
var DocTitle = document.title.substring(document.title.lastIndexOf("/")+1,document.title.indexOf("-"));
-
if (ind > 0) {
+
document.title = DocTitle + " - Aberdeen Scotland - 2014.igem.org";
-
var DocTitle = document.title.substring(document.title.lastIndexOf("/")+1,document.title.indexOf("-"));
+
} else {
-
document.title = DocTitle + " - Aberdeen Scotland - 2014.igem.org";
+
document.title = "Aberdeen Scotland - 2014.igem.org";
-
} else {
+
};
-
document.title = "Aberdeen Scotland - 2014.igem.org";
+
-
};
+
-
$('head').append('<meta name="google-site-verification" content="6IvHm1guJfGt7daqrdtXZKnso3RaaXrlbq1S7TYOyNE" />');
+

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"; };