summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-27 02:36:32 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-27 02:36:32 +1100
commit15a74b15232fbf3f19878e21b861737f186f2b7c (patch)
tree1e4a9c682b7e0a53033a9e22b4e4223af7d81b7c /main.js
parent99a51ddca9270b030620f5e62bb6744418b053cc (diff)
Stylesheets, etc.
Diffstat (limited to 'main.js')
-rw-r--r--main.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/main.js b/main.js
index 038713cd..d434acb3 100644
--- a/main.js
+++ b/main.js
@@ -41,8 +41,8 @@ function citeReply(id) {
var selectedstyle = 'Yotsuba B';
var styles = [
- ['Yotsuba B', '/default.css'],
- ['Yotsuba', '/yotsuba.css']
+ ['Yotsuba B', '/board/default.css'],
+ ['Yotsuba', '/board/yotsuba.css']
];
function changeStyle(x) {
@@ -51,12 +51,6 @@ function changeStyle(x) {
selectedstyle = styles[x][0];
}
-newLink = document.createElement('link');
-newLink.rel = 'stylesheet';
-newLink.type = 'text/css';
-newLink.id = 'stylesheet';
-document.getElementsByTagName('head')[0].insertBefore(newLink, document.getElementsByTagName('link')[0].lastChild)
-
if(localStorage.stylesheet) {
for(x=0;x<styles.length;x++) {
if(styles[x][1] == localStorage.stylesheet) {