diff --git a/templates/display.html b/templates/display.html index 5877dad..d210d2f 100644 --- a/templates/display.html +++ b/templates/display.html @@ -58,9 +58,23 @@ } displaylist list > a { - border: 2px solid black; padding: 1em; } + + displaylist fallback { + padding: 1em; + } + + list:not(:empty) + fallback { + display: none; + } + + fallback { + display: grid; + + place-content: center; + text-align: center; + } {% endblock %} @@ -68,6 +82,12 @@ @@ -78,7 +98,6 @@ socket.on("connect", () => { socket.emit("display", {action: "list"}); - //socket.emit("connect", {data: "ฅ^•ﻌ•^ฅ"}); }); socket.on("display", (json) => { @@ -102,8 +121,6 @@ });*/ function onDisplayList(list) { - console.log(list); - function add(item) { let displayOption = document.createElement("a"); displayOption.innerText = item; diff --git a/templates/edit.html b/templates/edit.html index dc5f92e..71ab287 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -10,10 +10,6 @@ socket.emit("display", {action: "list"}, ack = (list) => onDisplayListReceive(list)); }); - socket.on("msg", (data) => { - console.log(data); - }); - function onDisplayListReceive(list) { clearDisplayList(); diff --git a/templates/main.html b/templates/main.html index 798fe39..34327bb 100644 --- a/templates/main.html +++ b/templates/main.html @@ -4,6 +4,7 @@ {% endblock %}