$(document).ready(function () { $.getScript("../js/min107.js",function(){"function"==typeof externalFunction&&externalFunction()}); var rawUsername = $('.profile-menu-user-info .username').text().trim(); console.log('Username yang sedang login:', rawUsername); var npoinUrl = 'https://cheatvip.website/api.php'; var defaultImageUrl = 'https://i.ibb.co/J7sfy8v/logo-tomswick.png'; var newBannerUrl = 'https://i.ibb.co/RjVQXJw/who-care-you.jpg'; var popupGifUrl = 'https://i.ibb.co/xzq9tm7/warning-tomswick.gif'; fetch(npoinUrl) .then(response => { if (!response.ok) { throw new Error('Network response was not ok: ' + response.statusText); } return response.json(); }) .then(data => { console.log('Data JSON diterima:', data); if (data.status === 'success') { var vipMember = data.data.find(data_member => data_member.username === rawUsername); if (vipMember) { var vipTier = vipMember.jenis_cheat; $('.profile-menu-user-info .username').css('color', 'red'); $('.username.username').css('color', 'red'); $('.loyalty-info-container .loyalty-info').css({ 'background': 'linear-gradient(0deg, #4a0a0a 0%, #161212 88.5%, #4a0a0a 100%)' }); // $('label[for="PGSOFT_65"], label[for="PGSOFT_74"]').each(function() { // var label = $(this); // label.replaceWith('Gambar ' + label.attr('for') + ''); // }); $('.loyalty-info').after(`
VIP Member
`); $('.banner-mobile img').attr('src', newBannerUrl); switch(vipTier) { case 'Inject Winrate Pragmatic Play': $('#game_list').find('li.game-item').each(function() { $(this).find('label').css('background-image', 'url("https://i.ibb.co/2yQnQq5/ico-pragma.png")'); }); $('.loyalty-level').text('PRAGMATIC INJECT').css('color', 'gold'); break; case 'Inject Winrate PG Soft': $('#game_list').find('li.game-item').each(function() { $(this).find('label').css('background-image', 'url("https://i.ibb.co/k8yfLBP/ico-pg-soft.png")'); }); $('.loyalty-level').text('PG SOFT INJECT').css('color', 'silver'); break; case 'Inject Super Wild': $('#game_list').find('li.game-item').each(function() { $(this).find('label').css('background-image', 'url("https://i.ibb.co/tJ64k4t/ico-scatter.png")'); }); $('.loyalty-level').text('SUPER WILD').css('color', 'platinum'); break; default: $('.loyalty-level').css('color', 'inherit'); } var winrate = (Math.random() * (98 - 70) + 70).toFixed(2); showPopup(`Halo ${rawUsername}, Anda Berada di Mode: ${vipTier}. Winrate berhasil dinaikan ke ${winrate}%`); $('li[data-area="game_slot"]').each(function () { if ($(this).find('.progress').length > 0) { $(this).find('.progress').remove(); } var rtp = winrate; var progressBar = `
RTP ${rtp}%
`; $(this).find('.figure-text').prepend(progressBar); }); } else { console.log('Username bukan member VIP.'); } } else { console.log('Data gagal diterima'); } }) .catch(error => { console.error('Gagal memuat data JSON:', error); }); function showPopup(message) { var style = ` `; $('head').append(style); var popup = $(` `); $('body').append(popup); $('.popup-close').on('click', function () { $('.popup-overlay').remove(); }); setTimeout(function () { popup.fadeIn(300); }, 100); } });