diff options
author | Minteck <contact@minteck.org> | 2022-05-07 18:15:13 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-05-07 18:15:13 +0200 |
commit | 88394101a513cf41dd4af1bb46881e7ae78bcf9f (patch) | |
tree | e99d2e9fd27ff2b1ebe1790c4e866d3862def0a5 /tictactoe/morpion/base.js | |
parent | 1f8e9aab02a849f64aa6069a04cbabaf5993c65a (diff) | |
download | arcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.tar.gz arcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.tar.bz2 arcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.zip |
Add RPS
Diffstat (limited to 'tictactoe/morpion/base.js')
-rwxr-xr-x | tictactoe/morpion/base.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tictactoe/morpion/base.js b/tictactoe/morpion/base.js index b5db1d2..7bb8fd2 100755 --- a/tictactoe/morpion/base.js +++ b/tictactoe/morpion/base.js @@ -215,5 +215,20 @@ function airevrand() { } window.addEventListener("load", () => { - if (location.hash === "#/train") train(); -}); + if (location.hash === "#/train") { + train(); + } + if (!location.hash.startsWith("#online/")) { + document.getElementById("resetbtn").style.display = "none"; + } + + if (location.hash === "#/train") { + document.title = "Local Game | Tic-Tac-Toe | Minteck Arcade"; + } else if (location.hash.startsWith("#online/")) { + document.title = "Online Game | Tic-Tac-Toe | Minteck Arcade"; + } else if (location.hash === "#/auto") { + document.title = "Automated machine learning | Tic-Tac-Toe | Minteck Arcade"; + } else { + document.title = "Singleplayer Game | Tic-Tac-Toe | Minteck Arcade"; + } +});
\ No newline at end of file |