projects
/
rpsls-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb90bb
)
Fix spaces: \t --> ' '
author
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 24 Oct 2021 21:21:08 +0000
(23:21 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 24 Oct 2021 21:21:08 +0000
(23:21 +0200)
rpsls.js
patch
|
blob
|
blame
|
history
diff --git
a/rpsls.js
b/rpsls.js
index
92ec9fc
..
bf5df63
100644
(file)
--- a/
rpsls.js
+++ b/
rpsls.js
@@
-25,11
+25,11
@@
let Seek = {
Seek.searching = true;
}
},
-
view: function(vnode) {
+ view: function(vnode) {
if (Seek.searching)
return m("img.animated", {src: "assets/searching.gif"});
-
return m("button", {onclick: Seek.seekGame}, "Play");
-
}
+ return m("button", {onclick: Seek.seekGame}, "Play");
+ }
};
const Choices =
@@
-144,7
+144,7
@@
socket.on("move", (msg) => {
});
m.route(document.body, "/seek", {
-
"/seek": Seek,
-
"/play": Play,
+ "/seek": Seek,
+ "/play": Play,
"/login": Login
});