Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fgfobdpqjs authored Feb 16, 2024
1 parent 8b630f6 commit fb7f582
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CHICXK/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ const MODE_NORMAL = 1, MODE_ENDLESS = 2, MODE_PRACTICE = 3;

(function(w) {
function getJsonI18N() {
// https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/language
// https://developer.mozilla.org/docs/Web/API/Navigator/language

const LANGUAGES = [
{ regex: /^zh-CN\b/, lang: 'zh' },
{ regex: /^zh-TW\b/, lang: 'zht' },
{ regex: /^zh-HK\b/, lang: 'zht' },
{ regex: /^zh-MO\b/, lang: 'zht' },
{ regex: /^zh-cn\b/, lang: 'zh' },
{ regex: /^zh-tw\b/, lang: 'zht' },
{ regex: /^zh-hk\b/, lang: 'zht' },
{ regex: /^zh-mo\b/, lang: 'zht' },
{ regex: /^ja\b/, lang: 'ja' },
{ regex: /.*/, lang: 'en'}
]
Expand Down Expand Up @@ -287,8 +289,8 @@ const MODE_NORMAL = 1, MODE_ENDLESS = 2, MODE_PRACTICE = 3;
let httpRequest = new XMLHttpRequest();
httpRequest.open('POST', './SubmitResults.php', true);
httpRequest.setRequestHeader("Content-type", "application/json");
let name = $("#username").val();
let message = $("#message").val();
let name = $("#username0").val();
let message = $("#message0").val();
let test = "|_|";
httpRequest.send(encrypt(_gameScore + test + name + test + tj + test + message));
}
Expand Down

0 comments on commit fb7f582

Please sign in to comment.