1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-21 21:19:36 +01:00

smartphone-spoiler.js: format

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

View File

@ -14,9 +14,9 @@
onready(function() {
if (device_type == 'mobile') {
var fix_spoilers = function(where) {
var spoilers = where.getElementsByClassName('spoiler');
for(var i = 0; i < spoilers.length; i++) {
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(){
}
});