Merge pull request #2330 from AiyionPrime/status-page-cleanup
Status page cleanup
This commit is contained in:
commit
e26b508b72
File diff suppressed because one or more lines are too long
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user