diff options
Diffstat (limited to 'views/script/win_message.js')
-rw-r--r-- | views/script/win_message.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/script/win_message.js b/views/script/win_message.js new file mode 100644 index 0000000..fd01c22 --- /dev/null +++ b/views/script/win_message.js @@ -0,0 +1,9 @@ +if (location.search === "?sp") { + if ((location.hash.substr(4) - 1 + 2) == 1) { + document.write(lang.win.solo.win); + } else { + document.write(lang.win.solo.lose); + } +} else { + document.write(lang.win.versus.replace("0", (location.hash.substr(4) - 1 + 2))); +}
\ No newline at end of file |