Gwug
This commit is contained in:
parent
258c99850d
commit
596b79ad0d
|
@ -96,6 +96,18 @@
|
||||||
<td>${reasons[log.Reason] || log.Reason}</td>
|
<td>${reasons[log.Reason] || log.Reason}</td>
|
||||||
`;
|
`;
|
||||||
tbody.insertBefore(tr, tbody.firstChild);
|
tbody.insertBefore(tr, tbody.firstChild);
|
||||||
|
tr.style.background = 'orange';
|
||||||
|
setTimeout(() => {
|
||||||
|
let opacity = 1;
|
||||||
|
const fade = setInterval(() => {
|
||||||
|
opacity -= 0.05;
|
||||||
|
tr.style.background = `rgba(255,165,0,${opacity})`;
|
||||||
|
if (opacity <= 0.1) {
|
||||||
|
tr.style.background = '';
|
||||||
|
clearInterval(fade);
|
||||||
|
}
|
||||||
|
}, 40);
|
||||||
|
}, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
ws.onopen = function () {
|
ws.onopen = function () {
|
||||||
|
|
Loading…
Reference in a new issue