Stylesheets, etc.

This commit is contained in:
Savetheinternet
2011-03-27 02:36:32 +11:00
parent 99a51ddca9
commit 15a74b1523
7 changed files with 172 additions and 10 deletions

10
main.js
View File

@@ -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) {