0%
Two Ball 3D

Two Ball 3D

All trademarks belong to their respective owners.

Advertisement
Two Ball 3D Two Ball 3D
exit full screen

Two Ball 3D

Two Ball 3D

Game will start after a short ad. Thank you for your support.

"; const rewardedSlot = googletag.defineOutOfPageSlot(adUnitPath, googletag.enums.OutOfPageFormat.REWARDED); if (rewardedSlot) { rewardedSlot.addService(googletag.pubads()); rewardedSlot.setForceSafeFrame(true); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.pubads().addEventListener('rewardedSlotReady', function (evt) { evt.makeRewardedVisible(); }); googletag.pubads().addEventListener('rewardedSlotClosed', function () { adInProgress = false; adClosed = true; if (typeof linkNew !== 'undefined' && linkNew === false) { checkAndRedirect(); } }); googletag.pubads().addEventListener('slotRenderEnded', function (event) { if (event.slot === rewardedSlot && event.isEmpty) { window.location.href = "https://reviewtopapp.com/appreviews/"; } }); googletag.display(rewardedSlot); } else { window.location.href = "https://reviewtopapp.com/appreviews/"; } }); } else { window.location.href = "https://reviewtopapp.com/appreviews/"; } } const modal = document.getElementById("myModal"); const closeBtn = document.getElementById("closeBtn"); const unlockBtn = document.getElementById("unlockBtn"); const rewardButton = document.getElementById('reward-button'); function resetCountdown() { clearInterval(countdownInterval); countdown = 3; countdownSpan.textContent = countdown; autoClicked = false; } rewardButton.onclick = function() { modal.style.display = "block"; } function autoClickUnlock() { autoClicked = true; unlockBtn.click(); } closeBtn.onclick = function() { modal.style.display = "none"; resetCountdown(); if (adInProgress) { adClosed = false; } } document.getElementById('unlockBtn').addEventListener('click', function() { modal.style.display = "none"; showRewardAd(); resetCountdown(); }); function checkAndRedirect() { if (rewarded && adClosed) { window.location.href = "https://reviewtopapp.com/appreviews/"; } } window.addEventListener('load', function() { if (typeof googletag !== 'undefined' && googletag.cmd) { googletag.cmd.push(function() { googletag.pubads().addEventListener('rewardedSlotGranted', function(evt) { rewarded = true; if(linkNew == false){ checkAndRedirect(); } }); }); } else { } }); $('.product-btns button').click(function(){ linkNew = $(this).attr('data-href'); $('#modal-ask-accept').css('display', 'block'); }); $('#modal-ask-accept .close').click(function() { $('#modal-ask-accept').css('display', 'none'); }) $('#modal-ask-accept .unlock').click(function(){ $('#modal-ask-accept').css('display', 'none'); showRewardAdButton(linkNew); }) function showRewardAdButton(link) { console.log('Reward Ad Button Clicked'); if (typeof googletag !== 'undefined' && googletag.cmd) { googletag.cmd.push(function() { const rewardedSlot = googletag.defineOutOfPageSlot('
', googletag.enums.OutOfPageFormat.REWARDED).addService(googletag.pubads()); rewardedSlot.setForceSafeFrame(true); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.pubads().addEventListener('rewardedSlotReady', function(evt) { evt.makeRewardedVisible(); }); googletag.pubads().addEventListener('rewardedSlotClosed', function(evt) { adInProgress = false; adClosed = true; if(linkNew != false) { checkAndRedirectButton(link); } }); googletag.display(rewardedSlot); }); } else { $('.unlock-accept-download').attr('href',openLink); $('#modal-accept-download').css('display', 'block'); } } function checkAndRedirectButton(openLink) { if (rewarded && adClosed) { $('.unlock-accept-download').attr('href',openLink); $('#modal-accept-download').css('display', 'block'); } } $('#modal-accept-download .close').click(function() { $('#modal-accept-download').css('display', 'none'); }) $('#modal-accept-download .unlock-accept-download').click(function() { $('#modal-accept-download').css('display', 'none'); }) });