Team:HSAAHNU Anhui/inject.js

From 2014hs.igem.org

(Difference between revisions)
(array-style injection)
m (bug fix)
Line 1: Line 1:
var injections = [
var injections = [
   '<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">',
   '<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">',
-
   '<link href="/Team:HSAAHNU_Anhui/normalize.css?action=raw&ctype=text/stylesheet'
+
   '<link href="/Team:HSAAHNU_Anhui/normalize.css?action=raw&ctype=text/stylesheet" rel="stylesheet">'
];
];
document.getElementsByTagName("head")[0].innerHTML += injections.join('\n');
document.getElementsByTagName("head")[0].innerHTML += injections.join('\n');

Revision as of 09:53, 27 May 2014

var injections = [

 '<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">',
 '<link href="/Team:HSAAHNU_Anhui/normalize.css?action=raw&ctype=text/stylesheet" rel="stylesheet">'

];

document.getElementsByTagName("head")[0].innerHTML += injections.join('\n');