`; doc.open(); doc.write(content); doc.close(); }; const ad1 = document.createElement("div"); ad1.style.width = "300px"; ad1.style.height = "250px"; container.appendChild(ad1); // Inject ads in parallel isolated iframes injectAd(ad1); } createScriptTag({ inline: ` stpd = window.stpd || { que: [] }; window.googletag = window.googletag || {}; googletag.cmd = googletag.cmd || []; var anchorSlot; function giveReward() { console.log("Reward given"); googletag .pubads() .removeEventListener("rewardedSlotClosed", dismissReward); } // For Rewarded ad function dismissReward(evt) { googletag.destroySlots([evt.rewardedSlot]); } // For Rewarded ad function showAd() { console.log("show"); googletag.cmd.push(function () { var rewardedSlot = googletag.defineOutOfPageSlot( "/147246189,22921845643/doodlecricket.github.io_rewarded", googletag.enums.OutOfPageFormat.REWARDED, ); if (rewardedSlot) rewardedSlot.addService(googletag.pubads()); googletag.enableServices(); googletag .pubads() .addEventListener("rewardedSlotReady", function (evt) { evt.makeRewardedVisible(); }); googletag .pubads() .addEventListener("rewardedSlotClosed", dismissReward); googletag .pubads() .addEventListener("rewardedSlotGranted", giveReward); googletag.display(rewardedSlot); googletag.pubads().refresh([rewardedSlot]); }); } googletag.cmd.push(function () { anchorSlot = googletag.defineOutOfPageSlot('/22921845643/doodlecricket_global_bottom_anchor', googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR,).addService(googletag.pubads()); if (window.innerWidth >= 1200) { googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_300x600_desktop_sidebar_right", [ [300, 600], [160, 600], [300, 250], [300, 300], ], "doodlecricket_github_io_sidebar_right_desktop", ) .addService(googletag.pubads()); googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_1000x100_desktop_anchor", [ [1000, 100], [970, 90], [728, 90], [990, 90], [970, 50], [960, 90], [950, 90], [980, 90], ], "doodlecricket_github_io_anchor_ad_responsive", ) .addService(googletag.pubads()); googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_1000x100_desktop_top", [ [1000, 100], [970, 90], [728, 90], [990, 90], [970, 50], [960, 90], [950, 90], [980, 90], ], "doodlecricket_github_io_top_responsive", ) .addService(googletag.pubads()); } else if (window.innerWidth >= 1024) { googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_1000x100_desktop_anchor", [ [1000, 100], [970, 90], [728, 90], [990, 90], [970, 50], [960, 90], [950, 90], [980, 90], ], "doodlecricket_github_io_anchor_ad_responsive", ) .addService(googletag.pubads()); googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_1000x100_desktop_top", [ [1000, 100], [970, 90], [728, 90], [990, 90], [970, 50], [960, 90], [950, 90], [980, 90], ], "doodlecricket_github_io_top_responsive", ) .addService(googletag.pubads()); } else { googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_320x100_mobile_anchor", [ [320, 100], [320, 50], [300, 100], [300, 50], ], "doodlecricket_github_io_anchor_ad_responsive", ) .addService(googletag.pubads()); googletag .defineSlot( "/147246189,22921845643/doodlecricket.github.io_320x50_mobile_top", [ [320, 50], [300, 50], ], "doodlecricket_github_io_top_responsive", ) .addService(googletag.pubads()); } var interstitialSlot = googletag.defineOutOfPageSlot( "/22921845643/doodlecricket_interstitial", googletag.enums.OutOfPageFormat.INTERSTITIAL, ); if (interstitialSlot) interstitialSlot.addService(googletag.pubads()); // Allow GPT to request ads as soon as slots are displayed. // Previously this prevented initial ad loads until a later refresh. // googletag.pubads().disableInitialLoad(); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag .pubads() .setTargeting("category", "sports_cricket") .setTargeting("audience_interest", "sports_cricket"); googletag.enableServices(); googletag.display(interstitialSlot); setInterval(function() { googletag.pubads().refresh([anchorSlot]); }, 30000); googletag.cmd.push(() => { googletag.display(anchorSlot); }); }); `, }); createScriptTag({ src: "https://securepubads.g.doubleclick.net/tag/js/gpt.js", async: true, }); createScriptTag({ src: "https://stpd.cloud/saas/7197", async: true, }); createScriptTag({ src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3723218062742398", async: true, crossorigin: "anonymous", }); createScriptTag({ src: "https://cmp.setupcmp.com/cmp/cmp/cmp-v1.js", "data-prop-stpd-cmp-id": "7133", async: true, }); createScriptTag({ src: "https://cmp.setupcmp.com/cmp/cmp/cmp-stub.js", "data-prop-id": "7133", }); createAdDisplayDiv( "doodlecricket_github_io_anchor_ad_responsive", "bottom-placeholder", ); createAdDisplayDiv( "doodlecricket_github_io_top_responsive", "top-placeholder", ); createAdDisplayDiv( "doodlecricket_github_io_sidebar_right_desktop", "sticky-sidebar right-sidebar", ); } function checkQuery() { const score = new URLSearchParams(window.location.search).get("score"); const style = document.createElement("style"); if (score) { style.innerHTML = `#splash-new { display: none; }`; document.head.appendChild(style); loadJuice(); showAd(); // remove query param without reloading window.history.replaceState( {}, document.title, window.location.pathname, ); } else { style.innerHTML = `#splash-new { display: none; } #q-app { display: block; }`; document.head.appendChild(style); loadJuice(); } } document.addEventListener("DOMContentLoaded", function () { // Check if the page is loaded inside an iframe if (window.location !== window.parent.location) { // Get all anchor tags that are inside nav tags const links = document.querySelectorAll("nav a"); // Loop through each link and set its target attribute to "_blank" links.forEach(function (link) { link.target = "_blank"; }); } const playButton = document.querySelector("#play"); if (playButton) { playButton.addEventListener("click", loadJuice); } });

Doodle Cricket Game

Doodle Cricket

Google made a fun game called Doodle Cricket in 2017 to celebrate a big cricket tournament.

In the game, you're the batter trying to score lots of runs.

What makes it cool is how easy it is to play - you just click to swing the bat. But you still need to be smart about when you swing to hit the ball and not get out. There are different challenges too, like hitting the ball to certain spots or scoring fast.

It's a great way to honor the cricket tournament that lots of people love. Whether you're into cricket or just want a fun game to play, you should give Doodle Cricket a try!