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