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

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