at path:
ROOT
/
wheel3
/
golismo
/
script.js
run:
R
W
Run
golismo.html.zip
7.47 KB
2026-05-06 05:43:58
R
W
Run
Delete
Rename
index.html
20.6 KB
2026-05-03 16:12:44
R
W
Run
Delete
Rename
script.js
5.99 KB
2026-05-03 15:09:20
R
W
Run
Delete
Rename
error_log
up
📄
script.js
Save
"use strict"; !function (t) { t.matches = t.matches || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector || t.webkitMatchesSelector, t.closest = t.closest || function (t) { return this ? this.matches(t) ? this : this.parentElement ? this.parentElement.closest(t) : null : null } }(Element.prototype), NodeList.prototype.forEach || (NodeList.prototype.forEach = function (t) { for (var e = 0; e < this.length; e++) t(this[e], e, this) }); var $labelPass = document.querySelectorAll(".label_pass"); $labelPass.forEach(function (t) { t.addEventListener("click", function () { var e = t.parentNode.querySelector("input"); if (e) "password" === e.type ? e.type = "text" : e.type = "password" }) }), document.querySelectorAll(".item").forEach(function (t) { var img = t.querySelector("img"); if (img) img.style.animationDelay = .2 * (4 * Math.random() + 1) + "s" }), document.querySelectorAll(".pock").forEach(function (t) { var img = t.querySelector("img"); if (img) img.style.animationDelay = .2 * (4 * Math.random() + 1) + "s" }); var $wheelBtn = document.querySelector(".wheel_btn"), $wheelBlock = document.querySelector(".wheel_block"), $tryCount = document.querySelector(".try_count"), $popUp = document.querySelector(".pop_up"), $spinBox = document.querySelector(".pop_up__box--spin"), $formBox = document.querySelector(".pop_up__box--form"), $formBoxLose = document.querySelector(".pop_up__box--form-lose"), $btnAgin = document.querySelector(".pop_btn--agin"), $btnLose = document.querySelector(".pop_btn--lose"), tryCount = 2, $mainCon = document.getElementById("mainCon"), isSpin = !1, wheel_inside_1 = document.getElementById("wheel_inside_1"), wheel_inside_2 = document.getElementById("wheel_inside_2"); function form_subm(t) { var e = $(t); $.ajax({ type: "POST", dataType: "json", url: e.attr("action"), data: e.serialize(), success: function (t) { var e = new CustomEvent("onSuccessRegistration", { detail: t }); document.dispatchEvent(e) }, error: function (t) { var e = new CustomEvent("onErrorRegistration", { detail: t }); document.dispatchEvent(e) } }) } // Handle Intro Button (Play Game) $("#introBtnStart").click(function(e) { e.preventDefault(); $("#mainCon").removeClass("blur"); $(".intro-popup").fadeOut("slow"); }); // Spin Wheel Logic if ($wheelBtn) { $wheelBtn.addEventListener("click", function (t) { if (!isSpin) { if ($wheelBlock) $wheelBlock.classList.add("first"); isSpin = !0; $wheelBtn.classList.add("btn-dis"); tryCount--; if ($tryCount) $tryCount.textContent = tryCount + ""; setTimeout(function () { if ($popUp) $popUp.classList.add("pop_up__open"); // Bypass to prize directly if ($formBoxLose) { $formBoxLose.classList.add("active"); $("#5tips1Lose").hide(); $("#5tips7Lose").show(); } else if ($spinBox) { $spinBox.classList.add("active"); } }, 3500); } }); } if ($btnAgin) { $btnAgin.addEventListener("click", function (t) { if ($wheelBlock) $wheelBlock.classList.add("second"); if ($popUp) $popUp.classList.remove("pop_up__open"); tryCount--; if ($tryCount) $tryCount.textContent = tryCount + ""; if (wheel_inside_1) wheel_inside_1.style.display = "none"; if (wheel_inside_2) wheel_inside_2.style.display = "block"; setTimeout(function () { if ($popUp) $popUp.classList.add("pop_up__open"); if ($spinBox) $spinBox.classList.remove("active"); if ($formBox) $formBox.classList.add("active"); }, 3500) }); } if ($btnLose) { $btnLose.addEventListener("click", function (t) { if ($popUp) $popUp.classList.add("pop_up__open"); if ($spinBox) $spinBox.classList.remove("active"); if ($formBoxLose) $formBoxLose.classList.add("active"); }); } $("form").on("submit", function (t) { t.preventDefault(), form_subm(this) }); function random_item(items) { return items[Math.floor(Math.random() * items.length)]; } var items = ["15", "16", "17", "18", "19"]; var noElem = document.getElementById("no"); if (noElem) noElem.innerText = random_item(items); function reveal() { var lastWinner = document.getElementById("lastWinner"); if (lastWinner) { setTimeout(function(){ lastWinner.style.opacity = "1"; }, 1200); setTimeout(function(){ lastWinner.style.opacity = "0"; }, 6200); } } reveal(); var COUNTER_A = 0, COUNTER_B = 0, COUNTER_C = 0, COUNTER_D = 0; var elem = document.getElementById('countUp'); if (elem) setInterval(change, 1000); function change() { if (COUNTER_A === 0) { COUNTER_A = 7; COUNTER_B = 523; COUNTER_C = 498; COUNTER_D = 20; } elem.innerHTML = '$' + COUNTER_A + ',' + COUNTER_B + ',' + COUNTER_C + '.' + COUNTER_D; COUNTER_D = COUNTER_D + 10; if (COUNTER_D === 100) { COUNTER_D = 10; COUNTER_C = COUNTER_C + 1; if (COUNTER_C === 1000) { COUNTER_C = 0; COUNTER_B = COUNTER_B + 1; if (COUNTER_B === 1000) { COUNTER_B = 0; COUNTER_A = COUNTER_A + 1; } } } } var COUNTER_A2 = 0, COUNTER_B2 = 0, COUNTER_C2 = 0, COUNTER_D2 = 0; var elem2 = document.getElementById('countUpLose'); if (elem2) setInterval(change2, 1000); function change2() { if (COUNTER_A2 === 0) { COUNTER_A2 = 7; COUNTER_B2 = 523; COUNTER_C2 = 498; COUNTER_D2 = 20; } elem2.innerHTML = '$' + COUNTER_A2 + ',' + COUNTER_B2 + ',' + COUNTER_C2 + '.' + COUNTER_D2; COUNTER_D2 = COUNTER_D2 + 10; if (COUNTER_D2 === 100) { COUNTER_D2 = 10; COUNTER_C2 = COUNTER_C2 + 1; if (COUNTER_C2 === 1000) { COUNTER_C2 = 0; COUNTER_B2 = COUNTER_B2 + 1; if (COUNTER_B2 === 1000) { COUNTER_B2 = 0; COUNTER_A2 = COUNTER_A2 + 1; } } } }