disable favicon
This commit is contained in:
parent
75c12677d9
commit
e609cb0f44
@ -2,6 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="icon" href="data:,">
|
||||
<meta charset='utf-8'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<title>Centralex State</title>
|
||||
|
@ -12,12 +12,10 @@ body {
|
||||
|
||||
.visible {
|
||||
opacity: 1;
|
||||
/* visibility: visible; */
|
||||
transition: opacity 500ms linear;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
/* visibility: hidden; */
|
||||
opacity: 0.2;
|
||||
transition: opacity 6000ms linear;
|
||||
}
|
@ -22,7 +22,6 @@ window.onload = () => {
|
||||
evtSource = new EventSource("/events");
|
||||
evtSource.addEventListener("change", event => {
|
||||
last_update.innerText = `last update at ${new Date(+event.data * 1000)}`;
|
||||
|
||||
|
||||
fetch("/data")
|
||||
.then(res => res.json())
|
||||
@ -33,7 +32,6 @@ window.onload = () => {
|
||||
clearTimeout(ping_timeout);
|
||||
ping_timeout = setTimeout(connect_event_source, timeout_duration);
|
||||
|
||||
console.log("ping", new Date());
|
||||
|
||||
last_update.innerText = `last update at ${new Date(+event.data * 1000)}`;
|
||||
connected.className = "visible";
|
||||
|
Loading…
Reference in New Issue
Block a user