This commit is contained in:
2019-12-26 21:59:42 +01:00
parent ffe93407c4
commit 82a5e4be62
3 changed files with 155 additions and 18 deletions

View File

@@ -3,6 +3,10 @@
{% block extend_head %}
<script src="{{ url_for('static', filename='js/socket.io.js') }}"></script>
<style>
body {
color: #EAEAEA;
}
display:before {
content: attr(title);
}
@@ -49,7 +53,7 @@
}
displaylist list > a {
border: 2px solid black;
border: 2px solid #333;
padding: 1em;
}
@@ -90,7 +94,6 @@
socket.on("connect", () => {
socket.emit("display", {action: "list"});
//socket.emit("connect", {data: "ฅ^•ﻌ•^ฅ"});
});
socket.on("display", (json) => {
@@ -114,8 +117,6 @@
});*/
function onDisplayList(list) {
console.log(list);
function add(item) {
let displayOption = document.createElement("a");
displayOption.innerText = item;