KINGSLOT98 | Spin Your Way to Epic Wins di Platform Game Paling Hits Tahun Ini
`; $('body').append(modalHtml); $('#dynamic-modal').modal('show'); $.ajax({ url: '/user/transaction', method: 'GET', success: function(response) { $('#modal-content-container').html(response).animate({opacity: 1}, 300); if (typeof initializeTransactionModal === 'function') { initializeTransactionModal(); } }, error: function(xhr, status, error) { console.error('Failed to load transaction content:', error); $('#modal-content-container').html(`
Error

Gagal memuat halaman transaksi. Silakan coba lagi.

`).animate({opacity: 1}, 300); } }); }, 200); } function openTransactionTab(tabName) { if (typeof openTransactionModalWithTab === 'function') { openTransactionModalWithTab(tabName); } else { openTransactionModal(); setTimeout(function() { if ($('#dynamic-modal #' + tabName + '-tab').length) { $('#dynamic-modal #' + tabName + '-tab').click(); } }, 1000); } } function logout() { $.ajax({ url: '/api/logout', method: 'GET', success: function () { window.location.reload(); }, error: function (xhr) { console.error('Logout failed:', xhr.responseText); } }); } unreadMemo = 0; function setMemoBadge(value) { unreadMemo = value; if(value 99 ? "99+" : unreadMemo; $('.unread-memo-badge').html(`${ badgeValue }`); $('#navbar-profile-badge').html(badgeValue).show(); } } function decreaseMemo() { if(unreadMemo > 0) { unreadMemo--; setMemoBadge(unreadMemo); } } firstload = true; function getBalance() { var settings = { "url": "/api/user/balance?format=0&symbol=0", "method": "GET", "timeout": 0, }; $.ajax(settings).done(function (response) { if(response.error.code == 200) { credit = parseInt(response.data.credit); // Pulse Deposit Button if (credit unreadMemo && !firstload) { toast('[Memo] Pesan Masuk.'); } setMemoBadge(response.data.unreadMemo); if(firstload) firstload = false; } else { logout(); } }).fail(function (jqXHR, textStatus, errorThrown) { console.error("Failed to load balance:", textStatus, errorThrown); logout(); });; } function refreshCaptcha(element) { $(`#${element}`).attr('src', "/api/captcha?" + Date.now()); }
`; const settings = { url: encodeURI(`/game/search?name=${value}`), method: "GET", timeout: 0, }; $.ajax(settings).done(function (response) { resultBox.innerHTML = response; }); } else { resultBox.style.display = 'none'; overlay.style.display = 'none'; } } function openSearch(input) { const container = input.closest('.search-widget'); container.querySelector('.search-overlay').style.display = 'block'; document.body.classList.add('search-active'); if (window.innerWidth { const offset = input.getBoundingClientRect().top + window.scrollY - 16; window.scrollTo({ top: offset, behavior: 'smooth' }); }, 100); } } function closeSearch(overlay) { const container = overlay.closest('.search-widget'); container.querySelector('.search-overlay').style.display = 'none'; container.querySelector('.search-result').style.display = 'none'; document.body.classList.remove('search-active'); input.blur(); } function checkFocus(input) { const container = input.closest('.search-widget'); setTimeout(() => { if (!container.contains(document.activeElement)) { closeSearch(container.querySelector('.search-overlay')); } }, 200); }
Trending Slot
Trending Casino
Trending Games
Pasaran Togel
TOTO WUHAN
8654
2026-03-06
HK SIANG
2593
2026-03-06
CAMBODIA
4561
2026-03-06
SG METRO
6214
2026-03-05
SYDNEY
9935
2026-03-05
SYDNEY POOL
6591
2026-03-05
SINGAPORE
7788
2026-03-05
MALAYSIA SIANG
1007
2026-03-05
MALAYSIA
8684
2026-03-05
MACAU
4963
2026-03-05
QATAR
4227
2026-03-05
HK MALAM
7108
2026-03-05
HONGKONG
1214
2026-03-05
TOTOMACAU 0000
8768
2026-03-06
TOTOMACAU 1300
8313
2026-03-05
TOTOMACAU 1600
3084
2026-03-05
TOTOMACAU 1900
0702
2026-03-05
TOTOMACAU 2200
2201
2026-03-05
TOTO WUHAN
8654
2026-03-06
HK SIANG
2593
2026-03-06
CAMBODIA
4561
2026-03-06
SG METRO
6214
2026-03-05
SYDNEY
9935
2026-03-05
SYDNEY POOL
6591
2026-03-05
SINGAPORE
7788
2026-03-05
MALAYSIA SIANG
1007
2026-03-05
MALAYSIA
8684
2026-03-05
MACAU
4963
2026-03-05
QATAR
4227
2026-03-05
HK MALAM
7108
2026-03-05
HONGKONG
1214
2026-03-05
TOTOMACAU 0000
8768
2026-03-06
TOTOMACAU 1300
8313
2026-03-05
TOTOMACAU 1600
3084
2026-03-05
TOTOMACAU 1900
0702
2026-03-05
TOTOMACAU 2200
2201
2026-03-05
Transaksi
Bank Lokal
E-Wallet & Pulsa
Crypto Currency
`); } }); // Fungsi untuk menutup pop-up const close_pop_up = () => { document.getElementById('pop-up-wrapper')?.classList.replace('swirl-in-fwd', 'swirl-out-bck'); document.getElementById('bg-black')?.classList.replace('fade-in', 'fade-out'); setTimeout(() => { const pop_up_container = document.getElementById('pop-up-container'); pop_up_container?.parentElement.removeChild(pop_up_container); }, 1000); }; // Fungsi untuk membuka link khusus const go_to_custom_link = () => { window.open('https://t.me/Okjek21official', '_blank'); };