image bg Perfect Pouring Color Sorting Puzzle Game
image Perfect Pouring Color Sorting Puzzle Game
Perfect Pouring Color Sorting Puzzle Game
Play Now
Game loading..
25
image bg Perfect Pouring Color Sorting Puzzle Game

Perfect Pouring Color Sorting Puzzle Game

0 plays

Perfect Pouring Color Sorting Puzzle Game

'; function ReqGameFullscreen() { let gameElement = document.getElementById('gameDiv'); $("#ava-game_container").removeClass("max-h-[calc(100svh-240px)]"); $("#ava-game_container").addClass("max-h-[calc(100svh-45px)]"); $('.game-zoom-btn').addClass("hidden"); $('#exitFullscreen-btn').removeClass("hidden"); if (gameElement.requestFullscreen) { gameElement.requestFullscreen(); } else if (gameElement.mozRequestFullScreen) { // Mozilla gameElement.mozRequestFullScreen(); } else if (gameElement.webkitRequestFullscreen) { // Webkit gameElement.webkitRequestFullscreen(); } else if (gameElement.msRequestFullscreen) { // IE/Edge gameElement.msRequestFullscreen(); } } document.getElementById('exitFullscreen-btn').addEventListener('click', function() { exitFullscreen(); }); function exitFullscreen() { let gameElement = document.getElementById('gameDiv'); $("#ava-game_container").removeClass("max-h-[calc(100svh-45px)]"); $("#ava-game_container").addClass("max-h-[calc(100svh-240px)]"); $('.game-zoom-btn').removeClass("hidden"); $('#exitFullscreen-btn').addClass("hidden"); if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.mozCancelFullScreen) { // Mozilla document.mozCancelFullScreen(); } else if (document.webkitExitFullscreen) { // Webkit document.webkitExitFullscreen(); } else if (document.msExitFullscreen) { // IE/Edge document.msExitFullscreen(); } } $(document).ready(function() { $('.play-now-button').click(function(e) { $("#play-game-box").removeClass("hidden"); SkipAdAndShowGame(); $("#gamePlay-content").hide(); // $('#adsContainer').show(); if ($( document ).width() < 1024) { $("#header").hide(); $("#topad").hide(); $("#game-bottom").hide(); $(".play-game-bottom").hide(); $(".tags-walkthrough-container").hide(); $(".h-head").hide(); $(".game-zoom").hide(); // $("#adsContainer").hide(); $("#game-col").css("margin", "0px"); $("#game-col").css("height", "100svh"); $("#gameDiv").css("height", "100svh"); $("#gameDiv").css("width", "100vw"); $("#gameDiv").css("position", "fixed"); $("#gameDiv").css("top", "0"); $("#gameDiv").css("left", "0"); $("#gameDiv").css("z-index", "9999"); $("#ava-game_container").css("height", "100svh"); $('body').css('overflow', 'hidden'); $('.close-fullscreen').css('display', 'flex'); // GameFullscreen() // $("#game-preloading").show(); // setTimeout( // function() // { // $("#game-preloading").hide(); // PreRollAd.start(); // }, 550); // Tambahkan fungsi fullscreen // Call the fullscreen function ReqGameFullscreen(); } }); $('.show-more-games-button').click(function() { $(".gameplay-container").show(); $('a.hidden').removeClass('hidden'); $(this).hide(); }); }); function SkipAdAndShowGame() { $("#adsContainer").hide(); $(".game-box").html(iframe); } $(function() { $('.ad300').eq(0).show(); if ($('.ad300').size() > 1) { setInterval(function() { var first = $('.ad300').eq(0); first.hide(); $('.ad300').last().after(first); $('.ad300').eq(0).fadeIn(); }, 3000); } $('.adsmall').eq(0).show(); if ($('.adsmall').size() > 1) { setInterval(function() { var first = $('.adsmall').eq(0); first.hide(); $('.adsmall').last().after(first); $('.adsmall').eq(0).fadeIn(); }, 3000); } })