This commit is contained in:
calzoneman 2014-02-18 21:56:54 -06:00
parent 6e0f27f254
commit c54915e940
5 changed files with 14 additions and 3 deletions

View file

@ -11,14 +11,18 @@
}
}
console.log("cookie theme=", theme);
if (theme !== "default") {
var cur = document.getElementById("usertheme");
cur.parentNode.removeChild(cur);
console.log('removed');
var css = document.createElement("link");
css.setAttribute("rel", "stylesheet");
css.setAttribute("type", "text/css");
css.setAttribute("href", theme);
css.setAttribute("id", "usertheme");
document.head.appendChild(css);
console.log(css);
}
})();