summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.js b/main.js
index cef82687..d1d53b44 100644
--- a/main.js
+++ b/main.js
@@ -51,7 +51,7 @@ function citeReply(id) {
document.getElementById('body').value += '>>' + id + '\n';
}
-var selectedstyle = 'Yotsuba B';
+var selectedstyle = 'Yotsuba';
var styles = [
['Yotsuba B', '/board/default.css'],
['Yotsuba', '/board/yotsuba.css']
@@ -87,15 +87,14 @@ function init()
newElement.appendChild(style);
}
+ document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
+
if(!localStorage.password)
localStorage.password = generatePassword();
- elements = document.getElementsByName('password');
- for(x=0;x<elements.length;x++) {
- elements[x].value = localStorage.password;
+ if(document.forms.delete) {
+ document.forms.delete.password.value = localStorage.password;
}
- document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
-
if (window.location.hash.indexOf('q') == 1)
citeReply(window.location.hash.substring(2));
else if (window.location.hash.substring(1))