JQuery para JavaScript Converter online
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
Better Barracuda
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
There is no i guess:D
window.onload = function () {
let btnReset = document.getElementById("btn-reset"); //「重啟遊戲」按鈕
let btnCheck = document.getElementById("btn-check"); //「檢視猜測結果」按鈕
let btnToggleDealerDigits = document.getElementById("btn-toggle-dealer-digits"); //「顯示|隱藏莊家的數字」按鈕
let inputProcessMsgBox = document.getElementById("input-process-msg-box"); //玩家輸入重複數字的錯誤訊息的顯示區
let guessResultBox = document.getElementById("guess-result-box"); //「玩家猜測結果」顯示區
let dealerDigitsBox = document.getElementById("dealer-digits-box"); //「莊家的數字」顯示區
let dealerDigits = []; //莊家(電腦)產生的數字的儲存區(int[])
let playerDigits = []; //玩家猜測的數字的儲存區(String[])
let correctGuess = []; //玩家猜對的數字的儲存區(int[])
let playerInputElements = []; //所有「數字輸入欄」元素的統一儲存區(Element[])
let gameDigitsCount = 5; //本遊戲使用5個數字
const date_picker_element = document.querySelector('.date-picker');
const selected_date_element = document.querySelector('.date-picker .selected-date');
const dates_element = document.querySelector('.date-picker .dates');
const mth_element = document.querySelector('.date-picker .dates .month .mth');
const next_mth_element = document.querySelector('.date-picker .dates .month .next-mth');
const prev_mth_element = document.querySelector('.date-picker .dates .month .prev-mth');
const days_element = document.querySelector('.date-picker .dates .days');
const date_picker_element = document.querySelector('.date-picker');
const selected_date_element = document.querySelector('.date-picker .selected-date');
const dates_element = document.querySelector('.date-picker .dates');
const mth_element = document.querySelector('.date-picker .dates .month .mth');
const next_mth_element = document.querySelector('.date-picker .dates .month .next-mth');
const prev_mth_element = document.querySelector('.date-picker .dates .month .prev-mth');
const days_element = document.querySelector('.date-picker .dates .days');