We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 442d6f8 commit 4e0d30aCopy full SHA for 4e0d30a
ohbm2020/room.html
@@ -74,13 +74,16 @@
74
let wss = new ReconnectingWebSocket("wss://dev1.soichi.us/ohbm2020/");
75
// let wss = new WebSocket("wss://dev1.soichi.us/ohbm2020/");
76
wss.onopen = () => {
77
+ wss.send(JSON.stringify({action: "jit", id, cid}));
78
+ setInterval(()=>{
79
wss.send(JSON.stringify({action: "jit", id, cid}));
- }
80
+ }, 1000*30);
81
+ };
82
+
83
window.addEventListener("beforeunload", function(evt) {
84
wss.send(JSON.stringify({action: "jitclose", id, cid}));
85
});
86
-
87
function feedbackAnimationStep(timer, elem) {
88
const dx = 500 * Math.random() - 250;
89
const x = parseInt("0" + elem.style.left);
0 commit comments