forked from GithubBackups/vichan
smartphone-spoiler.js: format
This commit is contained in:
parent
6daae3ec92
commit
fa341b29d0
@ -12,11 +12,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
onready(function() {
|
||||||
if(device_type == 'mobile') {
|
if (device_type == 'mobile') {
|
||||||
var fix_spoilers = function(where) {
|
let fix_spoilers = function(where) {
|
||||||
var spoilers = where.getElementsByClassName('spoiler');
|
let spoilers = where.getElementsByClassName('spoiler');
|
||||||
for(var i = 0; i < spoilers.length; i++) {
|
for (let i = 0; i < spoilers.length; i++) {
|
||||||
spoilers[i].onmousedown = function() {
|
spoilers[i].onmousedown = function() {
|
||||||
this.style.color = 'white';
|
this.style.color = 'white';
|
||||||
};
|
};
|
||||||
@ -31,4 +31,3 @@ onready(function(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user