smartphone-spoiler.js: format

This commit is contained in:
Zankaria 2024-08-05 18:36:34 +02:00
parent 6daae3ec92
commit fa341b29d0

View File

@ -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(){
} }
}); });