|
@ -51,7 +51,7 @@ function citeReply(id) { |
|
|
document.getElementById('body').value += '>>' + id + '\n'; |
|
|
document.getElementById('body').value += '>>' + id + '\n'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var selectedstyle = 'Yotsuba B'; |
|
|
var selectedstyle = 'Yotsuba'; |
|
|
var styles = [ |
|
|
var styles = [ |
|
|
['Yotsuba B', '/board/default.css'], |
|
|
['Yotsuba B', '/board/default.css'], |
|
|
['Yotsuba', '/board/yotsuba.css'] |
|
|
['Yotsuba', '/board/yotsuba.css'] |
|
@ -87,15 +87,14 @@ function init() |
|
|
newElement.appendChild(style); |
|
|
newElement.appendChild(style); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) |
|
|
|
|
|
|
|
|
if(!localStorage.password) |
|
|
if(!localStorage.password) |
|
|
localStorage.password = generatePassword(); |
|
|
localStorage.password = generatePassword(); |
|
|
elements = document.getElementsByName('password'); |
|
|
if(document.forms.delete) { |
|
|
for(x=0;x<elements.length;x++) { |
|
|
document.forms.delete.password.value = localStorage.password; |
|
|
elements[x].value = localStorage.password; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) |
|
|
|
|
|
|
|
|
|
|
|
if (window.location.hash.indexOf('q') == 1) |
|
|
if (window.location.hash.indexOf('q') == 1) |
|
|
citeReply(window.location.hash.substring(2)); |
|
|
citeReply(window.location.hash.substring(2)); |
|
|
else if (window.location.hash.substring(1)) |
|
|
else if (window.location.hash.substring(1)) |
|
|