diff options
Diffstat (limited to 'views/script/game_online.js')
-rw-r--r-- | views/script/game_online.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/script/game_online.js b/views/script/game_online.js new file mode 100644 index 0000000..e379708 --- /dev/null +++ b/views/script/game_online.js @@ -0,0 +1,9 @@ +if (location.search === "?online") { + document.getElementById('online-login').style.display = ""; + document.write(`<` + `script src="../online/global.js"></` + `script>`); +} else { + startHooks.forEach((hook) => { + hook(this); + }) + document.getElementById('ping').style.display = "none"; +}
\ No newline at end of file |