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
-
/*blablabla*/
+
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";
 +
};
-
var ind = document.title.lastIndexOf("/");
+
$('.left-menu li').removeAttr("style");
-
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";
+
-
};
+
-
$('head').append('<a href="https://plus.google.com/106825238674841642988" rel="publisher">Google+</a>');
+

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