Papa's Pizzeria - Play online at Coolmath Games (2023)

you will like it too

Double Cheeseburger, Medium Fries
Limonadenstand
Coffee shop
Pinguin-Cafeteria
power failure
Red Planet Agriculture
touch his eyes

🇧🇷 } Else { InscriptionPromoTop = ''; InscriptionContainerTop = '

' + InscriptionPromoTop + '

'; } if (typeof signupPromoBottom !== 'indefinido' && signupPromoBottom !== '') { signupContainerBottom = '

' + InscriptionPromoBottom + '

(Video) Papa's Pizzeria!!!!|Cool Math Games

'; } sonst { signupPromoBottom = ''; signupContainerBottom = '

' + InscriptionPromoBottom + '

🇧🇷 } function preroll_signup_top_handler() { trackEvent('Preroll Signup Clicked', 'Preroll Signup Top', document.title); } function preroll_signup_bottom_handler() { trackEvent('Preroll Signup Clicked', 'Preroll Signup Bottom Button', document.title);}

'); } } function checkPlayedGames() { // is for testing supportCMG A/B gamesPlayed = navigator.cookieEnabled ? parseInt(localStorage.getItem('gamesPlayed') || 0): 0; sessionGamesPlayed = navigator.cookieEnabled ? parseInt(sessionStorage.getItem('sessionGamesPlayed') || 0): 0; //localStorage.setItem('gamesPlayed', ++ gamesPlayed) if(navigator.cookieEnabled) { localStorage.setItem('gamesPlayed', 0); sessionStorage.setItem('sessionGamesPlayed', ++ sessionGamesPlayed); } checkPremiumAvatarURL(); } /** ** To promote the CMG Padrão with the list of Games and will be Exhibited */ function checkCMGDefaultExceptionURL() { supportCMG = false; if(!cmgDefaultGameUrl.test(location.pathname) && (type of gamesPlayed != "undefined" && (gamesPlayed == 2 || gamesPlayed == 8))) { supportCMG = true; schooltime = incorrect; // Run timing if (getCookie('cmg_fx') !== null && getCookie('cmg_sx') == null) { var planToSubscription = 'd61242ac'; } else { var planToSubscription = '0735a1f2'; } // free registration jQuery(document).ready(function () { jQuery(.pane-bean-new-go-ad-free").html('Go to the big screen!🇧🇷 jQuery('.cmgdefault-promotion-right-side').show(); 🇧🇷 var gamePageBarPromo = 'GO PREMIUM: DAS BESTE SPIELERLEBNIS'; gamePageBarPromoActionText = 'Premium erhalten'; var pathpromobarsubscriptionform = '/subscribe/' + planToSubscription; jQuery('.gamepage-signup-promo').hide(); jQuery('#block-cmatgame-cmatgame-system-main').append('

' + gamePageBarPromo + '

' + gamePageBarPromoActionText + '

🇧🇷 } } checkGamesPlayed(); // you must comment out this call to the function settimebased(); To prevent it from running on page load, it must // be started on game load. // set based on time(); checkCMGDefaultExceptionURL(); if (isUserValidFreeUserOrSubscriber()) { var userprofileData = JSON.parse(localStorage.getItem("userprofile")); var levelofcompletedgame = 1; for (var i = 0; i < userprofileData.mygameslist.length; i++) { if (userprofileData.mygameslist[i].id == gameId) { var levelbasedCompletedStatus = userprofileData.mygameslist[i].timebasedcompletedSt; var levelofcompletedgame = userprofileData.mygameslist[i].level; } } } var varworkerstate = "no"; var count = 0; var myArea; // Active function chkIdleOnpage() { var userActivityTime = Date.now(); // check if there is no user activity for more than 55 min 60000*55 = 3300000 if (userActivityTime - lastKeyBoardorMouseActivityTime > 3300000) { if (typeof(w) != "undefined") { workertatusvar = "terminated"; w. terminate(); w = undefined; } } else { // keyboard can be active start new worker settimebased(); } } // Idle if (!is_level_based) { // Check idle time every 5 min 60000 * 5 = 300000 emptyOnPageCheckTimer = setInterval(function () { chkIdleOnpage() }, 300000); } function settimebased() { if (!is_level_based) { jQuery(document).ready(function () { if (isUserValidFreeUserOrSubscriber()) { window.addEventListener("beforeunload", function (e) { saveUserProgress(); }); if (type(Worker) !== "undefined") { if (type(w) == "undefined") { w = new Worker("/modules/custom/cmatgame_userprofile/js/userprogress_workers.js"); w. onmessage = function(event) { var userActivityTime = Date.now(); // save the user profile object to local storage // if(userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { userprofile = event.data; localStorage.setItem ("userprofile " ", JSON.stringify(userprofile)); // Display the game progress bar on game pages if (typeof gameId != "undefined") { display_game_progressbar(gameId); } // Display the bar user progress display_user_profile_progressbar(); //Save add user progress back to API -Server saveUserProgress(); // } }; var user profile io = localStorage.getItem("user profile 🇧🇷 setTimeout(function () { var user profile = localStorage .getItem("user profile"); var currentGameData = searchGamesById(gameId); if(typeof drupalSettings.cmatgame != "undefined" && typeof drupalSettings.cmatgame.swfembed != "undefined " && drupalSettings.cmatgame.swfembed != "" && typeof drupalSettings.cmatgame.flash_emulation != "undefined" && drupalSettings.cmatgame. flash_emulation == 0 ) { //do nothing here } else if (type of w != 'undefined') { w.postMessage([ gameId, xp_per_level, userprofile, currentGameData, cmatgameSearchGames, userprofile_level_xpData ]); } }, 60000); // setInterval(function () { updateMyGamesTimeSpent1(gameId) }, 60000); 🇧🇷 } } // stop the timer function stopTimer() { count = 0; if (workersstatusvar == "finished") { settimebased(); varworkerstate = "started"; } window.clearInterval(myInterval); } Function checkKeyboardOrMouseActivity() { lastKeyBoardorMouseActivityTime = Date.now(); if (!is_level_based) { if (typeof isRemoveAdSwfJWPLayer === "undefined" || !isRemoveAdSwfJWPLayer) { // html 5 game } else { stopTimer(); } } } function startTimer() { // for flash based games check idle time every 5 min 60000 * 5 = 300000 myInterval = window.setInterval(timerHandler, 30000); } function timerHandler() { count++; // Flash based game count lasts 55 rounds if (count == 55) { workertatusvar = "terminated"; if (type of w !== 'undefined') { w.terminate(); w = undefined; } } } document.addEventListener("movemouse", checkKeyboardOrMouseActivity, false); document.addEventListener('keydown', checkKeyboardOrMouseActivity, false); document.addEventListener("press key", checkKeyboardOrMouseActivity, false); document.addEventListener("touchmove", checkKeyboardOrMouseActivity, false); if(!is_level_based) { if (typeof isRemoveAdSwfJWPLayer === "undefined" || !isRemoveAdSwfJWPLayer) { // set html 5 document.addEventListener("visibilitychange", function() { if(document.visibilityState == 'hidden') { //startTimer(); if(typeof IdleOnPageCheckTimer !== 'undefined') { clearInterval(idleOnPageCheckTimer); } /*** should be removed under the variable // Workerstatusvar = "terminated"; if (typeof w != = ' undefined') { w.terminate(); w = undefined; Workerstatusvar = "terminated"; } } else if (document.visibilityState == 'visible') { stopTimer(); // Start worker. } }, false ); } else { // Flash game window.addEventListener('focus', stopTimer); window.addEventListener('blur', startTimer); // check for browser minimization document.addEventListener("visibilitychange", function () { if (document.visibilityState == 'hidden') { startTimer(); } else if (document.visibilityState == 'visible') { stopTimer () ; } }, IT'S NOT CORRECT); timerStart(); } } // exit the function! is_level_based putSharedObjectsInDB(syncData) { flashStorage = syncData; saveUserProgress(); } isRemoveAdSwfJWPLayer = false; prerollAdDisplayed = false; //Use this when you switch from mobile to desktop view and the pre-roll ad hasn't played before prerollAdStart = ""; prerollAdEnd = ""; // test overlay to watch game unlock ads // var watchAdtoUnlockGame = true; // var school hours = false; // //console.log('supportCMG is true'); window.addEventListener("Message", ReceiveMessage, false); Function ReceiveMessage(Event) { // console.log("Message received2 from " + event.origin + " : " + event.data); var valid_domain_msg = false; if (/coolmathgames\.com|coolmathgames\.local|coolmathgames/.test(event.origin)) { valid_domain_msg = true; } if(valid_domain_msg && event.data == "cmgGameEventStatic") {ga4_trackEvent("cmgGameEventStatic", ); } else if (event.data == "Continue- without-big-screen" && jQuery('#big-screen-overlay').length && valid_domain_msg) { // Close overlay if (jQuery('#big-screen - overlay').length) { jQuery('#large-screen-overlay').hide(); if (jQuery('#big-screen-overlay-truex').length) { jQuery('#big-screen-overlay-truex').hide(); } cmg_bigscreen_trackevent('close record', cmg_bsft); } } else if (event.data =="continue-with-login-big-screen" && jQuery('#big-screen-overlay').length && valid_domain_msg) { // console.log("BIGSCREEN message received2 from " + event.source + " : " + event.data); cmg_bigscreen_trackevent('closesignup2login', cmg_bsft); jQuery('#large-screen-overlay').hide(); if (jQuery('#big-screen-overlay-truex').length) { jQuery('#big-screen-overlay-truex').hide(); } if(drupalSettings.language !== "en"){ window.location = `/${drupalSettings.language}/login?destination=${window.location.pathname}`; } else { window.location = "/login?destination=" + window.location.pathname; } } else if (event.data =="continue-premium-big-screen" && (jQuery('#big-screen-overlay').length || jQuery('#pr-profile-screen-overlay'). length) && valid_domain_msg) { // console.log("BIGSCREEN message received2 from " + event.origin + " : " + event.data); cmg_bigscreen_trackevent('Game after registration', cmg_bsft); jQuery('#large-screen-overlay').hide(); jQuery('#pr-profile-screen-overlay').hide(); if (jQuery('#big-screen-overlay-truex').length) { jQuery('#big-screen-overlay-truex').hide(); } window.location.reload(); } else if (event.data =="customize-large-screen-profile" && (jQuery('#large-screen-overlay').length || jQuery('#pr-large-screen-overlay-profile -screen').length ) && valid_domain_msg) { // console.log("BIGSCREEN message received2 from " + event.origin + ": " + event.data); cmg_bigscreen_trackevent('custom profile after registration', cmg_bsft); jQuery('#large-screen-overlay').hide(); jQuery('#pr-profile-screen-overlay').hide(); if (jQuery('#big-screen-overlay-truex').length) { jQuery('#big-screen-overlay-truex').hide(); } if (getCookie('cmg_fx') !== null) { window.location = '/profile/' + getCookie('cmg_fx').toLowerCase() + '/edit'; } } else if (event.data =="big-screen-premium-benefits" && jQuery('#big-screen-overlay').length && valid_domain_msg) { // console.log("BIGSCREEN message received2 from " + event.source + ": " + event.data); cmg_bigscreen_trackevent('Show premium benefits after login', cmg_bsft); jQuery('#large-screen-overlay').hide(); if (jQuery('#big-screen-overlay-truex').length) { jQuery('#big-screen-overlay-truex').hide(); } if (getCookie('cmg_fx') !== null) { window.location = '/premium-benefits'; } } Else if (event.data =="keypress-from-game") { checkKeyboardOrMouseActivity(); } else if (event.source === "https://copterroyale.coolmathgames.com" || event.source === "https://copterroyale2.coolmathgames.com" || event.source === "https ://powerline.coolmathgames.com") { var eventObject = JSON.parse(event.data); if (eventObject.eventType == "gameEvent") { cmgGameEvent (eventObject.key, eventObject.value); } else if (eventObject.eventType == "dataEvent") { cmgDataEvent (eventObject.key, eventObject.value); } } else if (event.origin == 'https://rps-frontend.coolmathgames.com') { var eventObject = JSON.parse(event.data); if (eventObject.eventType == "gameEvent") { cmgGameEvent("Rockpaperscissors "+eventObject.key, eventObject.value); } Else if (eventObject.eventType == "dataEvent") {cmgDataEvent("Rockpaperscissors "+eventObject.key, eventObject.value); } } else if (event.origin == 'https://hangman-backend.coolmathgames.com' || event.origin == 'https://hangman-frontend.coolmathgames.com' || event.origin == 'https://hangmanqa-frontend.coolmathgames.com' || event.origin == 'https://hangmanqa.coolmathgames.com') { var eventObject = JSON.parse(event.data); if (eventObject.eventType == "gameEvent") {cmgGameEvent("Hangman"+eventObject.key, eventObject.value); } Else if (eventObject.eventType == "dataEvent") {cmgDataEvent("Executioner"+eventObject.key, eventObject.value); } } else if (event.origin == 'https://wordrace-4inrow-stage.coolmathgames.com' || event.origin == 'https://wordrace-4inrow.coolmathgames.com' ) { var eventObject = JSON.parse(event.data); var eventGame = "word race"; if(/0-four-in-a-row/.test(location.pathname)) { eventGame = "fourinarow"; } if (eventObject.eventType == "gameEvent") {cmgGameEvent(eventGame+" "+eventObject.key, eventObject.value); } Else if (eventObject.eventType == "dataEvent") {cmgDataEvent(eventGame+" "+eventObject.key, eventObject.value); } } Else if (event.origin == 'https://hexanaut.coolmathgames.com') { var eventObject = JSON.parse(event.data); var eventGame = "hexanaut"; if (eventObject.eventType == "gameEvent") {cmgGameEvent(eventGame+" "+eventObject.key, eventObject.value); } Else if (eventObject.eventType == "dataEvent") {cmgDataEvent(eventGame+" "+eventObject.key, eventObject.value); } } else if (event.origin == 'https://cheerpx.coolmathgames.com' || event.origin == 'https://cheerpx-prod.coolmathgames.com') { console.log("cmg cheerpx : cmgHandleMessage "+event.data); //close the loading screen closeCmgCheerpxLoadingScreen(); // Removes the loading of the narrow screen closeCmgCheerpxLoadingScreenResized(); } else if (event.origin == 'https://www.coolmath-games.com' || event.origin != 'https://d8-dev.coolmathgames.com') { if (event.data. eventType == "syncEventPut") { syncData = event.data.syncJSON; putSharedObjectsInDB(syncData); } if (event.data.eventType == "syncEventGet") { if (typeof flashStorageFromDB != "undefined") { // restore shared flash database objects to (var i = 0; i < flashStorageFromDB.length; i++ ) { flashStorageFromDB[i].swfdata = decodeURI(flashStorageFromDB[i].swfdata); } document.getElementById('swfgame').contentWindow.postMessage({ 'eventType': 'syncEventGet', 'soData': flashStorageFromDB }, '*'); } else { document.getElementById('swfgame').contentWindow.postMessage({ 'eventType': 'gamePlay' }, '*'); } } } else { return; } } // var signupPromoTop = 'Sign up to play without ads'; var signupPromoBottom = 'Sign up to skip all ads'; if (typeof signupPromoTop !== 'undefined' && signupPromoTop !== '') { signupContainerTop = '

' + InscriptionPromoTop + '

🇧🇷 } Else { InscriptionPromoTop = ''; InscriptionContainerTop = '

' + InscriptionPromoTop + '

'; } if (typeof signupPromoBottom !== 'indefinido' && signupPromoBottom !== '') { signupContainerBottom = '

' + InscriptionPromoBottom + '

'; } sonst { signupPromoBottom = ''; signupContainerBottom = '

' + InscriptionPromoBottom + '

'; } function preroll_signup_top_handler() { trackEvent('Inscrição pre-roll clicada', 'Top de inscrição pre-roll', document.title); } function preroll_signup_bottom_handler() { trackEvent('Inscrição pre-roll clicada', 'Final de inscrição pre-roll clicada', document.title); } // definiremos esta variable signUpURLABTest en experiment.js var cmg_upg_days_limit = 180; var user_dst = ventana.ubicación.ruta; usuario_dst = usuario_dst.replace("\/", ""); if (ventana.ubicación.host !== 'cmatgame.local') { if (typeof signUpURL === 'indefinido' || signUpURL === '') { signUpURL = '/premium-access/ b2df5a33?origin=' + usuario_dst; } sonst { signUpURL = signUpURL + '?origin=' + user_dst; } } else if (typeof signUpURLABTest === "indefinido" || signUpURLABTest === null) { signUpURL = 'https://' + window.location.hostname + '/premium-access/ b2df5a33?origin=' + user_dst ; } sonst { signUpURL = signUpURLABTest; } function subscribe_promo_handler() { if (typeof freeTrialUser !== 'undefined' && freeTrialUser) { trackEvent('Assinatura Premium ' + SubscriberLeg, 'Sobreposición de assinatura clicada', userPlayedGames); trackGoalVirtualPV('/virtual/subscription-overlay-click'); } Retorno; } function subscribeUrlRegistro() { var user_played_games = ''; var zeroFreeGamesLeftUsers = localStorage.getItem("zeroFreeGamesLeftUsers"); if (typeof userPlayedGames !== 'indefinido' && userPlayedGames) { user_played_games = "upg=" + userPlayedGames; } else { user_played_games = "upg=0"; } if (zeroFreeGamesLeftUsers !== null && user_played_games !== '') { user_played_games = user_played_games + '&zfg=' + zeroFreeGamesLeftUsers; } else if (zeroFreeGamesLeftUsers !== null) { user_played_games = 'zfg=' + zeroFreeGamesLeftUsers; } if (typeof signUpURL !== 'indefinido' && signUpURL !== null && signUpURL.indexOf('upg') === -1) { if (signUpURL.indexOf('?random_true') > -1) { signUpURL = signUpURL.replace('?random_true', ''); } if (signUpURL.indexOf('?') > -1) { signUpURL = signUpURL + '&' + user_played_games; } sonst { URLRegistrarse = URLRegistrarse + '?' + usuario_juegos_jugados; } } } función updateMyGamesTimeSpent(gameId) { var userActivityTime = Date.now(); // if(userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { //oder es wird auf einer Seite vor 60 Sekunden verwendet, um XP hinzuzufügen if (currentTimeInterval >= 2) { currentTimeInterval = 0; if (isUserValidFreeUserOrSubscriber()) { // dice MyGames-Apps para Assinantes saveMyGames(gameId, 0, 1); aktuelleZeit = userActivityTime; } } sonst {aktuellesZeitintervall = aktuellesZeitintervall + 1; guardarProgresoUsuario(); // erhalte den Fortschritt bis zu 20 Sekunden } // } } function updateMyGamesTimeSpent1(gameId) { if (isUserValidFreeUserOrSubscriber()) { // erhalte MyGames für Helfer if (userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { saveMyGames(gameId, 0, 1 ); } } } function updateMyGamesTimeSpentLevelBase(gameId, level) { if (isUserValidFreeUserOrSubscriber()) {// salva MyGames solo para assinantes saveMyGames(gameId, 1, level); } } /* if(!is_level_based) { var objGameNode = {}; objGameNode[gameId] = "sim"; localStorage.setItem("ejecutado una vez", JSON.stringify(objGameNode)); setInterval(function () { updateMyGamesTimeSpent1(gameId) }, 60000); } */ if (basado_en_nivel) { var userActivityTime = Date.now(); // para jogo baseado em nível. Verifique que la actividad del usuario no esté por más de 55 min 60000*55 = 3300000 if (userActivityTime - lastKeyBoardorMouseActivityTime <= 3300000) { var objGameNode = {}; objGameNode[gameId] = "não"; var localgamestrate = "storagelocal-" + gameId + "-storagelocal"; localStorage.setItem("ejecutado una vez", JSON.stringify(objGameNode)); localStorage.setItem(localgamestrate, "não"); updateMyGamesTimeSpentLevelBase(gameId, levelofcompletedgame) } } function cmgGetCheerpxUrl() { var cheerpxUrl = 'https://cheerpx-prod.coolmathgames.com/cheerpx.html?f='; if(ubicación.host!= "www.coolmathgames.com" && !/(Firefox)/.test(navigator.userAgent)) { cheerpxUrl = 'https://cheerpx.coolmathgames.com/cheerpx.html?f=' ; } cheerpxUrl zurückgeben; } function displayCmgCheerpxLoadingScreen() { //todo -- verwenden Sie eine Largura y andere iframe //jQuery("#swfgame").parent().before("

Charging...

") jQuery("#swfgame").parent().before('

Your Flash game is loading
may take longer than usual

🇧🇷 } // Restrict the loading screen function to the screen displayCmgCheerpxLoadingScreenResized(){ jQuery("#swfgame").parent().before('

Your Flash game is loading
may take longer than usual

'); } function closeCmgCheerpxLoadingScreen() {jQuery("#cmg-cheerpxloading-screen").remove(); } // Entferne eine Funktion des Carregamento von Tela Estreita closeCmgCheerpxLoadingScreenResized(){ if($("#cmg-cheerpxloading-screen-resized").length > 0){ jQuery("#cmg-cheerpxloading-screen-resized" ). Loschen( ); } } /* * Entfernen entfernen Preroll und Anzeigespiel. Antigo-Funktionsname: removePrerollAndDisplayGame(). */ function cmg_remove_padg() { //Iniciar la página de inicio de la última partida jugada - cmg_lpg var nonEmulatedFlashGame = false; if(typeof drupalSettings.cmatgame != "indefinido" && typeof drupalSettings.cmatgame.swfembed != "indefinido" && drupalSettings.cmatgame.swfembed != "" && typeof drupalSettings.cmatgame.flash_emulation != "indefinido" && drupalSettings.cmatgame. flash_emulation == 0 && typeof drupalSettings.cmatgame.swfembed.swf != "undefiniert" && drupalSettings.cmatgame.swfembed.swf != "") { nonEmulatedFlashGame = true; } if(gameId && !nonEmulatedFlashGame) { localStorage.setItem("cmg_lpg", gameId); } settimebased(); prerollAdDisplayed = true;//Isso deve ser invocado depois que o anúncio prentente é feito; if(document.documentElement.clientWidth >= 960 - ( window.innerWidth-jQuery(document).width()) || ( window.innerWidth > 960 && typeof detectZoom == 'Objekt' && typeof detectZoom.zoom == 'Función ' && detectZoom.zoom() >=2) ) { prerollAdEnd = "dtp"; } Else {prerollAdEnd = "mafia"; } if (isRemoveAdSwfJWPLayer) { // Entfernen Sie ein Pre-Rolagem Apenas una vez } else { // Registrieren Sie ein Hora atual para calcular quanto tempo o verwenden Sie Gastou jogando o jogo atual currentTime = Date.now(); aktuellesZeitintervall = 0; // ist tan wichtig für Spiele im Tempo // TODO salvar o progresar hacer jogo /*if(!is_level_based) { setInterval(function () { updateMyGamesTimeSpent(gameId) }, 20000); } */ jQuery("#meu-conteúdo").css("opacidad", "1"); if (typeof intervalId != "indefinido") {clearInterval(intervalId); } jQuery("#afg_container").remove(); jQuery("#afg_preloader").remove(); jQuery("#Continue-Container").remove(); if (!drupalSettings.cmatgame.swfembed) { // jogo html5 Spiele spielen, andere Spiele spielen und Spieletipps game_width = jQuery("#html5game").attr("width"); juego_altura = jQuery("#html5game").attr("altura"); tipo_jogo = "html5"; // Detección de IE y captura de versión ie = false; var html5_game_url = jQuery("#html5game").attr("src"); var swf_game_url = jQuery("#swfgame").attr("src"); if( (/hangman/.test(html5_game_url) || /85380/.test(gameId) ) && typeof getParameterByName != "indefinido") { var qLobby = getParameterByName("private-lobby"); var qReproducir = getParameterByName("reproducir"); var qXid = getParameterByName("xid"); if(typeof qLobby != "indefinido" && typeof qXid != "indefinido" && qLobby !== "" && qXid !== "" && html5_game_url.indexOf("hangman") && html5_game_url.indexOf("/home") ) { html5_game_url = html5_game_url.replace("/home", "/private-lobby/" +qLobby + "/" +qXid); } else if(typeof qPlay != "indefinido" && typeof qXid != "indefinido" && qPlay !== "" && qXid !== "" && html5_game_url.indexOf("hangman") && html5_game_url.indexOf("/home ")) { html5_game_url = html5_game_url.replace("/home", "/play/" + qPlay + "/" +qXid); } } Else if( /bloobio|bloob\.io/.test(html5_game_url) && typeof getParameterByName != "indefinido") { var qLobby = getParameterByName("private-lobby"); if(typeof qLobby != "indefinido" && qLobby !== "") { html5_game_url = html5_game_url + '/'+qLobby; } if(typeof drupalSettings.language != "undefined" && drupalSettings.language != "en") { if(!/locale=/.test(html5_game_url)) { html5_game_url = html5_game_url + "?locale="+drupalSettings.language ; } var isMobile = cmg_is_mobile_device(); if(isMobile && !/mobile=/.test(html5_game_url)) { html5_game_url = html5_game_url + "&mobile=true"; } } } if (typeof swf_game_url !== 'indefinido') { if (!cmg_flash_emulated_game()) { // console.log('flash no está definido'); FlashDetectionMessage(); } } if (typeof swf_game_url !== 'indefinido' && swf_game_url.indexOf("//") === 0) { swf_game_url = ventana.ubicación.protocolo + swf_game_url; } else if (typeof swf_game_url !== 'indefinido' && swf_game_url.indexOf("//") > 0) { swf_game_url = swf_game_url.replace("http:", window.location.protocol); } if (typeof html5_game_url !== 'indefinido' && html5_game_url.indexOf("//") === 0) { html5_game_url = ventana.ubicación.protocolo + html5_game_url; } else if (typeof html5_game_url !== 'indefinido' && html5_game_url.indexOf("//") > 0) { html5_game_url = html5_game_url.replace("http:", window.location.protocol); } if (navigator.appName == "Microsoft Internet Explorer") {dh = wahr; var ua = navegador.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"); if (re.exec(ua) != null) { ieVersion = parseInt(RegExp.$1) } } if (dh && ieVersion < 9) { nothtml5browser = '

Hey, you're using an old web browser that can't play HTML5 games like this.

Switch to another browser or just enjoy another fun math game!' +'div>

•Get a new Internet Explorer browser from Microsoft

'; jQuery("#html5game").replaceWith(nothtml5browser); jQuery("#swfgame").replaceWith(nothtml5browser); } Else {Caja de arena = jQuery("#html5game").attr("Caja de arena"); if (sandbox !== indefinido) { sandbox = ' sandbox=\"' + sandbox + '\"'; } Más {Caja de arena = ''; } if (cmg_is_mobile_device() || (document.documentElement.clientWidth < 960 - (window.innerWidth-jQuery(document).width()) && (typeof detectZoom == 'objeto' && typeof detectZoom.zoom == 'función' && detectarZoom.zoom() < 2) ) ) { nuevoiframe = '

(Video) Papas Pizzeria - Cool Math Games Ep. 1

'; newswfiframe = '

'; } else { newiframe = '

'; newswfiframe = '

'; } if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { jQuery("#html5game").replaceWith(newiframe); if (cmg_flash_emulated_game() || drupalSettings.cmatgame.flash_emulation === "1") { jQuery("#swfgame").replaceWith(newswfiframe); } Else if(cmg_flash_emulated_game() && drupalSettings.cmatgame.flash_emulation === "2"){ //console.log("Cheerpx load 1"); juego_ancho = drupalSettings.cmatgame.swfembed.swf.swf_1.width; juego_altura = drupalSettings.cmatgame.swfembed.swf.swf_1.altura; tipo_jogo = "html5"; var swfURLObject = drupalSettings.cmatgame.swfembed.swf.u; var swfURLArray = swfURLObject.split("/"); //swf_1_game_url = "/sitios/predeterminado/archivos/juegos/" + swfURLArray[swfURLArray.length-1]; swf_1_game_movie_param = swfURLArray[swfURLArray.longitud-1]; //cheerpx js var swf_game_url = cmgGetCheerpxUrl()+swfURLArray[swfURLArray.length-1]+'&w='+game_width+'&h='+game_height; //permitir="aislado de origen cruzado" --> Originaltest verwenden: crossorigin="usar-credenciales" newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); //console.log("Cheerpx ersetzt iframe 3"); } } } } else { if (!cmg_flash_emulated_game() && (drupalSettings.cmatgame.flash_emulation !== "1" || drupalSettings.cmatgame.flash_emulation !== "2" )) { // console.log('flash is Indefinido'); /* CLSS-1614 para copia de seguridad de html5 - INICIO */ var html5_game_url = jQuery("#html5game").attr("src"); if (typeof html5_game_url !== 'indefinido') { game_width = jQuery("#html5game").attr("width"); juego_altura = jQuery("#html5game").attr("altura"); tipo_jogo = "html5"; // Detección de IE y captura de versión ie = false; if (typeof html5_game_url !== 'indefinido' && html5_game_url.indexOf("//") === 0) { html5_game_url = ventana.ubicación.protocolo + html5_game_url; } else if (typeof html5_game_url !== 'indefinido' && html5_game_url.indexOf("//") > 0) { html5_game_url = html5_game_url.replace("http:", window.location.protocol); } if (navigator.appName == "Microsoft Internet Explorer") {dh = wahr; var ua = navegador.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"); if (re.exec(ua) != null) { ieVersion = parseInt(RegExp.$1) } } if (dh && ieVersion < 9) { nothtml5browser = '

Hey, you're using an old web browser that can't play HTML5 games like this.

Switch to another browser or just enjoy another fun math game!' +'div>

•Get a new Internet Explorer browser from Microsoft

'; jQuery("#html5game").replaceWith(nothtml5browser); } else {Sandbox = jQuery("#html5game").attr("Sandbox"); if (sandbox !== undefined) { sandbox = ' sandbox=\"' + sandbox + '\"'; } plus { sandbox = ''; } new iframe = '

🇧🇷 if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { jQuery("#html5game").replaceWith(newiframe); } } } else { /* CLSS-1614 to load HTML5 as backup - FIN */ flashDetectionMessage(); } } else { // Flash game game width, game height and game type game_width = drupalSettings.cmatgame.swfembed.swf.swf_1.width; juego_altura = drupalSettings.cmatgame.swfembed.swf.swf_1.altura; if(drupalSettings.cmatgame.flash_emulation === "1"){ //ruffle game_type = "html5"; var swfURLObject = drupalSettings.cmatgame.swfembed.swf.u; var swfURLArray = swfURLObject.split("/"); var swf_game_url = 'https://www.coolmath-games.com/sites/cmatgame/files/ruffle1/ruffle.html?f='+swfURLArray[swfURLArray.length-1]+'&w='+game_width+'&h= '+game_height; notificationswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); } Else if(drupalSettings.cmatgame.flash_emulation === "2"){ //cheerpx game_type = "html5"; if (navigator.appName == "Microsoft Internet Explorer") {ie = true; var ua = navegador.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"); if (re.exec(ua) != null) { ieVersion = parseInt(RegExp.$1) } } if (ie && ieVersion <= 11) { notCheerpxBrowser = '

no, that is

'; //console.log("Cheerpx prevents loading completely in IE"); jQuery("#html5game").replaceWith(notCheerpxBrowser); } //console.log("Cheerpx loaded 2"); game_width = drupalSettings.cmatgame.swfembed.swf.swf_1.width; game_height = drupalSettings.cmatgame.swfembed.swf.swf_1.height; var swfURLObject = drupalSettings.cmatgame.swfembed.swf.u; var swfURLArray = swfURLObject.split("/"); //swf_1_game_url = "/sites/default/files/games/" + swfURLArray[swfURLArray.length-1]; swf_1_game_movie_param = swfURLArray[swfURLArray.length-1]; //cheerpx js var swf_game_url = cmgGetCheerpxUrl()+swfURLArray[swfURLArray.length-1]+'&w='+game_width+'&h='+game_height; //allow="isolate cross-origin" --> Originaltest verwenden: crossorigin="use-credentials" newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); console.log("Cheerpx ersetzt iframe und tela de carregamento"); mostrarCmgCheerpxLoadingScreen(); } sonst { tipo_juego = "flash"; if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { var swf_game_url = jQuery("#swfgame").attr("src"); if (typeof swf_game_url !== 'indefinido' && swf_game_url.indexOf("//") === 0) { swf_game_url = ventana.ubicación.protocolo + swf_game_url; } else if (typeof swf_game_url !== 'indefinido' && swf_game_url.indexOf("//") > 0) { swf_game_url = swf_game_url.replace("http:", window.location.protocol); } noticiaswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); var gameInstructions = document.getElementById('game-instructions'); // inserir fix flash div antes do campo de instruções do jogo if (typeof gameInstructions !== 'undefined' && gameInstructions !== null && typeof gameInstructions.innerHTML !== 'undefined' && gameInstructions.innerHTML !== null) { instrucciones del juego.innerHTML = '

If this flash game doesn't work on your computer, please letherefor help

' + instrucciones del juego.innerHTML; } } } isRemoveAdSwfJWPLayer = verdadeiro; } } } jQuery('.game-xp-bar-immerse-button').addClass('enabled'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block'); //Js diferido es un anzeige für Bigscreen deferredbigscreenbtn = setTimeout(function () { if(jQuery('.btn.btn-primary.btn-sm.requestfullscreen').length && !jQuery('.btn.btn-primary. btn-sm.requestfullscreen').is(":visible")) { jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block'); } } , 2000); if(typeof display_game_progressbar === "función"){ display_game_progressbar(gameId); } } function cmatgame_premium_subscription_game_display() { var cmatgame_subscriber = getCookie('cmg_sx'); var suscriptor valido = falsch; if (typeof cmatgame_subscriber !== 'indefinido' && cmatgame_subscriber !== null) { validSubscriber = true; } if(getCookie("cmg_wl") !== null) { validSubscriber = true; } var cmatgame_free_user = getCookie('cmg_fx'); var validFreeUser = falsch; if (typeof cmatgame_free_user !== 'indefinido' && cmatgame_free_user !== null) { validFreeUser = true; } if (typeof SubscribeNowAlienClass === 'indefinido' || SubscribeNowAlienClass === null || SubscribeNowAlienClass === '') { // if (drupalSettings.cmatgame.isSubscriptionActive == false) { // SubscribeNowAlienClass = "increver-agora -alien-abonnieren"; // } else { // SubscribeNowAlienClass = "subscribe-now-alien-signup"; // } } FreeGamesExceeded = true; // Exibir anúncios para usuários anônimos no horário das 7h bis 13h, exibir anúncios para usuários anônimos das 13h bis 23h59 und 00h bis 7h apenas se o usuário não for da cidade de Nova York // TODO --> Necessário adicionar dia de a semana para una lógica do horário escolar, dia < 6 não exibe anúncios quando o cookie GDPR ist definido e o cookie GDPR_All não ist definido // Remover anúncios prencios para usuários from lista branca if (validSubscriber || getCookie("cmg_wl") !== null) { // Wiederherstellen o Fortschreiten des Benutzers retrieveUserProgress(); cmg_remove_padg(); jQuery(documento).ready(función () { $('.game-xp-bar-immerse-button').addClass('habilitado'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen' ).css('display', 'inline-block'); display_game_progressbar(gameId); immersive_mode_display_controller(); }); } else if (getCookie('cmg_schwl') !== null || typeof cmg_no_ads !== 'undefined' || (! validSubscriber && schoolHours || (!schoolHours && !targetStateUser) || (!schoolHours && targetStateUser && getCookie( 'cmg_active_anonymous_user') !== null))) { // TODO Spiel anzeigen cmg_remove_padg(); jQuery(documento).ready(función () { $('.game-xp-bar-immerse-button').addClass('habilitado'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen' ).css('display', 'inline-block'); display_game_progressbar(gameId); }); if (!/0-chess/.test(window.location.pathname)) { // setCookie('cmg_active_anonymous_user', 'active', 30*60*1000); } } else if (! validSubscriber && !schoolHours && targetStateUser && getCookie('cmg_active_anonymous_user') === null && getCookie('cmg_editor') === null) { // wir verwenden vier Google, nicht mehr als Paywall da Assinatura var ref = documento.referente; // conta o número de jogos jogados pelo usuário neste mes userPlayedGames = 0; var userFreeGameList = []; var freeGameNid = 2421; if (sessionStorage.getItem("userFreeGameList") !== null && navigator.cookieEnabled) { userFreeGameList = JSON.parse(sessionStorage.getItem("userFreeGameList")); } if ((localStorage.getItem("userPlayedGames") == null || getCookie('cmg_upg') === null) && freeGameLimit !== 0 && navigator.cookieEnabled) { userPlayedGames = 1; localStorage.setItem("UsuarioJuegosJugados", usuarioJuegosJugados); // TODO-Cookie Mensal setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24 * 60 * 60 * 1000); userFreeGameList = [freeGameNid]; sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList)); // TODO Spiel anzeigen cmg_remove_padg(); jQuery(documento).ready(función () { display_game_progressbar(gameId); }); } else { // userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"+currentMonth+currentYear)); Limite mensal if (localStorage.getItem("userPlayedGames") !== null && getCookie('cmg_upg') !== null) { userPlayedGames = parseInt(localStorage.getItem("userPlayedGames")); } sonst { juegos jugados por el usuario = 0; setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24 * 60 * 60 * 1000); } if (freeGameLimit != 0 && userPlayedGames < freeGameLimit && userFreeGameList.indexOf(freeGameNid) === -1) { userPlayedGames ++; freeGamesExceeded = falsch; if (userFreeGameList.length > 0) { userFreeGameList = userFreeGameList.concat (freeGameNid); } Else { userFreeGameList = [freeGameNid]; } localStorage.setItem("UsuarioJuegosJugados", usuarioJuegosJugados); sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList)); } sonst { FreeGamesExceeded = true; } // console.log("Número de juegos que o usuário jogou "+ userPlayedGames ); var referente valido = falsch; var validGameSession = falsch; if (userFreeGameList.indexOf(freeGameNid) > -1) { validGameSession = true; } if (ref.match("google.com") !== null || ref.match("yahoo.com") !== null || ref.match("bing.com") !== null) { referencia válida = wahr; } assinaturaSignUpUrl(); if (! validReferer && userPlayedGames >= freeGameLimit && ! validGameSession) { // assinatura paywall // bloquea los usuarios anónimos para una ciudad de Nova York de 0 a 7 h y de 13 a 23 h 59 console.log("Límite de juegos gratis excedido y referenciador não é o Google"); clearInterval(intervaloId); jQuery("#afg_container").remove(); jQuery(".instruções do jogo").remove(); var jáSubscriberText = '

Already a subscriber?connect

'; if (getCookie('cmg_l') != null) { jáSubscriberText = ''; } var row title = '

Login to continue playing

'; if (getCookie('cmg_l') != nulo && getCookie('cmg_sx') != null) { encabezado = '

JOIN NOW TO KEEP PLAYING

'; } jQuery(".field game").html('

' + subtitle + '

The best collection of games in the world.
For logic, reasoning and fun.subscribe now' + yaSubscriberText + '

🇧🇷 jQuery("#videoplayer").remove(); } else { // console.log("User can be from Google or within the free game limit "+ (freeGameLimit-userPlayedGames) ); // show ALL games cmg_remove_padg(); jQuery(document).ready(function () { display_game_progressbar(gameId); }); } } } } function unlockAllLevels() { trackEvent('Unlock All Levels Category', 'Click Unlock All Levels Button', document.title); all levels = '

unlocked levels

'; jQuery("#banner-applicant").replaceWith(all levels); var cmgorigidomain = /coolmath-games/; var cmgtargetdomain = window.location.protocol + 'www.coolmath-games.com'; if (/edit-scenario/.test(window.location.hostname)) { cmgtargetdomain = window.location.protocol + 'edit-scenario.coolmath-games.com'; } else if (/d8-dev/.test(window.location.hostname)) { cmgtargetdomain = window.location.protocol + 'scenario.coolmath-games.com'; } Else if (/cmatgame.local|dev.coolmath.games.com/.test(window.location.hostname)) { cmgtargetdomain = window.location.protocol + 'scenario.coolmath-games.com'; } if (game_type == "html5") { document.getElementById("html5game").contentWindow.unlockAllLevels(); } else { if (cmgorigidomain.test(window.location.hostname)) { document.getElementById("swfObjID").unlockAllLevels(); } else { var receivergameFrame = document.getElementById("swfgame"); gData = new date(); rezeptorgameFrame.contentWindow.postMessage('unlockAllLevels', cmgtargetdomain); // TODO -- Anfangsbuchstaben des Ziels } } } function addSubToUnlockGAEvent() { trackEvent('Unlock category of all levels', 'increase to unlock the clicked button', document.title); trackGoalVirtualPV('/virtual/unlock-button-click'); window.location.href = "https://www.coolmathgames.com/signup/b2df5a33?origin= /0-papas-pizzeria&stual=1" } var immersive_mode_enabled = false; // Regras für die kostenlose Avaliação-Funktion auf dem großen Bildschirm valid_big_screen_ft() { validUserMode = false; cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Protokoll verwenden if (getCookie('cmg_fx') !== null && getCookie('cmg_uid') !== null) { cmg_uid_bsft = getCookie('cmg_bsft_' + getCookie('cmg_uid')); if (cmg_uid_bsft !== null) { cmg_bsft = parseInt(cmg_uid_bsft); } Sonst { cmg_bsft = 0; } } if (cmg_bsft <= 3) { validUserMode = true; } validUserMode zurückgeben; } function immersive_mode_display_controller() { var validUserMode = false; if (getCookie('cmg_sx') !== null || getCookie("cmg_wl") !== null) { // Display an xp bar for premium users $('.game-xp-bar-immerse-button') . addClass('Enabled'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block'); validUserMode = true; } else if (getCookie('cmg_fx') !== null) { // Oder kostenlos testen, ob Freemium gültig ist? if (valid_big_screen_ft()) {validUserMode = true; } Sonst { validUserMode = true; // console.log("User reaching FT limit. Show big cloth button?"); } } else { // Is the anonymous user free test valid? if (valid_big_screen_ft()) {validUserMode = true; } } if (validUserMode && ! Immersive_mode_enabled) { Immersive_mode_enabled = true; immersive_mode_display(); } } var bigScreenTimer = null; activebigfabric = false; function cmg_bigscreen_trackevent(type, trial_num) { if (jQuery('#big-screen-overlay-truex').length) { jQuery('#bigscreen-overlay-truex').hide(); } var tCat = 'Big screen test'; if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'sim') { var tCat = 'BigScreen-TrueX-Promo'; } var tUsr = 'Anonymous User'; if (typeof getCookie === 'function' && (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null)) { tUsr = 'Assinante'; } else if (typeof getCookie === 'function' && getCookie('cmg_fx') !== null) { tUsr = 'Freemium user'; } var tEvt = tUsr + 'test' + test_num + '-' + type; if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'sim') { tEvt = tUsr + ' TrueX Promo' + ' - ' + type; } else { if (num_test > 3) { tEvt = tUsr + 'there are no more attempts ' + ' - ' + type; } } if (type === 'enter' || type === 'exit' || type === 'closesignup' || type == 'closepromo' || type == 'bigscreen-exit') { trackEvent (tCat, tEvt, document.title); } else if (type === 'exit2signup' || type === 'increver-se') { if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'yes') { var sLeg = get_premium_access_leg_desc('849ef809 '); if (typeof getCookie === 'function' && getCookie('cmg_fx') !== null && (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null)) { sLeg = get_premium_access_leg_desc ('e180e28d'); } trackEvent(tCat, tEvt + ' - Leg - ' + sLeg, document.title); } else { var sLeg = get_premium_access_leg_desc('1bb008bd'); if (typeof getCookie === 'function' && getCookie('cmg_fx') !== null && (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null)) { sLeg = get_premium_access_leg_desc ('7859e605'); } trackEvent(tCat, tEvt + ' - Leg - ' + sLeg, document.title); } } else {trackEvent(tCat, type, document.title); } } popover_login_click = false; function cmg_display_login_page() { //console.log("login link clicked on pop-up message"); popover_login_click = true; if (jQuery('#popover' + gameId).length) { jQuery('#popover' + gameId).remove(); eintauchen_hover_on = 0; } window.location = "/login?destination=" + window.location.pathname } function display_cmg_overlay_signupform(variant) { // console.log("BIG SCREEN display_cmg_overlay_signupform: "+new date()); if (jQuery('#popover' + gameId).length) { jQuery('#popover' + gameId).remove(); eintauchen_hover_on = 0; } // trace events of type 'signup' if (typeof cmg_bsft === 'undefined') { cmg_bsft = 0; if (getCookie('cmg_fx') === null) { cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; } else if (getCookie('cmg_uid') !== null && getCookie('cmg_bsft_' + getCookie('cmg_uid')) !== null) { cmg_bsft = getCookie('cmg_bsft_' + getCookie('cmg_uid')); } } cmg_bigscreen_trackevent('Description', cmg_bsft); if ((getCookie('cmg_sx') === null && getCookie('cmg_wl') === null)) { myStopFunction(); } // Verify the A/B test ist verfügbar if (typeof signup_abtest_cmg_bsft !== 'undefined') { //variant = signup_abtest_cmg_bsft; } if (variant of type === 'undefined' || variant === '') { variant = '/16'; // 14b, 15c, 16 } if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes' && jQuery('#large-screen-overlay').length) { jQuery('#large-screen-overlay- big-screen' ).show(); } Else if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'sim') { var big_screen_url = ''; if (getCookie('cmg_fx') === null) { // big_screen_url = '/premium-access/1bb008bd' + Variant + '?ts='+new Date().getTime();//Bigscreen-Bigscreen- Plain // big_screen_url = '/premium-access/849ef809' + variant + '?ts=' + new Date().getTime(); // plain BSWOJ anon if(drupalSettings.language == 'en') { big_screen_url = '/premium-access/6ea95de6' +variant + '?ts='+new Date().getTime();//plain BSWOJ anon } else{ big_screen_url = '/'+drupalSettings.language+'/premium-access/6ea95de6' + variation + '?ts='+new Date().getTime();//BSWOJ flat anonymous } } else { // big_screen_url = '/premium-access/7859e605' + Variant + '?ts='+new Date().getTime();//User Plan logged in BSFT if(drupalSettings.language == 'en') { big_screen_url = ' / profile/premium-access/e180e28d' + variant + '?ts=' + new Date().getTime(); // BSWOJ logged in user plane } else{ big_screen_url = '/'+drupalSettings.language+'/profile/premium-access/e180e28d' + Variant + '?ts=' + new Date().getTime(); // user plane logged in BSWOJ } } if (variant == 'thankyou') { if(drupalSettings.language == 'en') { big_screen_url = '/signup/thank-you/overlay?ts=1596827222&src=wc&origin= / Premium-Zugang/1bb008bd/14b&sp=0&cmgtypl=1bb008bd&cmgovly=1'; } else{ big_screen_url = '/'+drupalSettings.language+'/signup/thank-you/overlay?ts=1596827222&src=wc&origin=/premium-access/1bb008bd/14b&sp=0&cmgtypl=1bb008bd&cmgovly=1'; } } if (/coolmathgames/.test(location.host)) { // big_screen_url = "https://" + location.host + big_screen_url; } var ov_css = 'style="display:none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb( 0,0,0); Kerngrund: rgba(0,0,0,0,4);" min-height="1040px"'; var ovc_css = 'style="marge: auto; prefill: 10px; length: 850px;" min-height="540px"'; var iframe_overlay = '

'; // TODO Adicione este iframe no lugar correto que ele precisa ir. jQuery('.global-wrapper').before(iframe_overlay); // TODO jQuery('#big_screen_iframe').css('altura', '800px'); jQuery('#superposición-de-pantalla-grande').fadeIn(1000); jQuery('.big-screen-signup-container .btn-close').on('click', function (e) { e.preventDefault(); jQuery('#big-screen-overlay').hide() ;}); } sonst { var big_screen_url = ''; if (getCookie('cmg_fx') === null) { // big_screen_url = '/premium-access/1bb008bd' + Variante + '?ts='+new Date().getTime(); if(drupalSettings.language == 'en') { big_screen_url = '/premium-access/849ef809' + Variante + '?ts=' + new Date().getTime(); // BSWOJ Anon Plan } else{ big_screen_url = '/'+drupalSettings.language+'/premium-access/849ef809' + Variante + '?ts=' + new Date().getTime(); // BSWOJ-Anon-Plan } } else { // big_screen_url = '/premium-access/7859e605' + Variante + '?ts='+new Date().getTime(); if(drupalSettings.language == 'en') { big_screen_url = '/profile/premium-access/e180e28d' + Variante + '?ts=' + new Date().getTime(); // plano de usuario logado BSWOJ } else{ big_screen_url = '/'+drupalSettings.language+'/profile/premium-access/e180e28d' + Variante + '?ts=' + new Date().getTime(); // plano de usuario logado BSWOJ } } if (variant == 'thankyou') { if(drupalSettings.language == 'en') { big_screen_url = '/signup/thank-you/overlay?ts=1596827222&src=wc&origin= / Premium-Zugang/849ef809/14b&sp=0&cmgtypl=1bb008bd&cmgovly=1'; } else{ big_screen_url = '/'+drupalSettings.language+'/signup/thank-you/overlay?ts=1596827222&src=wc&origin=/premium-access/849ef809/14b&sp=0&cmgtypl=1bb008bd&cmgovly=1'; } } if (/coolmathgames/.test(ubicación.host)) { // big_screen_url = "https://" + ubicación.host + big_screen_url; } var ov_css = 'style="display:none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb( 0,0,0); Kerngrund: rgba(0,0,0,0,4);" min-altura="1040px"'; var ovc_css = 'estilo="margem: auto; preenchimento: 10px; larga: 850px;" min-altura="540px"'; var iframe_overlay = '

(Video) Papa's pizzeria on cool math games

🇧🇷 // TODO Add this iframe in the correct place where it belongs. jQuery('.global-wrapper').before(iframe_overlay); // TODO jQuery('#big_screen_iframe').css('height', '800px'); jQuery('#large-screen-overlay').fadeIn(1000); jQuery('.big-screen-signup-container .btn-close').on('click', function (e) { e.preventDefault(); jQuery('#big-screen-overlay').hide() ;}); } } function immersive_mode_exit_handler(variant) { start_full_screen_without_ad = false;//clss-3207 not displayed after first test bigScreenActive = false; cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Don't increment exit handler // User logged in if (getCookie('cmg_fx') !== null && getCookie('cmg_uid') !== null) { cmg_uid_bsft = getCookie('cmg_bsft_' + getCookie(' cmg_uid ' )); if (cmg_uid_bsft !== null) { cmg_bsft = parseInt(cmg_uid_bsft); } else { cmg_bsft = 0; } } if (cmg_bsft >= 3 && getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { // Redirect user to registration page if (jQuery.fullscreen.isFullScreen( ) ) { jQuery.fullscreen.exit(); } if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { // track event of type 'exit2signup' cmg_bigscreen_trackevent('exit2signup', cmg_bsft); display_cmg_overlay_signupform(overlay); } else { cmg_bigscreen_trackevent('bigscreen output', cmg_bsft); } } else if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { myTimerAction(); } if(big screen time) { clearTimeout(big screen time); big screen timer = null; } if (cmg_bsft < 3) { // Track event of type 'exit' cmg_bigscreen_trackevent('exit', cmg_bsft); } } function bigScreenTimerAction() { cmg_bsft = 3; if (typeof bigScreenActive !== 'undefined' && bigScreenActive) { if (getCookie('cmg_fx') !== null && getCookie('cmg_uid') !== null) { // User logged in cmg_uid_bsft = getCookie('cmg_bsft_ ' + getCookie('cmg_uid')); if (cmg_uid_bsft !== null) { // cmg_bsft = parseInt(cmg_uid_bsft) + 1; cmg_bsft = 3; // 3011 } else { cmg_bsft = 3; // 3011 } // Ajax request to update user object url = "/ajax/cmgbsft/" + getCookie('cmg_uid') + '/' + cmg_bsft; 🇧🇷 + new date().getTime(); state = 0; jQuery.getJSON(url, function (data) { if (typeof data.uid !== 'undefined' && data.cmgbsft !== 'undefined') { state = 1; } }); // setCookie('cmg_bsft_'+getCookie('cmg_uid'), cmg_bsft, 365 * 24 * 60 * 60 * 1000); } else { // anonymous user // cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) + 1 : 1; cmg_bsft = 3; // 3011 setCookie('cmg_bsft', cmg_bsft, 365 * 24 * 60 * 60 * 1000); } clearTimeout(big screen time); big screen timer = null; }} var immerse_hover_on = 0; var immerse_hover_in = 0; var big_screen_msg_on = 0; function immersive_popover_msg() { var popover_msg = "New premium feature! Try it FREE now"; if ((getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null)) { popover_msg = "New premium feature! Try it now!"; } else { cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Registered user if (getCookie('cmg_fx') !== null && getCookie('cmg_uid') !== null) { cmg_uid_bsft = getCookie('cmg_bsft_' + getCookie('cmg_uid')); if (cmg_uid_bsft !== null) { cmg_bsft = parseInt(cmg_uid_bsft); } else { cmg_bsft = 0; } } // setCookie('cmg_bsft', cmg_bsft, 365*24*60*60*1000);do on timer function after big screen has been active for one minute if (cmg_bsft === 1) { popover_msg = " 2 free trials left"; } else if (cmg_bsft === 2) { popover_msg = "1 free trial left"; } else if (cmg_bsft >= 3) { var variant = ''; if (typeof signup_abtest_2_variations_adfree_modular !== 'undefined') { variant = '/'.signup_abtest_2_variations_adfree_modular; } if (getCookie('cmg_fx') !== null) { popover_msg = 'BIG SCREEN is a premium feature.
PleaseRecord🇧🇷 } else { popover_msg = 'BIG SCREEN is a premium feature.
PleaseRecordoconnect.'; } } } volver popover_msg; } var cmg_bs_popover_prefix = '

PLAY ON THE BIG SCREEN AFTER THE 30 SECOND SCREEN

'); minhaFunçãoParada(); trueXTimer = setTimeout(function () { jQuery('#big-screen-truex-header-text').css('background-color', '#16202c').css('padding-top', '14px') .html('

INTERACT WITH THIS AD TO CONTINUE

🇧🇷 // .css('top margin', '150px'); }, 25 * 1000); 🇧🇷 truexAd.onCredit(function (engagement) { // User spent 30 seconds and interacted at least once log("Big Screen Truex Ad Credit"); trackEvent('BigScreen-TrueX-Promo', 'View a sponsored video: TrueX Ad Accredited ', document title); //

text to write ▶

jQuery('#big-screen-truex-header-text').css('background-color', '#16202c').css('padding-top', '14px').html('

'); document.getElementById("truex-bigscreen-activate-id").onclick = function () { event.preventDefault(); if (typeof bigScreenActive === 'indefinido' || typeof bigScreenActive !== 'indefinido' && !bigScreenActive) { jQuery('#big-screen-signup-container-id').html(""); jQuery('#pantalla-grande-superposición-truex').remove(); cmg_start_game_full_screen('truex'); } } // console.log(Compromiso); }); truexAd.onClose(function (actividad) { // o useuário fechou a unidade de anúncio log("Bigscreen Truex Ad close"); trackEvent('BigScreen-TrueX-Promo', 'View a Sponsored Video: TrueX Ad Closed', document .title ); containerClose(); requestTrueXAdsAndDisplay(cliente); }); truexAd.onFinish(function (actividad) { // o usuário chegou ao final do anúncio log("Bigscreen Truex Ad finish"); trackEvent('BigScreen-TrueX-Promo', 'View a Sponsored Video: TrueX Ad Finished', document . title); jQuery('#big-screen-signup-container-id').html(""); jQuery('#big-screen-truex-overlay').remove(); // tela cheia cmg_start_game_full_screen( "wahrx"); }); truexAd.onMessage(función (carga útil) { // log("onMessage = " + carga útil); }); // Rastreia-Eindruck auf der Brücke von Gatilho TrueX // client.trackTriggerPointImpression(truexAd); // manipular el evento de clique opt-in // agregar TrueX opt-in al DOM if (jQuery("#cmg-big-screen-truex-activity").length) { var truex_container = document.getElementById("cmg- big-tela-truex-atividade"); document.getElementById("cmg-gran-pantalla-truex-actividad").onclick = function () { // truex_preroll_display_handler(); event.preventDefault(); trackEvent('BigScreen-TrueX-Promo', 'Ver um Vídeo Patrocinado: Botão clicado', document.title); jQuery('.gran-pantalla-opciones-contenedor').hide(); if (truex_ad_disponible && typeof client !== 'undefined') { // BigScreen-TrueX-Promo log("Anúncio Truex Bigscreen disponível. Mostrar actividade Truex"); trackEvent('BigScreen-TrueX-Promo', 'Vídeo patrocinado: Carregamento de anúncio TrueX', document.title); client.loadActivityIntoContainer(truexAd, 'big-screen-signup-container-id', {largura: "960px", altura: "540px" }); // show_big_screen_preroll_ad();//test a pre-rolagem } else { log("Anúncio Bigscreen Truex não dissponível. Em vez disso, mostre o video prentete"); // TODO: Mostrar Preroll truex_overlay_preroll_ad_display = true; show_big_screen_preroll_ad(); trackEvent('BigScreen-TrueX-Promo', 'Ver un vídeo patrocinado: Carregamento de anúncio prentente', document.title); } }; } // cmg-big-screen-truex-signup if (jQuery("#cmg-big-screen-truex-signup").length) { document.getElementById("cmg-big-screen-truex-signup"). onclick = function () {log("Botão tela grande clicado"); event.preventDefault(); // jQuery('.contenedor-de-opciones-de-pantalla-grande').hide(); jQuery('#pantalla-grande-superposición-truex').remove(); mostrar_cmg_overlay_signupform(); }; } } function truex_preroll_display_handler() { // log("Anúncio Truex ist verfügbar. Mostrar actividade truex"); event.preventDefault(); trackEvent('BigScreen-TrueX-Promo', 'Ver um Vídeo Patrocinado: Botão clicado', document.title); jQuery('.gran-pantalla-opciones-contenedor').hide(); if (truex_ad_disponible && (Kundentyp !== 'undefiniert' || cmg_truex_client != null) ) { // BigScreen-TrueX-Promo if(Kundentyp == "undefiniert") { client = cmg_truex_client; truexAnuncio = cmg_truexAnuncio; } trackEvent('BigScreen-TrueX-Promo', 'Ver un video patrocinado: Carregamento de anúncio TrueX', document.title); client.loadActivityIntoContainer(truexAd, 'big-screen-signup-container-id', {largura: "960px", altura: "540px" }); // show_big_screen_preroll_ad();//teste a pre-rolagem } else { // log("Anúncio verdadeiro não dissponível. Em vez disso, mostre o video prentente"); // TODO: Mostrar Preroll truex_overlay_preroll_ad_display = true; show_big_screen_preroll_ad(); trackEvent('BigScreen-TrueX-Promo', 'Ver un vídeo patrocinado: Carregamento de anúncio prentente', document.title); } } function cerrarcontenedor() { // log("cerrarcontenedor chamado."); } function log(msg) { console.log("CMG [%s] - %s", new Date().toLocaleTimeString(), msg); } cmg_truex_promo_events_agregado = 0; function display_big_screen_truex_options_overlay() { // Initialisierung des Anúncio-Clients von trueX mit dem Hash der Optionen trackEvent('BigScreen-TrueX-Promo', 'Botão Bigscreen clicado', document.title); //console.log("Botão de tela grande clique na position 1 -"+ new Date()); if (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null || getCookie('cmg_editor') !== null ) { event.preventDefault(); //console.log("clique no botão da tela grande -"+ new Date()); cmg_start_game_full_screen('truex'); } sonst { network_user_id = getCookie('_ga'); if (typeof network_user_id !== 'indefinido' && network_user_id !== '') { network_user_id = network_user_id.replace('GA', 'cmg').replaceAll("\.", ""); } // Prüf-Hash de TRUEX // truex_options = {'network_user_id': network_user_id, 'partner_config_hash': '83f879b26797c723882473d6435e6361c105d86b'}; // TRUEX Live-Hash truex_options = { 'network_user_id': network_user_id, 'partner_config_hash': '375f2f2b728700cd991bb24601b3841c98375886' }; if (typeof truex !== 'indefinido') { truex.client(truex_options, function (cliente) { requestTrueXAdsAndDisplay(cliente); }); } var ov_css = ' style="display:none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb( 0,0,0); Kerngrund: rgba(0,0,0,0,7);" min-altura="1040px" '; var ovc_css = ' style="margin: auto; margin-top: 200px; padding: 10px; width: 424px; height: inicial; background-color: #1f4f77; border:3px solid #286aa1;" '; var ovc_css_id = ' style="margin: auto; margin-top: 150px; width: 960px; " '; var truex_css = ' '; var truex_options1 = "

"; // onclick="truex_preroll_display_handler(); returns false; --> below" var truex_options2 = "

Watch a sponsored video

"; var truex_optionsOR = "

"; var truex_options3 = "

"; if(getCookie("cmg_sac") == "não"){ truex_optionsOR = ""; truex_options3 = ""; } var truex_options4 = "

"; var truex_options_prefix = '

'; var truex_options_suffix = '

'; truex_options = truex_options_prefix + truex_options1 + truex_options2 + truex_optionsOR + truex_options3 + truex_options4 + truex_options_suffix; var truex_options_heading = '

'+'

'; var preroll_container = '

'+'

' + // '

Continue

'+ //'quince'; '

'; var bs_truex_options = '

'+'

'+'

'+'' + truex_options + '

(Video) Papas Pizzeria - Cool Math Games Ep. 2

'+'

'+'

' + truex_options_heading + '

' + preroll_container + '

'+'

'; // TODO Adicione este iframe no lugar correto que ele precisa ir. jQuery('.global-wrapper').before(bs_truex_options); // TODO jQuery('#big_screen_iframe').css('altura', '800px'); jQuery('.contenedor de opciones de pantalla grande').show(); jQuery('#pantalla-grande-superposición-truex').fadeIn(1000); // if(!cmg_truex_promo_events_added) { // cmg_truex_promo_events_added = 1; jQuery('.big-screen-options-container .btn-close').on('click', function (e) { e.preventDefault(); jQuery('#big-screen-truex-overlay').hide ();}); jQuery('#cmg-big-screen-truex-promo-close').on('click', function (e) { e.preventDefault(); jQuery('#big-screen-truex-overlay').ocultar ();}); // } } } función show_big_screen_preroll_ad() { event.preventDefault(); jQuery('#big-screen-truex-header-text').css('padding-top', '14px').html("

PLAY ON THE BIG SCREEN AFTER THIS ANNOUNCEMENT

"); jQuery('.big-screen-options-container').hide(); var cmatgame_subscriber = getCookie('cmg_sx'); var validSubscriber = false; if (typeof cmatgame_subscriber !== 'undefined' && cmatgame_subscriber != = null) { validSubscriber = true; } // vorherige Ankündigungen var prerollUrls = /0\-testing/; if (! validSubscriber) { // vorherige Ankündigungen zeigen window.scrollTo(0, 0); var modal = document.getElementById( 'big-screen-preroll-container'); // modal.style.display = 'block'; // limpia o temporizador de actualización if (typeof refreshTimer !== "undefined") { clearTimeout(refreshTimer); refreshTimer = null ; } var adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?iu=/137548614/1023174/71134/1023174-71134-video&description_url=https%3A%2F%2Fwww.coolmathgames.com%2F&env =vp&impl =s&correlator=&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640x480&unviewed_position_start=1'; if (typeof window.PW_CMG != "undefined") { var leilãoCallback = function (displayAds, videoUrl) { application = new A aplicación (Display-Anzeigen, Video-URL) ; }; Janela. PW_CMG.startAuction(AuctionCallback); } else { // Adblock-Anwendung = neue Anwendung (falso, adTagUrl); } bs_preroll_timer = 15; bs_preroll_intervalId = setInterval(función () { bs_preroll_timer --; jQuery('#big-screen-truex-header-text').html('

PLAY AFTER THIS ANNOUNCEMENT ON THE BIG SCREEN: ' + bs_preroll_timer + '

'); // document.getElementById("preroll_timer_id").innerHTML = second_left; if (bs_preroll_timer <= 0) { jQuery('#big-screen-truex-header-text').html('

PLAY NOW ON THE BIG SCREEN ▶

'); document.getElementById("truex-bigscreen-activate-id").onclick = function () { event.preventDefault(); $('a.requestfullscreen>span.big-screen-popover-span').html('Reproducir pantalla grande'); if (typeof bigScreenActive === 'indefinido' || typeof bigScreenActive !== 'indefinido' && !bigScreenActive) { jQuery('#big-screen-signup-container-id').html(""); jQuery('#pantalla-grande-superposición-truex').remove(); start_full_screen_without_ad = falso; cmg_start_game_full_screen('truex'); } } clearInterval(bs_preroll_intervalId); } }, 1000); } } // Función final TRUEX cmg_start_game_full_screen(cmgsource) { myStopFunction(); // sem atualización del anuncio bigScreenActive = true; // console.log("Iniciando tela cheia"); if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { // trackEvent('BigScreen-Trial', 'Bigscreen activado', document.title); cmg_bigscreen_trackevent('Eingabe', cmg_bsft); bigScreenTimer = setTimeout (Función () { bigScreenTimerAction (); }, 60 * 1000); } else { // trackEvent('BigScreen-TrueX-Promo', 'Bigscreen activado', document.title); cmg_bigscreen_trackevent('ingresar', 0); } var elem = document.getElementById('block-system-main'); if (jQuery('html').hasClass('mobile-device')) {requestFullscreenModal(elem, document.title); retorno falso; } si (elem.requestFullscreen) {elem.requestFullscreen(); } else if (elem.mozRequestFullScreen) { /* Firefox */ elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari y Opera */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE/Edge */ elem.msRequestFullscreen(); } sonst {requestFullscreenModal(elem, document.title); retorno falso; } ajusteAnchoAltoJuego(); } función immersive_mode_display() {var popover_msg = immersive_popover_msg(); var inmersión_prefijo = '🇧🇷 // Don't add title var immerse_suffix = ''; var immersion_html = "Watch the ad to play it on the big screen"; var immersion_html_sub = "GAMES ON THE BIG SCREEN"; if (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null) { $(".immerse-button").html(immerse_prefix + immerse_html_sub + immerse_suffix); } else { $(".immerse-button").html(immerse_prefix + immerse_html + immerse_suffix); } if (getCookie('cmg_fx') !== null) { jQuery('.node-type-game.logged-in .requestfullscreen' ).css('display', 'inline-block'); } // pega o jogo var elem = document.getElementById('block-system-main'); // abre o jogo em tela cheia $('.immerse -button .requestfullscreen').on('click', function (e) { e.preventDefault(); //console.log("función sumergir botón onclick handler" + nueva fecha()); // Sehen Sie sich eine Visualisierung an Mostrar tela interteira sem quaisquer anúncios // if($("html").hasClass("mobile-device")) { // cmg_start_game_full_screen(); // } if(/\/test-game\//. test( ventana.ubicación. nombre de ruta)){ //console.log("página de prueba"); cmg_start_game_full_screen(); } if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'yes') { // TODO: voltear daqui ou no? wenn (start_full_screen_ohne_Anzeige) { display_big_screen_truex_options_overlay(); } Más {cmg_start_game_full_screen(); } } Retorno; if (jQuery('#popover' + gameId).longitud) { jQuery('#popover' + gameId).remove(); eintauchen_hover_on = 0; } cmg_bsft = getCookie('cmg_bsft') !== nulo ? parseInt(getCookie('cmg_bsft')) : 0; // Protokoll verwenden if (getCookie('cmg_fx') !== null && getCookie('cmg_uid') !== null) { cmg_uid_bsft = getCookie('cmg_bsft_' + getCookie('cmg_uid')); si (cmg_uid_bsft !== nulo) { cmg_bsft = parseInt(cmg_uid_bsft); } Sonst { cmg_bsft = 0; } } if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { if (cmg_bsft < 3) { // Ereignis des Rastreamento do tipo 'enter' cmg_bigscreen_trackevent('enter', cmg_bsft + 1); } if (getCookie('cmg_sx') !== null || getCookie("cmg_wl") !== null || cmg_bsft < 3) { cmg_start_game_full_screen(); } else { //console.log("BIG SCREEN Você atingiu um limite de FT"); //Eingabeformel ausgeben if(getCookie('cmg_sx') === null && getCookie('cmg_wl') === null && !popover_login_click) { display_cmg_overlay_signupform(); } // Rastream-Event con Tipp 'registro' // cmg_bigscreen_trackevent('registro', cmg_bsft+1); } } else { //Pantalla grande - Integración TrueX //Bedingungen TODO, um zu überprüfen oder eine Anfrage zu stellen if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { // console .log("Botão de tela grande clicado. Exibir a sobreposição com opções"); mostrar_pantalla_grande_truex_options_overlay(); } else { if (cmg_bsft < 3) { // rastrear evento para hacer tipo 'enter' cmg_bigscreen_trackevent('enter', cmg_bsft + 1); } if (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null || cmg_bsft < 3) { cmg_start_game_full_screen(); } else { //console.log("BIG SCREEN Você atingiu um limite de FT"); //Formular der Anmeldung erstellen if(getCookie('cmg_sx') === null && getCookie('cmg_wl') === null && !popover_login_click) { //display_cmg_overlay_signupform(); } // Rastream-Event con Tipp 'registro' // cmg_bigscreen_trackevent('registro', cmg_bsft+1); } } } }); if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { $('.immerse-button .requestfullscreen').hover(function () { // passe o mouse em // console.log("Botão da tela grande passe o mouse en "+nueva fecha()); immerse_hover_in = 1; if (!immerse_hover_on) { popover_msg = immersive_popover_msg(); var popover_html = cmg_bs_popover_prefix + cmg_bs_popover_suffix1 + popover_msg + cmg_bs_popover_suffix2; $(".immerse-button . big-screen-popover-span").after(popover_html); var ancho = $(".immerse-button").find('.requestfullscreen').width(); var height = $(.immerse-button " ).find(' .popover').height(); var xPos = '-' + (largura/2); var yPos = '-' + (altura + 5); $(.botón sumergir") .find ('.popover ').css("transform","translate3d("+ xPos +"px, "+ yPos + "px, 0)"); immerse_hover_on = 1; if (jQuery('#popover' + gameId) .length) { jQuery('#popover' + gameId).hover(function () { //console.log("Popover-Nachricht hover in "+ new Date()); big_screen_msg_on = 1 }, function () { / /console.log( "Él rren Agem popover passe o mouse" + n nova data()); gran_pantalla_msg_on = 0; }); } } }, function () { // Passe o mouse // console.log("Botão da tela grande passe o mouse "+ new Date()); mergulhar_hover_in = 0; setTimeout(function () { if (immerse_hover_on && !immerse_hover_in && !big_screen_msg_on) { jQuery('#popover' + gameId).remove(); immerse_hover_on = 0; } }, 1 * 1000); }); } // fecha de inicio de sesión $('#block-system-main .close-full-screen').on('click', function (e) { e.preventDefault(); immersive_mode_exit_handler(); jQuery. pantalla completa.salir (); }); $('cuerpo').keypress(function (e) { if (e.which == 27) { if ($('.summer-button .requestfullscreen').longitud && tipo de bigScreenActive !== 'indefinido' && bigScreenActive ) {immersive_mode_exit_handler(); // jQuery.fullscreen.exit(); } } }); var screen_change_events = "webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange"; // Clase alternativa de Janela de Tela Cheia jQuery(document).on(screen_change_events, function () { if (jQuery.fullscreen.isFullScreen()) { /* elem.classList.add('full-screen-window'); var iframe = document.getElementById('html5game') - document.getElementById('html5game'): document.getElementById('swfgame'); var iframeWidth = parseInt(iframe.width); var iframeHeight = parseInt(iframe.height); var windowWidth = parseInt(screen.width); var windowHeight = parseInt(screen.height) - 75; var xpbarPos = (windowHeight + 75 - iframeHeight) / 2 + iframeHeight + 10; $('.game-xp-bar-immerse -button ').css('superior', xpbarPos + "px"); if ($("cuerpo").hasClass("game-scalable")) { if (iframeHeight > windowHeight) { var ratio = iframeHeight / windowHeight ; } else { var ratio = windowHeight / iframeHeight; } // Berechne eine Largura von jogo com base na altura von janela var gameWidth = iframeWidth * ratio; // aplica nova largura e altura com iframe y barra xp iframe.style.width = ancho de juego + "px"; yo frame.style .height = Fensterhöhe + "px"; var xpbarPos = Fensterhöhe + 10; $('.game-xp-bar-immerse-button').css('arriba', xpbarPos + "px"); } Else if ($("cuerpo").hasClass("game-full-screen")) {// Anwendung Nova Largura y Altura mit iFrame y Barra XP iframe.style.width = windowWidth + "px"; iframe.style.height = windowHeight + "px"; var xpbarPos = Fensterhöhe + 10; $('.game-xp-bar-immerse-button').css('arriba', xpbarPos + "px"); } */ if (jQuery('html').hasClass('mobile-device')) { jQuery("#block-system-main #html5game").attr('src', jQuery('#playNowButton'). atr('href')); } $("corpora").addClass('immersiveActive'); elem.classList.add('janela de tela cheia'); // Hinweis zum Zoomen chkZoomValues(); // Largura y altura configuradas para jogo iframe ajusteWidthHeightGame(); } else { if (jQuery('html').hasClass('mobile-device')) { jQuery("#block-system-main #html5game").removeAttr('src'); } Immersive_mode_exit_handler(); $("corporativo").removeClass('immersiveActive'); elem.classList.remove('janela de tela cheia'); // entfernen oder Alarmierung verstärken $('.zoomedalert').remove(); $('#html5jogo').removeAttr("estilo"); $('#swfgame').removeAttr("estilo"); $('.game-xp-bar-immerse-button').removeAttr("estilo"); } }); } función AdjustWidthHeightGame() { var iframe = document.getElementById('html5game') ? document.getElementById('html5game') : document.getElementById('swfgame'); var iframeWidth = parseInt(iframe.ancho); var iframeHeight = parseInt(iframe.height); // var ancho de ventana = parseInt(pantalla.ancho); // var windowHeight = parseInt(screen.height) - 75; var ancho de ventana = parseInt($(ventana).ancho()); var windowHeight = parseInt($(ventana).height()); var xpbarPos = (windowHeight + 75 - iframeHeight) / 2 + iframeHeight + 10; $('.game-xp-bar-immerse-button').css('arriba', xpbarPos + "px"); if ($("cuerpo").hasClass("game-scalable")) { if (iframeHeight > windowHeight) { var ratio = iframeHeight / windowHeight; } sonst { var ratio = windowHeight / iframeHeight; } // Berechne eine Largura für Jogo com base na height von Janela var gameWidth = iframeWidth * ratio; // Anwendung Nova Largura y Altura com Iframe y Barra xp iframe.style.width = gameWidth + "px"; iframe.style.height = windowHeight + "px"; var xpbarPos = Fensterhöhe + 10; $('.game-xp-bar-immerse-button').css('arriba', xpbarPos + "px"); } Else if ($("cuerpo").hasClass("game-full-screen")) {// Anwendung Nova Largura y Altura mit iFrame y Barra XP iframe.style.width = windowWidth + "px"; iframe.style.height = windowHeight + "px"; var xpbarPos = Fensterhöhe + 10; $('.game-xp-bar-immerse-button').css('arriba', xpbarPos + "px"); } } function ajusteWidthHeightModalGame(is_resize) { var iframe = $('#immersiveModal').find('#html5game'); var iframeWidth = parseInt(iframe.attr('ancho')); var iframeHeight = parseInt(iframe.attr('altura')); var time_out = (is_resize === verdadero) ? 500 : 0; // setTimeout(function(){ var wdWidth = parseInt($(window).width()); var wdHeight = parseInt($(window).height()); var oTwdWidth = parseInt($(window).outerWidth( )); var oTwdHeight = parseInt($(ventana).outerHeight()); var windowWidth = (oTwdWidth > wdWidth) ? oTwdWidth : wdWidth; var windowHeight = (oTwdHeight > wdHeight) ? oTwdHeight : wdHeight; if ($("cuerpo ").hasClass("game-scalable")) { if (iframeHeight > windowHeight) { var ratio = iframeHeight / windowHeight; } else { var ratio = windowHeight / iframeHeight; } // Calculando a largura hacer jogo com base na altura da janela var gameWidth = iframeWidth * ratio; // Anwendung von Nova Largura und Altura mit iframe iframe.css("ancho", windowWidth); iframe.css("height", windowHeight); } else if ($("cuerpo") .haClass("juego -tela cheia")) { iframe.css("ancho", ancho de ventana); iframe.css("alto", alto de ventana); } // }, time_out); } // Passen Sie eine Largura/Altura an, um einen Rückschritt für Paisagem zu machen window.addEventListener("resize", function () { if ($("body").hasClass("immersiveActive")) { justaWidthHeightGame() ; } if ($("cuerpo").hasClass("isFullScreen")) { AdjustWidthHeightGame(); } if ($("body").find("#immersiveModal").length) { AdjustWidthHeightModalGame(true); } if($ ("#swfgamewrapper #html5game").prop("tagName") == "IFRAME1" && !cmg_is_mobile_device() && document.documentElement.clientWidth >= 960 - ( window.innerWidth-jQuery(document).width( ) ) ) { if(hide_preroll_ads == false && (prerollAdDisplayed == false || prerollAdEnd != "" && prerollAdStart != prerollAdEnd ) && prerollAdEnd != "mob") {//TODO: isRemoveAdSwfJWPLayer o prerollAdDisplayed //console.log ("CMGResize : gamenode-inline redimensionado do celular para o desktop and jogo não for carregado. TODO - Exibir anúncio prentete e, em seguida, jogo - "+new Date()); displayPrerollAd_Desktop(); //TODO: 21/06 /2022 Anuncios no expuestos e, porta nto, jogo depois suprimir //cmg_remove_padg(); } Else if(hide_preroll_ads == true || prerollAdDisplayed == true) { //console.log("CMGResize: Gamenode-Inline-Redimensionierung des Handys für Desktop und Jogo ohne Carregado. Anúncio prentete já exibido. Exibir jogo - "+nova datos ()); cmg_remove_padg(); } } }, falso); var cmg_mmg_html = ''; var cmg_mmg_swf_html = ''; var cmg_game_modal_attached = falso; Función AttachModalHtml (Elemento, Título) { cmg_game_modal_attached = true; var elem = document.getElementById('block-system-main'); html = '

'; $('corporativo').append(html); var gamewrapper = jQuery("#swfgamewrapper"); jQuery('#immersiveModal .modal-body').html(gamewrapper); if(cmg_is_mobile_device() || (jQuery(".game-page-mobile .playNow").length && jQuery(".game-page-mobile .playNow").is(':visible') ) ) { sandbox = jQuery("#html5juego").attr("Caja de arena"); if (sandbox !== indefinido) { sandbox = ' sandbox=\"' + sandbox + '\"'; } Más {Caja de arena = ''; } nuevo marco flotante = '

'; if(jQuery("#html5juego").longitud) { cmg_mmg_html = '

'; } newswfiframe = '

'; if(jQuery("#swfgame").longitud) { cmg_mmg_swf_html = '

'; } if (cmg_flash_emulated_game()) { if(drupalSettings.cmatgame.flash_emulation === "1"){ //ruffle game_type = "html5"; var swfURLObject = drupalSettings.cmatgame.swfembed.swf.u; var swfURLArray = swfURLObject.split("/"); juego_ancho = drupalSettings.cmatgame.swfembed.swf.swf_1.width; juego_altura = drupalSettings.cmatgame.swfembed.swf.swf_1.altura; var swf_game_url = 'https://www.coolmath-games.com/sites/cmatgame/files/ruffle1/ruffle.html?f='+swfURLArray[swfURLArray.length-1]+'&w='+game_width+'&h= '+jogo_altura; cmg_mmg_swf_html = '

'; } Else if(drupalSettings.cmatgame.flash_emulation === "2"){ //ruffle //console.log("Cheerpx load 3"); tipo_jogo = "html5"; juego_ancho = drupalSettings.cmatgame.swfembed.swf.swf_1.width; juego_altura = drupalSettings.cmatgame.swfembed.swf.swf_1.altura; tipo_jogo = "html5"; var swfURLObject = drupalSettings.cmatgame.swfembed.swf.u; var swfURLArray = swfURLObject.split("/"); //swf_1_game_url = "/sitios/predeterminado/archivos/juegos/" + swfURLArray[swfURLArray.length-1]; swf_1_game_movie_param = swfURLArray[swfURLArray.longitud-1]; //cheerpx js var swf_game_url = cmgGetCheerpxUrl()+swfURLArray[swfURLArray.length-1]+'&w='+game_width+'&h='+game_height; noticiaswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); //console.log("Cheerpx ersetzt iframe 2"); } } } } función requestFullscreenModal(elemento, título) { $("#immersiveModal").addClass('modal fade show full-screen-modal').css({"display":"block", "z-index" :100000}); $('corpora').addClass('isModalPlay'); $('#immersiveModal').find('#swfgamewrapper').show(); if($('#html5juego').longitud || cmg_mmg_html) { jQuery("#swfgamewrapper").html(cmg_mmg_html); si (cmg_flash_emulated_game()) { jQuery("#swfgamewrapper").html(cmg_mmg_swf_html); } } else if(jQuery('#swfgame').length) { if (cmg_flash_emulated_game()) { if(drupalSettings.cmatgame.flash_emulation === "2"){ jQuery("#swfgamewrapper").html(newswfiframe) ; } Else {jQuery("#swfgamewrapper").html(cmg_mmg_swf_html); } } } if(drupalSettings.cmatgame.flash_emulation === "2"){ displayCmgCheerpxLoadingScreenResized(); } $('#immersiveModal').find('.close').click(function () { $("#immersiveModal").remove(); }); ventana.ubicación.hash = "immersiveModal"; $(ventana).on('hashchange', función (evento) { if (ventana.ubicación.hash != "#immersiveModal") { $("#immersiveModal").hide(); if($('#html5game ').length) { $('#html5game').remove(); } else if(jQuery('#swfgame').length) { jQuery('#swfgame').remove(); } $('body ').removeClass('isModalPlay'); } }); ajusteAnchoAlturaModalJuego(falso); if (Tipo de navegación !== "indefinido" && Navegador == "Microsoft Internet Explorer") { if ("función" === tipo de checkVersionBrowser) { ieVersion = checkVersionBrowser(); if(ieVersion == "IE 11" && !jQuery('#html5game').length) { jQuery("#swfgamewrapper").html(cmg_mmg_html); //console.log("requestFullscreenModal immersiveModal ieVersion ? "+ieVersion.length); } } } }

' + signupContainerTop).prependTo('.load-wrap'); }

Skip All Ads: Go Premium Now

Continue

quince

Click on the Ad Blocker extension icon at the top
right area of ​​the browser window.

'+'

  • 2

    Select "Do not run on this domain" or similar
    Option to disable for all coolmath pages.

  • '+'

  • 3

    refresh page


    Having problems or need more information? Click here
  • ' + '' + '

    (Video) Papa's Pizzeria- By Flipline Studios and played in CoolMathGames

    '+'

    Papa's Pizzeria - Play online at Coolmath Games (8)

    '+'

    Videos

    1. papa's pizzeria
    (francesca Briffa)
    2. Papa's Pizzeria
    (sami hauke)
    3. Joebuster Saturday Episode 6 Part 1/2 - Papa's Pizzeria {Free Online Game}
    (Yoffa)
    4. Papa's Pizzeria #1 My New Job
    (HunterDoesGames)
    5. Papa's Pizzeria walkthrough on Cool Math
    (Ninten 831 Productions)
    6. Papa's Pizzeria Full Gameplay Walkthrough All Levels
    (GoGy Games)
    Top Articles
    Latest Posts
    Article information

    Author: Edwin Metz

    Last Updated: 11/19/2022

    Views: 6097

    Rating: 4.8 / 5 (58 voted)

    Reviews: 81% of readers found this page helpful

    Author information

    Name: Edwin Metz

    Birthday: 1997-04-16

    Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

    Phone: +639107620957

    Job: Corporate Banking Technician

    Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

    Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.