updated version of script.js

This commit is contained in:
Logan Allen 2019-03-13 13:25:12 -07:00 committed by Isaac Visintainer
parent 8eac489504
commit 78c4d2063d
2 changed files with 3 additions and 9 deletions

View File

@ -1,9 +0,0 @@
^- manx
;html
;head
;script(type "application/javascript", src "/~modulo/session.js");
==
;body
;script(type "application/javascript", src "/~modulo/script.js");
==
==

View File

@ -34,6 +34,9 @@ window.addEventListener("message", (event) => {
input.style = ""; input.style = "";
input.addEventListener("keyup", (e) => { input.addEventListener("keyup", (e) => {
if (e.keyCode !== 13) { return; } if (e.keyCode !== 13) { return; }
popup.style = "display:hidden;";
popup.style = "visibility:hidden !important;";
window.urb.poke(window.ship, "modulo", "modulo-command", window.urb.poke(window.ship, "modulo", "modulo-command",
{ {
go: input.value go: input.value