Merge pull request #2330 from AiyionPrime/status-page-cleanup

Status page cleanup
main
Matthias Schiffer 2021-11-12 19:13:40 +01:00 committed by GitHub
commit e26b508b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -285,7 +285,7 @@
'resize': function(w, h) {
var lastImage;
try {
ctx.getImageData(0, 0, w, h);
lastImage = ctx.getImageData(0, 0, w, h);
} catch (e) {}
canvas.width = w;
canvas.height = h;
@ -519,13 +519,13 @@
el.classList.add("highlight");
if (signal)
signal.highlight = true;
}
};
el.onmouseleave = function () {
el.classList.remove("highlight")
el.classList.remove("highlight");
if (signal)
signal.highlight = false;
}
};
var timeout;
@ -553,7 +553,8 @@
var n = parts.length;
var groups = [];
parts.forEach(function(part, i) {
for (var i = 0; i < parts.length; i++) {
var part = parts[i];
if (part === '') {
while (n++ <= 8)
groups.push(0);
@ -563,7 +564,7 @@
groups.push(parseInt(part, 16));
}
});
};
return groups;
}