var uptap; !function(_0x50e747) { window['gameFrame'] = document['getElementById']('game_iframe'); window['tip'] = document['getElementById']('tip'); window['tip_txt'] = document['getElementById']('tip-txt'); window.jcwd = setInterval( () => { window['innerHeight'] > 100 && (window['gameFrame']['style']['height'] = window['innerHeight'] + 'px', clearInterval(window.jcwd)) } , 50); try{ var div = document.getElementById("game_banner"); div.remove() }catch(e){} window.adsbygoogle = window.adsbygoogle || []; window['adBreak'] = window['adConfig'] = function(_0x252f05) { adsbygoogle['push'](_0x252f05); } ; adConfig({ 'preloadAdBreaks': 'auto', 'sound': 'off' }); _0x50e747['eventArrive'] = _0x13e1f3 => { var _0x453d4a = _0x13e1f3['data']; if (_0x453d4a) { var _0x3c3e73 = _0x453d4a['cmd']; switch (_0x3c3e73) { case 'ShowExcitationVideoAdv': uptap['playExcitationVideo'](function(_0x5b52af) { let _0x233cef = { 'cmd': 'ShowExcitationVideoAdv_out', 'data': _0x5b52af }; window['frames']['gameFrame']['contentWindow']['postMessage'](_0x233cef, '*'); }); break; case 'ShowScreenVideo': uptap['ShowScreenVideo'](_0x4dbe11 => { let _0x4847af = { 'cmd': 'ShowScreenVideo_out', 'data': _0x4dbe11 }; window['frames']['gameFrame']['contentWindow']['postMessage'](_0x4847af, '*'); } ); break; case 'SetLoadingProgress': break; case 'LoadingComplete': break; case 'GameEvent': if (window['h5sdk']) { switch (_0x453d4a['eventName']) { case 'showBanner': window['h5sdk']['show'](); setTimeout( () => { window['h5sdk']['hide'](); } , 0x9f20a ^ 0x9e182); break; case 'hitBanner': if (_0x453d4a['param1'] == 'over') return; window['h5sdk']['hide'](); break; case 'showBanner_h5': window['showBannerH5'](); break; case 'hitBanner_h5': window['hitBannerH5'](); break; case 'refreshBanner_h5': window['refreshBannerH5'](); break; case 'level_begin': window['h5sdk']['athenaSend'](_0x453d4a['eventName'], _0x453d4a['param1']); break; case 'level_end': window['h5sdk']['athenaSend'](_0x453d4a['eventName'], _0x453d4a['param1']); break; case 'level_next': window['h5sdk']['athenaSend'](_0x453d4a['eventName'], _0x453d4a['param1']); break; case 'reward_click': window['h5sdk']['athenaSend'](_0x453d4a['eventName'], _0x453d4a['param1']); break; case 'loading_complete': break; } } break; } } } , _0x50e747['ShowScreenVideo'] = _0x1ae7cb => { _0x1ae7cb && _0x1ae7cb({ 'type': '3' }); _0x1ae7cb = null; } ; window['reward'] = null; window['rewardBack'] = null; _0x50e747['playExcitationVideo'] = _0x2f4620 => { if (window['h5sdk'] != null && cy_ads['reward_click']) { window['h5sdk']['athenaSend']('reward_click', 'shop'); } if (window['reward']) { window['rewardBack'] = _0x2f4620; window['reward'](); window['reward'] = null; } else { _0x50e747['loadReward'](); window['rewardBack'] = _0x2f4620; window['rewardBack'] && window['rewardBack']({ 'type': '1' }); window['rewardBack'] = null; uptap['showTip']('Sorry,\x20No\x20Ads\x20available.Please\x20try\x20again\x20later.'); } } ; _0x50e747['loadReward'] = () => { if (window['reward']) return; window['adBreak']({ 'type': 'reward', 'name': 'game_reward', 'beforeAd': () => { uptap['trace']('AD\x20TEST\x20beforeAd!'); } , 'afterAd': () => { uptap['trace']('AD\x20TEST\x20afterAd!'); window['reward'] = null; uptap['loadReward'](); } , 'beforeReward': _0xf48981 => { uptap['trace']('load\x20Reward\x20AD\x20Successful'); window['reward'] = _0xf48981; } , 'adDismissed': () => { window['rewardBack'] && window['rewardBack']({ 'type': '1' }); window['rewardBack'] = null; uptap['trace']('用户提前关闭广告!'); uptap['showTip']('You\x20can\x20get\x20rewards\x20after\x20watching\x20the\x20full\x20Ad.'); } , 'adViewed': () => { window['rewardBack'] && window['rewardBack']({ 'type': '3' }); window['rewardBack'] = null; uptap['trace']('广告观看完毕,用户获得奖励!'); } , 'adBreakDone': _0x55cf6b => { uptap['trace']('ADS->' + JSON['stringify'](_0x55cf6b)); try { if (_0x55cf6b['breakStatus'] == 'noAdPreloaded') { setTimeout( () => { uptap['loadReward'](); } , 0xd603e ^ 0xd73b6); } } catch (_0x12ce93) {} } }); } ; _0x50e747['loadScript'] = (_0x4b3de0, _0x425d6c, _0x10c6bb) => { let _0x339dc9 = document; let _0x50e601 = _0x339dc9['createElement']('script') , _0x4acffe = _0x339dc9['head'] || _0x339dc9['getElementsByTagName']('head')[0xb4481 ^ 0xb4481]; _0x50e601['readyState'] ? _0x50e601['onreadystatechange'] = function() { 'loaded' !== _0x50e601['readyState'] && 'complete' !== _0x50e601['readyState'] || (_0x50e601['onreadystatechange'] = null, _0x425d6c(!![])); } : _0x50e601['onload'] = function() { _0x425d6c(![]); } ; _0x50e601['src'] = _0x4b3de0; _0x50e601['async'] = !![]; null == _0x4acffe || _0x4acffe['appendChild'](_0x50e601); } , _0x50e747['showTip'] = _0x30d76c => { window['tip_txt']['innerHTML'] = _0x30d76c; window['tip']['style']['display'] = 'block'; clearTimeout(window['hitTipTime']); window['hitTipTime'] = setTimeout( () => { window['tip']['style']['display'] = 'none'; } , 0x667d8 ^ 0x66204); } ; _0x50e747['trace'] = _0x196b6e => { console['log']('%c\x20' + _0x196b6e, 'color:\x20#00ff00;font-size:\x2020px;text-shadow:2px\x202px\x200px\x20#000000'); } ; }(uptap = uptap || {}); if (window['addEventListener'] != void (0x45d77 ^ 0x45d77)) { window['addEventListener']('message', uptap['eventArrive']['bind'](uptap)); } else { window['attachEvent'] && window['attachEvent']('message', uptap['eventArrive']['bind'](uptap)); } uptap['loadScript']('https://www.googletagmanager.com/gtag/js?id=' + window['appinfo']['ga'], _0x3a18d8 => { window['dataLayer'] = window['dataLayer'] || []; window['gtag'] = function() { window['dataLayer']['push'](arguments); } ; window['gtag']('js', new Date()); window['gtag']('config', window['appinfo']['ga']); try { if (window['appinfo']['ga2'] != '') { window['ga']('create', window['appinfo']['ga2'], { 'name': 'b' }); window['ga']('b.send', 'pageview'); } } catch (_0x5ed628) {} try { window['ga']('create', 'UA-183890722-45', { 'name': 'c' }); window['ga']('c.send', 'pageview'); } catch (_0x3acae4) {} } ); window.gameFrame.src = window.appinfo.gameurl; setTimeout(()=>{ var div = document.getElementById("circularLoad"); div.remove() },(3+Math.random()*5)*1000); setTimeout(()=>{ uptap.loadReward(); },3*1000); //下面是創建返回按鈕的 (function () { const button = document.createElement("div"); button.innerHTML = "←"; // ← 箭头 button.style.position = "fixed"; button.style.top = "20px"; button.style.left = "20px"; button.style.zIndex = "9999"; button.style.width = "36px"; button.style.height = "36px"; button.style.lineHeight = "36px"; button.style.textAlign = "center"; button.style.fontSize = "24px"; button.style.borderRadius = "50%"; button.style.backgroundColor = "rgba(0,0,0,0.6)"; button.style.color = "#fff"; button.style.cursor = "pointer"; button.style.userSelect = "none"; button.onclick = function () { history.back(); }; let startY = 0; let startTop = 0; let dragging = false; button.addEventListener("mousedown", function (e) { dragging = true; startY = e.clientY; startTop = parseInt(button.style.top, 10); e.preventDefault(); }); document.addEventListener("mousemove", function (e) { if (!dragging) return; const deltaY = e.clientY - startY; let newTop = startTop + deltaY; const minTop = 0; const maxTop = window.innerHeight - button.offsetHeight; if (newTop < minTop) newTop = minTop; if (newTop > maxTop) newTop = maxTop; button.style.top = newTop + "px"; }); document.addEventListener("mouseup", function () { dragging = false; }); button.addEventListener("touchstart", function (e) { dragging = true; startY = e.touches[0].clientY; startTop = parseInt(button.style.top, 10); }); document.addEventListener("touchmove", function (e) { if (!dragging) return; const deltaY = e.touches[0].clientY - startY; let newTop = startTop + deltaY; const minTop = 0; const maxTop = window.innerHeight - button.offsetHeight; if (newTop < minTop) newTop = minTop; if (newTop > maxTop) newTop = maxTop; button.style.top = newTop + "px"; }); document.addEventListener("touchend", function () { dragging = false; }); document.body.appendChild(button); })(); console.log("1.0.2")