From 8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 5 Jun 2021 19:27:48 +0200 Subject: Presque sortie du jeu --- views/script/game_online.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 views/script/game_online.js (limited to 'views/script/game_online.js') 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">`); +} else { + startHooks.forEach((hook) => { + hook(this); + }) + document.getElementById('ping').style.display = "none"; +} \ No newline at end of file -- cgit