Stylesheets, etc.
This commit is contained in:
10
main.js
10
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) {
|
||||
|
Reference in New Issue
Block a user