L'âge du bronze avant la civilisation - Jouez maintenant sur Coolmath Games (2023)

ça te plaira aussi

guerres continentales
pour le roi
Deck Adventures : Chapitre 1
Deck Adventures : Chapitre 2
Deck Adventures : Chapitre 3
Aventuriers de pont : le voyage de Peter
arrêter l'obscurité
donjon le donjon
pas
collision mystérieuse

'; } Sinon {SubscribePromoTop = ''; InscriptionContainerTop = '

' + enregistrerPromoTop + '

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

' + enregistrerPromoBottom + '

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

' + enregistrerPromoBottom + '

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

'); } } function checkPlayedGames() { // sert à tester 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(); } /** ** For a CMG promoção de tela padrão com a lista de jogos */ function checkCMGDefaultExceptionURL() { supportCMG = false; if (!cmgDefaultGameUrl.test(location.pathname) && (type of gamesPlayed != "indefinido" && (gamesPlayed == 2 || gamesPlayed == 8))) { supportCMG = true; hora escolar = faux ; // le plus de tempo à faire if (getCookie('cmg_fx') !== null && getCookie('cmg_sx') == null) { var planToSubscription = 'd61242ac'; } else { var planToSubscription = '0735a1f2'; } // Utiliser l'inscription gratuite jQuery(document).ready(function () { jQuery(.pane-bean-new-go-ad-free").html('Passez au grand écran !'); jQuery('.cmgdefault-right-side-promotion').show(); }); var gamePageBarPromo = 'GO PREMIUM : UNE MEILLEURE EXPÉRIENCE DE JOGO' ; gamePageBarPromoActionText = 'Plus Premium'; var pathpromobarsubscriptionform = '/subscribe/' + planToSubscription ; jQuery('.gamepage-signup-promo').hide(); jQuery('#block-cmatgame-cmatgame-system-main').append('

' + jeuPageBarPromo + '

' + gamePageBarPromoActionText + '

'); } } comprobarJuegosJugados(); // necesita comentar esta llamada de función settimebased(); para evitar que se ejecute al cargar la página, debería comenzar a funcionar // al cargar el juego. // establecer basado en tiempo (); comprobarCMGDefaultExceptionURL(); 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 estadotrabajadorvar = "no"; recuento de var = 0; var miIntervalo; // Función activa chkIdleOnpage() { var userActivityTime = Date.now(); // comprobar si la actividad del usuario no está presente más de 55 min 60000*55 = 3300000 if (userActivityTime - lastKeyBoardorMouseActivityTime > 3300000) { if (typeof(w) != "undefined") { workertatusvar = "terminated"; w.terminate(); w = indefinido; } } else { // Puede ser que el teclado esté activo iniciar nuevo trabajador settimebased(); } } // Inactivo si (! está_basado_en_el_nivel) { // verifica el tiempo de inactividad cada 5 min 60000 * 5 = 300000 idleOnPageCheckTimer = setInterval(function () { chkIdleOnpage() }, 300000); } function settimebased() { if (!is_level_based) { jQuery(document).ready(function () { if (isUserValidFreeUserOrSubscriber()) { window.addEventListener("beforeunload", function (e) { saveUserProgress(); }); if (tipo(Trabajador) !== "indefinido") { if (tipo(w) == "indefinido") { w = nuevo Trabajador("/modules/custom/cmatgame_userprofile/js/userprogress_workers.js"); w. onmessage = función (evento) { var userActivityTime = Date.now(); // guarda el objeto de perfil de usuario en el almacenamiento local // if (userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { userprofile = event.data; localStorage.setItem("userprofile", JSON.stringify(userprofile)); // mostrar la barra de progreso del juego en las páginas del juego if (typeof gameId != "indefinido") { display_game_progressbar(gameId); } // mostrar la barra de progreso del usuario display_user_profile_progressbar(); //agregar guardar el progreso del usuario de nuevo a la API server saveUserProgress(); // } }; var perfil de usuario = localStorage.getItem("perfil de usuario"); setTimeout(función () { var perfil de usuario = localStorag e.getItem("perfil de usuario"); var currentGameData = searchGamesById(gameId); if (typeof drupalSettings.cmatgame != "indefinido" && typeof drupalSettings.cmatgame.swfembed != "indefinido" && drupalSettings.cmatgame.swfembed != "" && typeof drupalSettings.cmatgame.flash_emulation != "indefinido" && drupalSettings.cmatgame. flash_emulation == 0 ) { // No hacer nada aquí } else if (typeof w != 'undefined') { w.postMessage([ gameId, xp_per_level, userprofile, currentGameData, cmatgameSearchGames, userprofile_level_xpData ]); } }, 60000); // setInterval(function () { updateMyGamesTimeSpent1(gameId) }, 60000); } } } }); } } // Detener la función del temporizador stopTimer() { cuenta = 0; if (workerstatusvar == "terminado") { settimebased(); estadotrabajadorvar = "iniciado"; } ventana.clearInterval(miIntervalo); } función checkKeyboardOrMouseActivity() { lastKeyBoardorMouseActivityTime = Date.now(); if (!is_level_based) { if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { // juego html 5 } else { stopTimer(); } } } function startTimer() { // para juegos basados ​​en flash comprobar el tiempo de inactividad cada 5 min 60000 * 5 = 300000 myInterval = window.setInterval(timerHandler, 30000); } función timerHandler() { cuenta++; // el recuento del juego basado en flash durará 55 rondas if (count == 55) { workertatusvar = "terminated"; if (tipo de w !== 'indefinido') { w.terminate(); w = indefinido; } } } document.addEventListener("movemouse", checkKeyboardOrMouseActivity, false); document.addEventListener('keydown', checkKeyboardOrMouseActivity, false); document.addEventListener("presionar tecla", checkKeyboardOrMouseActivity, false); document.addEventListener("touchmove", checkKeyboardOrMouseActivity, false); if (!is_level_based) { if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { // juego html 5 document.addEventListener("visibilitychange", function() { if (document.visibilityState == 'oculto') { //startTimer(); if (typeof idleOnPageCheckTimer !== 'indefinido') { clearInterval(idleOnPageCheckTimer); } /*** debe eliminarse debajo de la variable de estado de los trabajadores. la posición cambió. Debería estar debajo de la codición donde el trabajador no está definido ** */ // varestadotrabajador = "terminado"; if (typeof w !== 'indefinido') { w.terminate(); w = indefinido; varestadotrabajador = "terminado"; } } else if (document.visibilityState == 'visible ') { stopTimer(); // inicia el trabajador. } }, false); } else { // flash game window.addEventListener('focus', stopTimer); ventana.addEventListener('desenfoque', startTimer); // Verifique que el navegador minimice document.addEventListener("visibilitychange", function () { if (document.visibilityState == 'hidden') { startTimer(); } else if (document.visibilityState == 'visible') { stopTimer() ; } }, FALSO); temporizadorIniciar(); } } // fin de la función !is_level_based putSharedObjectsInDB(syncData) { flashStorage = syncData; guardarProgresoUsuario(); } isRemoveAdSwfJWPLayer = falso; prerollAdDisplayed = falso; //use esto cuando cambie de la vista móvil a la vista de escritorio y el anuncio pre-roll no se mostró antes prerollAdStart = ""; prerollAdEnd = ""; // Superposición de prueba para ver anuncios para desbloquear juegos // var watchAdtoUnlockGame = true; // var horario escolar = false; // //console.log('supportCMG es verdadero'); ventana.addEventListener("mensaje", recibirMensaje, falso); function recibirMensaje(evento) { // console.log("mensaje recibido2 de " + evento.origen + " : " + evento.datos); var valid_domain_msg = falso; 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 == "continuar-sin-pantalla-grande" && jQuery('#superposición-de-pantalla-grande').length && valid_domain_msg) { // cerrar superposición if (jQuery('#pantalla-grande- superposición').longitud) { jQuery('#superposición-de-pantalla-grande').hide(); if (jQuery('#gran-pantalla-superposición-truex').length) { jQuery('#gran-pantalla-superposición-truex').hide(); } cmg_bigscreen_trackevent('cerrar registro', cmg_bsft); } } else if (event.data == "continue-with-login-big-screen" && jQuery('#big-screen-overlay').length && valid_domain_msg) { // console.log("BIGSCREEN mensaje recibido2 de " + evento.origen + " : " + evento.datos); cmg_bigscreen_trackevent('closesignup2login', cmg_bsft); jQuery('#superposición-de-pantalla-grande').hide(); if (jQuery('#gran-pantalla-superposición-truex').length) { jQuery('#gran-pantalla-superposición-truex').hide(); } if (drupalSettings.language !== "en"){ ventana.ubicación = `/${drupalSettings.language}/login?destination=${window.location.pathname}`; } else { ventana.ubicación = "/login?destino=" + ventana.ubicación.nombreruta; } } else if (event.data == "continue-premium-big-screen" && (jQuery('#big-screen-overlay').length || jQuery('#pr-perfil-screen-overlay'). longitud) && valid_domain_msg) { // console.log("BIGSCREEN mensaje recibido2 de " + event.origin + " : " + event.data); cmg_bigscreen_trackevent('jugar después de registrarse', cmg_bsft); jQuery('#superposición-de-pantalla-grande').hide(); jQuery('#pr-perfil-superposición-de-pantalla').hide(); if (jQuery('#gran-pantalla-superposición-truex').length) { jQuery('#gran-pantalla-superposición-truex').hide(); } ventana.ubicación.recargar(); } else if (event.data == "perfil-pantalla-grande-personalizar" && (jQuery('#superposición-pantalla-grande').longitud || jQuery('#pr-perfil-superposición-pantalla').longitud ) && valid_domain_msg) { // console.log("BIGSCREEN mensaje recibido2 de " + event.origin + " : " + event.data); cmg_bigscreen_trackevent('perfil personalizado después de registrarse', cmg_bsft); jQuery('#superposición-de-pantalla-grande').hide(); jQuery('#pr-perfil-superposición-de-pantalla').hide(); if (jQuery('#gran-pantalla-superposición-truex').length) { jQuery('#gran-pantalla-superposición-truex').hide(); } if (getCookie('cmg_fx') !== null) { ventana.ubicación = '/perfil/' + getCookie('cmg_fx').toLowerCase() + '/editar'; } } else if (event.data == "big-screen-premium-benefits" && jQuery('#big-screen-overlay').length && valid_domain_msg) { // console.log("BIGSCREEN mensaje recibido2 de " + evento.origen + " : " + evento.datos); cmg_bigscreen_trackevent('ver beneficios premium después de registrarse', cmg_bsft); jQuery('#superposición-de-pantalla-grande').hide(); if (jQuery('#gran-pantalla-superposición-truex').length) { jQuery('#gran-pantalla-superposición-truex').hide(); } if (getCookie('cmg_fx') !== null) { ventana.ubicación = '/premium-benefits'; } } else if (event.data == "keypress-from-game") { checkKeyboardOrMouseActivity(); } else if (evento.origen === "https://copterroyale.coolmathgames.com" || evento.origen === "https://copterroyale2.coolmathgames.com" || evento.origen === "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("Hangman "+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(evento.datos); var eventGame = "carrera de palabras"; if (/0-cuatro-en-raya/.prueba(ubicación.nombreruta)) { eventGame = "cuatroen-raya"; } 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 = "hexanauta"; 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); //cerrar la pantalla de carga closeCmgCheerpxLoadingScreen(); // Eliminar la carga de la pantalla estrecha 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") { // restaurar objetos flash compartidos desde DB para (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' }, '*'); } } } más { volver; } } // var signupPromoTop = 'Únete para jugar sin publicidad'; var signupPromoBottom = 'Únete para omitir todos los anuncios'; if (typeof signupPromoTop !== 'indefinido' && signupPromoTop !== '') { signupContainerTop = '

' + enregistrerPromoTop + '

'; } Sinon {SubscribePromoTop = ''; InscriptionContainerTop = '

' + enregistrerPromoTop + '

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

' + enregistrerPromoBottom + '

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

' + enregistrerPromoBottom + '

'; } function preroll_signup_top_handler() { trackEvent('Preroll Signup Clicked', 'Top Signup Preroll', document.title); } function preroll_signup_bottom_handler() { trackEvent('Preroll Signup Clicked', 'Preroll Signup End', document.title); } // Wir setzen diese signUpURLABTest-Variable in Experiments.js var cmg_upg_days_limit = 180; var user_dst = ventana.ubicación.ruta ; user_dst = user_dst.replace("\/", ""); if (ventana.ubicación.host !== 'cmatgame.local') { if (typeof signUpURL === 'undefined' || signUpURL === '') { signUpURL = '/premium-access/ b2df5a33?origin=' + user_dst ; } sonst { signUpURL = signUpURL + '?origin=' + user_dst ; } } else if (typeof signUpURLABTest === "undefined" || 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('Premium Membership ' + SubscriberLeg, 'Subscription Overlay Clicked', userPlayedGames); trackGoalVirtualPV('/virtual/subscription-overlay-click'); } zurück geben ; } function SubscribeUrlRegistro() { var user_played_games = ''; var zeroFreeGamesLeftUsers = localStorage.getItem("zeroFreeGamesLeftUsers"); if (typeof userPlayedGames !== 'undefined' && 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; } sinon si (zeroFreeGamesLeftUsers !== null) { user_played_games = 'zfg=' + zeroFreeGamesLeftUsers ; } if (typeof signUpURL !== 'undefined' && 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; } Sinon { URLRegistrarse = URLRegistrarse + '?' + usuario_juegos_jugados ; } } } function updateMyGamesTimeSpent(gameId) { var userActivityTime = Date.now(); // if (userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { //der Benutzer war die letzten 60 Sekunden auf der Seite aktiv, damit wir ihn als XP hinzufügen können if (currentTimeInterval >= 2) { currentTimeInterval = 0; if (isUserValidFreeUserOrSubscriber()) { // MyGames solo für Abonnenten speichern saveMyGames(gameId, 0, 1); aktuelle Zeit = Benutzeraktivitätszeit ; } } Sinon {IntervalTiempoActual = IntervaloTiempoActual + 1 ; saveProgresoUsuario(); // Benutzerfortschritt alle 20 Sekunden speichern } // } } function updateMyGamesTimeSpent1(gameId) { if (isUserValidFreeUserOrSubscriber()) { // MyGames nur für Abonnenten speichern if (userActivityTime - lastKeyBoardorMouseActivityTime <= 60000) { saveMyGames(gameId, 0 , 1 ) ; } } } function updateMyGamesTimeSpentLevelBase(gameId, level) { if (isUserValidFreeUserOrSubscriber()) { // MyGames nur für Abonnenten speichern saveMyGames(gameId, 1, level); } } /* if (!es_basado_en_nivel) { var objGameNode = {}; objGameNode[IDjeu] = "ja" ; localStorage.setItem("einmal ausgeführt", JSON.stringify(objGameNode)); setInterval(function () { updateMyGamesTimeSpent1(gameId) }, 60000); } */ if (based_on_level) { var userActivityTime = Date.now(); // für Level-basierte Spiele. prüfen, ob Benutzeraktivität länger als 55 min vorhanden war 60000*55 = 3300000 if (userActivityTime - lastKeyBoardorMouseActivityTime <= 3300000) { var objGameNode = {}; objGameNode[gameId] = "non" ; var localgamestrate = "storagelocal-" + gameId + "-storagelocal" ; localStorage.setItem("einmal ausgeführt", JSON.stringify(objGameNode)); localStorage.setItem(localgamestrate, "nein"); 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=' ; } Rückgabe animatorpxUrl; } function displayCmgCheerpxLoadingScreen() { //todo: Breite and Höhe des Iframes verwenden //jQuery("#swfgame").parent().before("

Chargement...

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

Votre jeu Flash est en cours de chargement
cela peut prendre plus de temps que d'habitude

'); } // Fonction d'écran de chargement pour l'affichage à écran étroitCmgCheerpxLoadingScreenResized(){ jQuery("#swfgame").parent().before('

Votre jeu Flash est en cours de chargement
cela peut prendre plus de temps que d'habitude

'); } fonction closeCmgCheerpxLoadingScreen() {jQuery("#cmg-cheerpxloading-screen").remove(); } // Élimination de la Schmalbildschirm-Ladebildschirmfunktion closeCmgCheerpxLoadingScreenResized(){ if ($("#cmg-cheerpxloading-screen-resized-size").length > 0){ jQuery("#cmg-cheerpxloading-screen - resized-resized ") .entfernen(); } } fonction cmg_remove_madg() {jQuery("#afg_container").hide(); jQuery("#afg_preloader").hide(); jQuery("#Continue-Container").hide(); jQuery(".gamefield").show(); jQuery(".falseBtn").remove(); if(window.document.getElementById('swfgame') != null) { window.document.getElementById('swfgame').setAttribute("tabindex","0"); ventana.document.getElementById('swfgame').focus(); console.log("cmgAdBreak: swfgame setzt Iframe-Ansatz nach dem Schließen der Anzeige"); } Sinon if(window.parent.document.getElementById('html5game') != null){ window.document.getElementById('html5game').setAttribute("tabindex","0"); ventana.document.getElementById('html5game').focus(); console.log("cmgAdBreak: html5game setzt Iframe-Fokus nach dem Schließen der Anzeige"); } } /* * Timer-Funktionen für Interstitial-Anzeigen */ function gameInterstitialAdTimerAction() { gameInterstitialAdTimerDone = true; clearGameInterstitialAdTimer(); } function clearGameInterstitialAdTimer() { //console.log("cmgAdBreak: insdie clearGameInterstitialAdTimer " + gameInterstitialAdTimer + " " + interstitial_ad_refresh_interval + " der Timer ist abgelaufen, bereit zur Veröffentlichung von Anzeigen beim nächsten Aufruf von cmgGameEvent."); clearTimeout(gameInterstitialAdTimer); gameInterstitialAdTimer = null ; } /* * Exit entfernt Preroll et Display Game. Nom de la fonction précédente : removePrerollAndDisplayGame(). */ cmg_remove_padg_invoked = falsch; Fonction cmg_remove_padg() { if(cmg_remove_padg_invoked ) { return; } cmg_remove_padg_invoked = vrai ; //Timer-Logik für Interstitial-Anzeigen für Playwire if(typeof show_interstitial_ads != "undefined" && show_interstitial_ads) { console.log("inside cmg_remove_padg show_interstitial_ads " + show_interstitial_ads); gameInterstitialAdTimerDone = faux ; gameInterstitialAdTimer = setTimeout(function () { currentTime = new Date(); console.log("inside cmg_remove_padg gameInterstitialAdTimer startet Timer um: "+ currentTime); gameInterstitialAdTimerAction() }, interstitial_ad_refresh_interval); } console.log("dans cmg_remove_padg"); //die Homepage spielt immer noch das zuletzt gespielte Spiel - cmg_lpg var nonEmulatedFlashGame = false; if (typeof drupalSettings.cmatgame != "undefined" && typeof drupalSettings.cmatgame.swfembed != "undefined" && drupalSettings.cmatgame.swfembed != "" && typeof drupalSettings.cmatgame.flash_emulation != "undefined" && drupalSettings.cmatgame. flash_emulation == 0 && typeof drupalSettings.cmatgame.swfembed.swf != "undefiniert" && drupalSettings.cmatgame.swfembed.swf != "") { nonEmulatedFlashGame = true; } if (gameId && !nonEmulatedFlashGame && navigator.cookieEnabled && searchGamesById(gameId) != "") { localStorage.setItem("cmg_lpg", gameId); } settimebased(); prerollAdDisplayed = vrai ; //Dies wird aufgerufen, nachdem die Pre-Roll-Werbung abgeschlossen ist ; if (document.documentElement.clientWidth >= 960 - ( window.innerWidth-jQuery(document).width()) || ( window.innerWidth > 960 && typeof detectZoom == 'Objekt' && typeof detectZoom.zoom == 'Funktion ' && detectZoom.zoom() >=2) ) { prerollAdEnd = "dtp"; } Sinon {prerollAdEnd = "Mafia" ; } if (isRemoveAdSwfJWPLayer) { // entfernt Prescroll nur einmal } else { // protokolliert die aktuelle Zeit, um zu berechnen, wie viel Zeit der Benutzer mit dem Spielen des aktuellen Spiels verbracht hat currentTime = Date.now(); aktuellesZeitintervall = 0 ; // nur für zeitbasierte Spiele aufrufen // TODO Spielfortschritt speichern /*if (!is_level_based) { setInterval(function () { updateMyGamesTimeSpent(gameId) }, 20000); } */ jQuery("#mi-contenido").css("opacity", "1"); if (typeof intervalId !="undefined") { clearInterval(intervalId); } jQuery("#afg_container").hide(); jQuery("#afg_preloader").hide(); jQuery("#Continue-Container").hide(); jQuery(".gamefield").show(); if (!drupalSettings.cmatgame.swfembed) { // Breite, Höhe und Spieltyp of html5 game_width = jQuery("#html5game").attr("width"); hauteur_jeu = jQuery("#html5game").attr("hauteur"); type_juego = "html5" ; // IE-Erkennung und Versionserfassung 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 != "undefined") { var qLobby = getParameterByName("private-lobby"); var qPlay = getParameterByName("play"); var qXid = getParameterByName("xid"); if (typeof qLobby != "undefined" && typeof qXid != "undefined" && qLobby !== "" && qXid !== "" && html5_game_url.indexOf("hangman") && html5_game_url.indexOf("/home") ) { html5_game_url = html5_game_url.replace("/home", "/private-lobby/" +qLobby + "/" +qXid); } sinon si (typeof qPlay != "undefined" && typeof qXid != "undefined" && 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 != "undefined") { var qLobby = getParameterByName("private-lobby"); if (typeof qLobby != "undefined" && 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 !== 'undefined') { if (!cmg_flash_emulated_game()) { // console.log('flash n'est pas défini'); FlashDetectionMessage(); } } if (typeof swf_game_url !== 'undefined' && swf_game_url.indexOf("//") === 0) { swf_game_url = ventana.ubicación.protocolo + swf_game_url; } else if (typeof swf_game_url !== 'undefined' && swf_game_url.indexOf("//") > 0) { swf_game_url = swf_game_url.replace("http:", window.location.protocol); } if (typeof html5_game_url !== 'undefined' && html5_game_url.indexOf("//") === 0) { html5_game_url = ventana.ubicación.protocolo + html5_game_url; } else if (typeof html5_game_url !== 'undefined' && html5_game_url.indexOf("//") > 0) { html5_game_url = html5_game_url.replace("http:", window.location.protocol); } si (navigator.appName == "Microsoft Internet Explorer") {dh = wahr ; var ua = navigateur.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 = '

Hé, vous utilisez un ancien navigateur Web qui ne peut pas jouer à des jeux HTML5 comme celui-ci.

Passez à un autre navigateur ou profitez simplement d'un autre jeu coolmath !' +'div>

Obtenez un nouveau navigateur Internet Explorer de Microsoft

'; jQuery("#html5game").replaceWith(nothtml5browser); jQuery("#swfgame").replaceWith(nothtml5browser); } Sinon {Sandbox = jQuery("#html5game").attr("Sandbox"); if (sandbox !== indéfini) { sandbox = ' sandbox=\"' + sandbox + '\"'; } mehr {caixa de arena = ''; } if (cmg_is_mobile_device() || (document.documentElement.clientWidth < 960 - (window.innerWidth-jQuery(document).width()) && (typeof detectZoom == 'objet' && typeof detectZoom.zoom == 'função' && detectarZoom.zoom() < 2) ) ) { nuevoiframe = '

'; newswfiframe = '

'; } sinon { nouvelleiframe = '

'; newswfiframe = '

'; } if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { jQuery("#html5game").replaceWith(newiframe); if (cmg_flash_emulated_game() || drupalSettings.cmatgame.flash_emulation === "1") { jQuery("#swfgame").replaceWith(newswfiframe); } Sinon si (cmg_flash_emulated_game() && drupalSettings.cmatgame.flash_emulation === "2") {//console.log ("Cheerpx load 1"); game_width = drupalSettings.cmatgame.swfembed.swf.swf_1.width ; game_height = drupalSettings.cmatgame.swfembed.swf.swf_1.height; tipo_jogo = "html5" ; 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="isolé d'origine croisé" --> utiliser le test d'origine : crossorigin="use-credentials" newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); //console.log("Cheerpx remplace iframe 3"); } } } } else { if (!cmg_flash_emulated_game() && (drupalSettings.cmatgame.flash_emulation !== "1" || drupalSettings.cmatgame.flash_emulation !== "2" )) { // console.log('flash est indéfini'); /* CLSS-1614 pour HTML5 ou Respaldo - INICIO */ var html5_game_url = jQuery("#html5game").attr("src"); if (typeof html5_game_url !== 'indefinido') { game_width = jQuery("#html5game").attr("width"); jogo_altura = jQuery("#html5game").attr("altura"); tipo_juego = "html5" ; // Détection de IE et capture de vers 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); } si (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 (ie && ieVersion < 9) { nothtml5browser = '

Hé, vous utilisez un ancien navigateur Web qui ne peut pas jouer à des jeux HTML5 comme celui-ci.

Passez à un autre navigateur ou profitez simplement d'un autre jeu coolmath !' +'div>

Obtenez un nouveau navigateur Internet Explorer de Microsoft

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

'; if (typeof isRemoveAdSwfJWPLayer === "indefinido" || !isRemoveAdSwfJWPLayer) { jQuery("#html5game").replaceWith(newiframe); } } } else {/* CLSS-1614 pour Carregar html5 como Fallback - END */ flashDetectionMessage(); } } Else { // Jogo-Flash-Largura pour Jogo, Altura pour Jogo et Jogo-Typ game_width = drupalSettings.cmatgame.swfembed.swf.swf_1.width; game_height = drupalSettings.cmatgame.swfembed.swf.swf_1.height; 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= '+set_height ; newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); } Sinon si (drupalSettings.cmatgame.flash_emulation === "2"){ //cheerpx game_type = "html5"; if (navigator.appName == "Microsoft Internet Explorer") { es decir = verdadero; 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 = '

Non c'est

'; //console.log("Cheerpx empêche Fracht insgesamt, kein IE"); jQuery("#html5game").replaceWith(notCheerpxBrowser); } //console.log("Cheerpx carrega 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="isolé d'origine croisé" --> utiliser le test d'origine : crossorigin="use-credentials" newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); console.log("Cheerpx ersetzt iframe et tela de cargo"); afficherCmgCheerpxLoadingScreen(); } plus { 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'); { gameInstructions.innerHTML = '

Si ce jeu flash ne fonctionne pas sur votre ordinateur, laissezIcipour aider

' + Instruções do jogo.innerHTML; } } } isRemoveAdSwfJWPLayer = verdadero; } } } jQuery('.game-xp-bar-immerse-button').addClass('enabled'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block'); //Js-Unterschied ist zwischenzeitlich eine Visualisierung des großen verzögerten Bigscreenbtn = setTimeout(function () { if (jQuery('.btn.btn-primary.btn-sm.requestfullscreen').length && !jQuery('.btn. btn -primario.btn-sm.requestfullscreen').is(":visible")) { jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block' ) ; } }, 2000); if (typeof display_game_progressbar === "função"){ display_game_progressbar(gameId); } } function cmatgame_premium_subscription_game_display() { var cmatgame_subscriber = getCookie('cmg_sx'); var indice gültig = 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 = "subscribe-now -extranjero-scribirse" ; // } else { // SubscribeNowAlienClass = "subscribe-now-alien-signup" ; // } } FreeGamesExceeded = vrai; // Afficher anúncios a usuários anônimos no horário de 7 a. M. euh 13 p. m., mostrar anuncios a usuarios anónimos de 13 p. M. à 23h59. M. e de 00 a 7 a. a semana para a lógica do horário escolar, el día < 6 não mostra anúncios wheno o cookie GDPR is a configurado abd GDPR_All cookie no is configurado // Elimina anúncios pre-roll para usuários from lista branca if (validSubscriber || getCookie("cmg_wl " ) !== null) { // Wiederherstellen oder Fortschreiten des Benutzers retrieveUserProgress(); cmg_remove_padg(); jQuery(document).ready(função () { $('.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(document).ready(função () { $('.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) { // Wird für Google verwendet, nicht für Paywall de assinatura var ref = document.référent ; // Conta o número de jogos jogados pelo usuário é o mesmo userPlayedGames = 0; var userFreeGameList = [] ; var freeGameNid = 9841; 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 manuell setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24 * 60 * 60 * 1000); userFreeGameList = [freeGameNid] ; sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList)); // TODO Mostrar jogo cmg_remove_padg(); jQuery(documento).ready(função () { display_game_progressbar(gameId); }); } else { // userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"+currentMonth+currentYear)); Begrenzte Benutzereinstellungen (localStorage.getItem("userPlayedGames") !== null && getCookie('cmg_upg') !== null) { userPlayedGames = parseInt(localStorage.getItem("userPlayedGames")); } sonst { jogos jogados pelo usuário = 0; setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24 * 60 * 60 * 1000); } if (freeGameLimit != 0 && userPlayedGames < freeGameLimit && userFreeGameList.indexOf(freeGameNid) === -1) { userPlayedGames ++; FreeGamesExcedido = faux ; if (userFreeGameList.length > 0) { userFreeGameList = userFreeGameList.concat (freeGameNid); } Sinon { userFreeGameList = [freeGameNid] ; } localStorage.setItem("UsuarioJuegosJugados", usuarioJuegosJugados); sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList)); } Sinon { FreeGamesExceeded = vrai; } // console.log("Nombre de jeux que vous utilisez "+ userPlayedGames ); var referente gültig = falsch; var validGameSession = faux ; if (userFreeGameList.indexOf(freeGameNid) > -1) { validGameSession = true; } si (ref.match("google.com") !== null || ref.match("yahoo.com") !== null || ref.match("bing.com") !== null) { referencia válida = verdadero; } URL der Assinatur-Registrierung (); if (! validReferer && userPlayedGames >= freeGameLimit && ! validGameSession) { // Paywall-Abonnement // Anonimos-Blockade für die Stadt Nueva York de 0 à 7 a. M. e von 13 p. M. à 23h59. M. Google"); clearInterval(intervaloId); jQuery("#afg_container").remove(); jQuery(".instructions du jeu").remove(); var yaSubscriberText = '

Déjà abonné ?Accès

'; if (getCookie('cmg_l') != null) { yaSubscriberText = ''; } var En-tête = '

Connectez-vous pour continuer à jouer

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

INSCRIVEZ-VOUS MAINTENANT POUR CONTINUER À JOUER

'; } jQuery(".Feldspiel").html('

' + titre + '

La meilleure collection de jeux au monde
Pour la logique, le raisonnement et le plaisir.Abonnez-vous maintenant' + yaTexteAbonné + '

'); jQuery("#videoplayer").remove(); } else { // console.log("L'utilisateur peut être de Google ou est dans la limite de jeu gratuit "+ (freeGameLimit-userPlayedGames) ); // Afficher le jeu TODO cmg_remove_padg(); jQuery(document).ready(function() { display_game_progressbar(gameId); }); } } } } function unlockAllLevels() { trackEvent('Unlock All Levels category', 'Unlock All Levels button clicked', document.title); all level = '

niveaux déverrouillés

'; jQuery("#banner-assinante").replaceWith(todos os níveis); 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'; } Sinon si (/cmatgame.local|dev.coolmath.games.com/.test(window.location.hostname)) { cmgtargetdomain = window.location.protocol + 'stage.coolmath-games.com'; } if (game_type == "html5") { document.getElementById("html5game").contentWindow.unlockAllLevels(); } else { if (cmgorigidomain.test(window.location.hostname)) { document.getElementById("swfObjID").unlockAllLevels(); } Sinon { var receivergameFrame = document.getElementById("swfgame"); gData = neue Daten (); receivergameFrame.contentWindow.postMessage('unlockAllLevels', cmgtargetdomain); // TODO -- Définir la police pour la destination } } } function addSubToUnlockGAEvent() { trackEvent('Desbloquear todas as categories of nível', 'increver-se para desbloquear o botão pressionado', document.title); trackGoalVirtualPV('/virtual/unlock-button-click'); window.location.href = "https://www.coolmathgames.com/signup/b2df5a33?origin= /fr/0-pre-civilization-bronze-age&stual=1" } var immersive_mode_enabled = false; // Regras für den kostenlosen Test des großen Bildschirms valid_big_screen_ft() { validUserMode = false; cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Enregistrement 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; } } si (cmg_bsft <= 3) { validUserMode = true ; } retorna o modo de usuário válido ; } function immersive_mode_display_controller() { var validUserMode = false; if (getCookie('cmg_sx') !== null || getCookie("cmg_wl") !== null) { // meurent le meilleur Erfahrung für gewöhnliche Premium $('.game-xp-bar-immerse-button' ). addClass('Habilité'); jQuery('.btn.btn-primary.btn-sm.requestfullscreen').css('display', 'inline-block'); validUserMode = verdadeiro ; } else if (getCookie('cmg_fx') !== null) { // O teste gratuito é valido for usuários Freemium? si (valid_big_screen_ft()) {validUserMode = true ; } Sonst { validUserMode = true ; // console.log("O usuário atingiu o limit de FT. Mostrar botão de tela grande?"); } } else { // O teste gratuito é válido para usuários anônimos ? si (valid_big_screen_ft()) {validUserMode = true ; } } if (validUserMode && ! Immersive_mode_enabled) { Immersive_mode_enabled = true ; immersive_mode_display(); } } var bigScreenTimer = null ; tela grande ativa = falsch; function cmg_bigscreen_trackevent(type, trial_num) { if (jQuery('#big-screen-overlay-truex').length) { jQuery('#bigscreen-overlay-truex').hide(); } var tCat = 'Test de tela grande'; if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'sim') { var tCat = 'BigScreen-TrueX-Promo'; } var tUsr = 'Usuário anônimo'; 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 + 'teste' + número_teste + '-' + tipo; if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'sim') { tEvt = tUsr + ' TrueX Promo' + ' - ' + type; } else { if (núm_teste > 3) { tEvt = tUsr + 'não há mais tentativas ' + ' - ' + tipo; } } if (Ziffer === 'entrar' || Ziffer === 'sair' || Ziffer === 'fechar registro' || Ziffer == 'fechar promoção' || Ziffer == 'sair da tela grande' ) {trackEvent(tCat, tEvt, document.title); } else if (digite === 'exit2signup' || digite === 'increver-se') { if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'yes') { var sLeg = get_premium_access_leg_desc('849ef809 ') ; if (typeof getCookie === 'função' && 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 === 'função' && 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 = falsch; function cmg_display_login_page() { //console.log("O link de login no pop-up for clicado"); popover_login_click = verdadeiro; if (jQuery('#popover' + gameId).length) { jQuery('#popover' + gameId).remove(); hover_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(); hover_hover_on = 0 ; } // Evento de Rastreamento do tipo 'record' if (typeof cmg_bsft === 'undefined') { cmg_bsft = 0; si (getCookie('cmg_fx') === null) { cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; } sinon si (getCookie('cmg_uid') !== null && getCookie('cmg_bsft_' + getCookie('cmg_uid')) !== null) { cmg_bsft = getCookie('cmg_bsft_' + getCookie('cmg_uid')); } } cmg_bigscreen_trackevent('registrar', cmg_bsft); if ((getCookie('cmg_sx') === null && getCookie('cmg_wl') === null)) { myStopFunction(); } // Vérifiez que vous testez A/B et verfügbar if (typeof signup_abtest_cmg_bsft !== 'undefined') { //variant = signup_abtest_cmg_bsft; } if (type de variante === 'indefinido' || variante === '') { variante = '/16'; // 14b, 15c, 16 } if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes' && jQuery('#large-screen-overlay').length) { jQuery('#large-screen-overlay- tela grande' ).show(); } Sinon si (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'sim') { var big_screen_url = ''; if (getCookie('cmg_fx') === null) { // big_screen_url = '/premium-access/1bb008bd' + variation + '?ts='+new Date().getTime();//Testpläne bigscreen // big_screen_url = '/premium-access/849ef809' + variante + '?ts=' + new Date().getTime(); // Plan anônimo BSWOJ if (drupalSettings.language == 'en') { big_screen_url = '/premium-access/6ea95de6' +variant + '?ts='+new Date().getTime();//Plan anônimo de BSWOJ } else{ big_screen_url = '/'+drupalSettings.language+'/premium-access/6ea95de6' + Variante + '?ts='+new Date().getTime();//BSWOJ Anon Plan } } else { / / big_screen_url = '/premium-access/7859e605' + Variante + '?ts='+new Date().getTime();//Benutzerregistrierungsplan für BSFT if (drupalSettings.language == 'en') { big_screen_url = ' /perfil /acesso-premium/e180e28d' + variante + '?ts=' + new Date().getTime(); // Benutzerregistrierungsplan BSWOJ } else{ big_screen_url = '/'+drupalSettings.language+'/profile/premium-access/e180e28d' + Variante + '?ts=' + new Date().getTime(); // Plan d'utilisation enregistré BSWOJ } } if (variant == 'thank you') { if (drupalSettings.language == 'en') { big_screen_url = '/signup/thank-you/overlay?ts=1596827222&src=wc&origin= /accesso premium/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 : fixe ; z-index : 100000 ; gauche : 0 ; haut : 0 ; largeur : 100 % ; hauteur : 100 % ; débordement : auto ; couleur d'arrière-plan : rgb( 0,0,0); Kerngrund : rgba(0,0,0,0,4);" min-height="1040px"' ; var ovc_css = 'estilo="margem : auto ; preenchimento : 10px ; largura : 850px ;" min-height="540px"' ; var iframe_overlay = '

'; // TODO Agregue ise iframe no local correto ao qual deve ir. jQuery('.global-wrapper').before(iframe_overlay); // À FAIRE 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() ;}); } plus { 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(); // Benutzerregistrierungsplan im BSWOJ } else{ big_screen_url = '/'+drupalSettings.language+'/profile/premium-access/e180e28d' + Variante + '?ts=' + new Date().getTime(); // Planen Sie die übliche Registrierung im BSWOJ } } if (variant == 'gracias') { if (drupalSettings.language == 'en') { big_screen_url = '/signup/thank-you/overlay?ts=1596827222&src=wc&origin = /acesso premium/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 : fixe ; z-index : 100000 ; gauche : 0 ; haut : 0 ; largeur : 100 % ; hauteur : 100 % ; débordement : auto ; couleur d'arrière-plan : rgb( 0,0,0); ou Fond : rgba(0,0,0,0.4);" min-altura="1040px"' ; var ovc_css = 'estilo="margen : automatique ; relleno : 10px ; ancho : 850px ;" min-altura="540px"' ; var iframe_overlay = '

'; // TODO Ajouter cet iframe au bon endroit. jQuery('.global-wrapper').before(iframe_overlay); // À FAIRE jQuery('#big_screen_iframe').css('height', '800px'); jQuery('#Superposition grand écran').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 pas d'affichage après le premier test bigScreenActive = false; cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // N'augmente pas le gestionnaire de sortie // Utilisateur connecté 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); } Sinon { cmg_bsft = 0 ; } } if (cmg_bsft >= 3 && getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { // Redirige l'utilisateur vers la page d'inscription if (jQuery.fullscreen.isFullScreen( ) ) { jQuery.fullscreen.exit(); } if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { // suivre l'événement de type 'exit2signup' cmg_bigscreen_trackevent('exit2signup', cmg_bsft); display_cmg_overlay_signupform(superposition); } Sinon {cmg_bigscreen_trackevent('Sortie grand écran', cmg_bsft); } } else if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { myTimerAction(); } if (minuterie grand écran) { clearTimeout (minuterie grand écran); minuterie grand écran = zéro ; } if (cmg_bsft < 3) { // Suivre l'événement de 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) { // Utilisateur connecté 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 } sinon { cmg_bsft = 3; // 3011 } // Requête Ajax pour mettre à jour l'url de l'objet utilisateur = "/ajax/cmgbsft/" + getCookie('cmg_uid') + '/' + cmg_bsft; // + '?' + nouvelle date().getTime(); état = 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 { // utilisateur anonyme // 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 (temps grand écran); minuterie grand écran = zéro ; }} var immerse_hover_on = 0 ; var immerse_hover_in = 0 ; var big_screen_msg_on = 0 ; function immersive_popover_msg() { var popover_msg = "Nouvelle fonctionnalité premium ! Essayez GRATUITEMENT maintenant" ; if ((getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null)) { popover_msg = "Nouvelle fonctionnalité premium ! Essayez-la maintenant !" ; } Sinon { cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Utilisateur enregistré 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); } Sinon { cmg_bsft = 0 ; } } // setCookie('cmg_bsft', cmg_bsft, 365*24*60*60*1000); Activer la fonction de minuterie après que le grand écran a été actif pendant une minute if (cmg_bsft === 1) { popover_msg = "2 essais gratuits restants" ; } else if (cmg_bsft === 2) { popover_msg = "1 essai gratuit restant" ; } sinon si (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 = 'GRAND ECRAN est une fonctionnalité premium.
S'il te plaîtInscription'; } else { popover_msg = 'GRAND ÉCRAN est une fonctionnalité premium.
S'il te plaîtInscriptionÖAccès.'; } } } volver popover_msg ; } var cmg_bs_popover_prefix = '

JOUEZ APRÈS QUE 30 SECONDES D'AFFICHAGE SUR LE GRAND ÉCRAN

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

INTERAGISSEZ AVEC CETTE ANNONCE POUR CONTINUER

'); // .css('marge supérieure', '150px'); }, 25 * 1000); }); truexAd.onCredit(function (engagement) { // L'utilisateur a passé 30 secondes et a interagi au moins une fois log("Big Screen Truex Ad Credit"); trackEvent('Big Screen Promotion-TrueX', 'Regarder une vidéo Sponsorisé : Accredited TrueX Ad ' , titre du document); //

texte à écrire ▶

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 === 'undefiniert' || typeof bigScreenActive !== 'undefiniert' && !bigScreenActive) { jQuery('#big-screen-signup-container-id').html(""); jQuery('#big-screen-overlay-truex').remove(); cmg_start_game_full_screen('truex'); } } // console.log (Termin); }); truexAd.onClose(function (activity) { // Anzeigenblockregistrierung durch Nutzer geschlossen ("Bigscreen Truex Ad close"); trackEvent('BigScreen-TrueX-Promo', 'View a Sponsored Video: TrueX Ad Closed', document .title ); containerClose(); requestTrueXAdsAndDisplay(client); }); truexAd.onFinish(function (activity) { // Benutzer hat das Ende des Anzeigenprotokolls erreicht ("True Large Screen Ad Completion") ); trackEvent('TrueX Large Screen Promotion', 'Sehen Sie sich ein gesponsertes Video an: TrueX Ad Completed ' , document.title ); jQuery('#big-screen-signup-container-id').html(""); jQuery('#big-screen-truex-overlay').remove(); // voller Bildschirm cmg_start_game_full_screen(" wahrx "); }); truexAd.onMessage(fonction (charge utile) { // log("onMessage = " + charge utile); }); // TrueX-Triggerpunkt-Impression verfolgen // client.trackTriggerPointImpression(truexAd); // das Signatur-Klickereignis verarbeiten // TrueX Opt-in zum DOM hinzufügen if (jQuery("#cmg-big-screen-truex-activity").length) { var truex_container = document.getElementById("cmg-big - Anzeige -truex-Aktivität" ); document.getElementById("cmg-big-screen-truex-activity").onclick = function () { // truex_preroll_display_handler(); event.preventDefault(); trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Schaltfläche gedrückt', document.title); jQuery('.big-screen-container-options').hide(); if (truex_ad_available && typeof client !== 'undefined') { // BigScreen-TrueX-Promo log("Truex-Großbildanzeige verfügbar. Truex-Aktivität anzeigen"); trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Laden von TrueX-Anzeigen', document.title); client.loadActivityIntoContainer(truexAd, 'big-screen-signup-container-id', { width: "960px", height: "540px" }); // show_big_screen_preroll_ad();//preroll testen } else { log("True big screen ad ist nicht verfügbar. Zeige stattdessen Preroll-Video"); // À FAIRE : Anzeigen Pre-Roll truex_overlay_preroll_ad_display = true ; show_big_screen_preroll_ad(); trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Prequel-Werbung wird geladen', 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("Auf die große Bildschirmschaltfläche wurde geklickt"); event.preventDefault(); // jQuery('.big-screen-options-container').hide(); jQuery('#big-screen-overlay-truex').remove(); show_cmg_overlay_signupform(); } ; } } function truex_preroll_display_handler() { // log("Trex-Werbung ist verfügbar. Truex-Aktivität anzeigen"); event.preventDefault(); trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Schaltfläche gedrückt', document.title); jQuery('.big-screen-container-options').hide(); if (truex_ad_available && (Kundentyp !== 'undefiniert' || cmg_truex_client != null) ) { // BigScreen-TrueX-Promo if (Kundentyp == "undefiniert") { client = cmg_truex_client; truexAd = cmg_truexAd ; } trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Laden von TrueX-Anzeigen', document.title); client.loadActivityIntoContainer(truexAd, 'big-screen-signup-container-id', { width: "960px", height: "540px" }); // show_big_screen_preroll_ad();//preroll testen } else { // log("Die Truex-Werbung ist nicht verfügbar. Zeigen Sie stattdessen das Preroll-Video"); // À FAIRE : Anzeigen Pre-Roll truex_overlay_preroll_ad_display = true ; show_big_screen_preroll_ad(); trackEvent('BigScreen-TrueX-Promo', 'Sehen Sie sich ein gesponsertes Video an: Prequel-Werbung wird geladen', document.title); } } function containerClose() { // log("containerClose aufgerufen."); } function log(msg) { console.log("CMG [%s] - %s", new Date().toLocaleTimeString(), msg); } cmg_truex_promo_events_added = 0 ; function display_big_screen_truex_options_overlay() { // TrueX Ad Client avec Hash-Optionen initialisieren trackEvent('BigScreen-TrueX-Promo', 'BigScreen-Schaltfläche angeklickt', document.title); //console.log("Klicken Sie auf die große Bildschirmschaltfläche an Position 1 -"+ neues Datum()); if (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null || getCookie('cmg_editor') !== null ) { event.preventDefault(); //console.log("Clicken Sie auf die Schaltfläche für den großen Bildschirm -"+ neues Datum()); cmg_start_game_full_screen('truex'); } sonst { network_user_id = getCookie('_ga'); if (typeof network_user_id !== 'undefined' && network_user_id !== '') { network_user_id = network_user_id.replace('GA', 'cmg').replaceAll("\.", ""); } // TRUEX-Test-Hash // 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 !== 'undefined') { truex.client(truex_options, function (client) { requestTrueXAdsAndDisplay(client); }); } var ov_css = ' style="display:none; position : fixe ; z-index : 100000 ; gauche : 0 ; haut : 0 ; largeur : 100 % ; hauteur : 100 % ; débordement : auto ; couleur d'arrière-plan : rgb( 0,0,0); Hintergrundfarbe : rgba(0,0,0,0,7);" min-height="1040px" '; var ovc_css = ' style="margin : auto ; margin-top : 200px ; padding : 10px ; width : 424px ; height : initial ; 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(); mauvais retour ; --> ci-dessous" var truex_options2 = "

Regarder une vidéo sponsorisée

"; var truex_optionsOR = "

"; var truex_options3 = "

"; if (getCookie("cmg_sac") == "non"){ 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 = '

'+'

' + // '

continuer

'+ //'15'; '

'; var bs_truex_options = '

'+'

'+'

'+'' + truex_options + '

'+'

'+'

' + truex_options_heading + '

' + preroll_container + '

'+'

'; // TODO Agregue ise iframe no local correto ao qual deve ir. jQuery('.global-wrapper').before(bs_truex_options); // À FAIRE jQuery('#big_screen_iframe').css('altura', '800px'); jQuery('.conteúdo de opções de tela grande').show(); jQuery('#pantalla-grande-superposition-truex').fadeIn(1000); // si (!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 ();}); // } } } Fonction show_big_screen_preroll_ad() { event.preventDefault(); jQuery('#big-screen-truex-header-text').css('padding-top', '14px').html("

JOUEZ SUR GRAND ÉCRAN APRÈS CETTE ANNONCE

"); 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; } // prerollUrls var prerollUrls = /0\-testing/; if (! validSubscriber) { // Prerolls anzeigen window.scrollTo(0, 0); var modal = document.getElementById( 'large -screen-pre-roll-container'); // modal.style.display = 'block'; // den Refresh-Timer löschen 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 (window type.PW_CMG != "undefined") { var AuctionCallback = function(displayAds, videoUrl ) { application = new ap Likativ (displayAds , URL de la vidéo) ; } ; Fenster. PW_CMG.startAuction(AuctionCallback); } else { // Adblock-App = neue App (false, adTagUrl); } bs_preroll_timer = 15 ; bs_preroll_intervalId = setInterval(fonction () { bs_preroll_timer --; jQuery('#big-screen-truex-header-text').html('

JOUEZ APRÈS CETTE ANNONCE SUR GRAND ÉCRAN : '+bs_preroll_timer+'

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

JOUEZ MAINTENANT SUR LE GRAND ÉCRAN ▶

'); document.getElementById("truex-bigscreen-activate-id").onclick = function () { event.preventDefault(); $('a.requestfullscreen>span.big-screen-popover-span').html('Reproduire pantalla grande'); if (typeof bigScreenActive === 'unbestimt' || typeof bigScreenActive !== 'unbestimt' && !bigScreenActive) { jQuery('#big-screen-signup-container-id').html(""); jQuery('#pantalla-grande-superposition-truex').remove(); start_full_screen_sin_anuncio = faux ; cmg_start_game_full_screen('truex'); } } clearInterval(bs_preroll_intervalId); } }, 1000); } } // Fonction finale TRUEX cmg_start_game_full_screen(cmgsource) { myStopFunction(); // Actualisation des annonces bigScreenActive = true ; // console.log("Iniciando tela completea"); if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { // trackEvent('BigScreen-Trial', 'Bigscreen activé', document.title); cmg_bigscreen_trackevent('Ingresar', cmg_bsft); bigScreenTimer = setTimeout(função () { bigScreenTimerAction(); }, 60 * 1000); } else { // trackEvent('BigScreen-TrueX-Promo', 'Bigscreen activé', document.title); cmg_bigscreen_trackevent('Ingresar', 0); } var elem = document.getElementById('block-system-main'); if (jQuery('html').hasClass('mobile-device')) {requestFullscreenModal(elem, document.title); falsch retorno; } si (elem.requestFullscreen) {elem.requestFullscreen(); } sinon si (elem.mozRequestFullScreen) { /* Firefox */ elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari et Opera */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE/Edge */ elem.msRequestFullscreen(); } sonst {requestFullscreenModal(elem, document.title); falsch retorno; } ajustarAnchoAlturaJuego(); } fonction immersive_mode_display() {var popover_msg = immersive_popover_msg(); var imersão_prefijo = ''; // ne pas ajouter de titre var immerse_suffix = ''; var immersion_html = "Afficher l'annonce en plein écran"; var immersion_html_sub = "JEUX SUR GRAND ÉCRAN"; si (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'); } // cliquez sur jogo var elem = document.getElementById('block-system-main'); // ouvre ou jogo em tela cheia $('.immerse -button .requestfullscreen').on('click', function (e) { e.preventDefault(); //console.log("função do botão de mergulho onclick handler" + newdate()); // siehe eine Visualisierung móvel for exibida completea tela sem anúncios // if ($("html").hasClass("mobile-device")) { // cmg_start_game_full_screen(); // } if (/\/test-game\//.test ( window.location.path)){ //console.log("page de test"); cmg_start_game_full_screen(); } if (cmg_stop_truex_promo === '' || cmg_stop_truex_promo !== 'yes') { // À FAIRE : aller de l'avant non ? wenn (home_full_screen_no_ad) { display_big_screen_truex_options_overlay(); } Sinon {cmg_start_game_full_screen(); } } zurückgeben ; if (jQuery('#popover' + gameId).length) { jQuery('#popover' + gameId).remove(); hover_hover_on = 0 ; } cmg_bsft = getCookie('cmg_bsft') !== null ? parseInt(getCookie('cmg_bsft')) : 0; // Enregistrement 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_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { if (cmg_bsft < 3) { // faixa 'enter' event 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 limit of FT"); //Entragungsformel erstellen if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null && !popover_login_click) { display_cmg_overlay_signupform(); } // Ereignis von Rastreamento do tipo 'log' // cmg_bigscreen_trackevent('log', cmg_bsft+1); } } else { //Tele grande - Integração TrueX //Condições TODO para verificar or quando mostrar a sobreposição if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null) { // console .log("O botão da tela grande foi clicado. Mostrar sobreposição com opções"); show_large_screen_truex_options_overlay(); } else { if (cmg_bsft < 3) { // rastrear eventto do tipo 'enter' cmg_bigscreen_trackevent('enter', cmg_bsft + 1); } si (getCookie('cmg_sx') !== null || getCookie('cmg_wl') !== null || cmg_bsft < 3) { cmg_start_game_full_screen(); } else { //console.log("BIG SCREEN Você atingiu um limit of FT"); //Eintragungsformel erstellen if (getCookie('cmg_sx') === null && getCookie('cmg_wl') === null && !popover_login_click) { //display_cmg_overlay_signupform(); } // Ereignis von Rastreamento do tipo 'log' // cmg_bigscreen_trackevent('log', cmg_bsft+1); } } } }); if (cmg_stop_truex_promo !== '' && cmg_stop_truex_promo === 'yes') { $('.immerse-button .requestfullscreen').hover(function () { // passer la souris dessus // console.log("Botão da tela grande passe o mouse sobre "+nova data()); 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-screen popover-span") .after(popover_html); var largeur = $(".immerse-button").find('.requestfullscreen').width(); var hauteur = $(.immerse-button").find ( ' .popover' ).height(); var xPos = '-' + (largura/2); var yPos = '-' + (altura + 5); $(.divebutton").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("Passe do popover para "+ new Date()); big_screen_msg_on = 1 }, function () { //console.log ( „Mensa ge m popover hover" + n nouvelle date()); big_screen_msg_on = 0 ; }); } } }, function () { // Passe à la souris simplement // console.log("Tela grande passe à la souris simplement au bouton "+ new date()); dip_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 o gogo para tela cheia $('#block-system-main .close-full-screen').on('click', function (e) { e.preventDefault(); immersive_mode_exit_handler(); jQuery. Vollbild .saïda(); }); $('body').keypress(function (e) { if (e.which == 27) { if ($('.summer-button .requestfullscreen').length && type of bigScreenActive !== 'undefined' && bigScreenActive ) {immersive_mode_exit_handler(); // jQuery.fullscreen.exit(); } } }); var screen_change_events = "webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange" ; // Classe alternative de Janela von 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 - bouton ').css('top', xpbarPos + "px");if ($("body").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 e bar xp iframe.style.width = gameWidth + "px" ; iframe.s tyle.height = Fensterhöhe + "Pixel" ; var xpbarPos = Fensterhöhe + 10 ; $('.game-xp-bar-immerse-button').css('up', xpbarPos + "px"); } Else if ($("body").hasClass("game-full-screen")) {// Anwendung Nova Largura et Altura mit iFrame et Barra XP iframe.style.width = windowWidth + "px"; iframe.style.height = windowHeight + "px" ; var xpbarPos = Fensterhöhe + 10 ; $('.game-xp-bar-immerse-button').css('up', xpbarPos + "px"); } */ if (jQuery('html').hasClass('mobile-device')) { jQuery("#block-system-main #html5game").attr('src', jQuery('#playNowButton'). atributo('href')); } $("corpo").addClass('immersiveActive'); elem.classList.add('janela em tela cheia'); // Hinweis zum Zoomen chkZoomValues(); // Largura e altura justadas do iframe do jogo adjustWidthHeightGame(); } else { if (jQuery('html').hasClass('mobile-device')) { jQuery("#block-system-main #html5game").removeAttr('src'); } Immersive_mode_exit_handler(); $("corpo").removeClass('immersiveActive'); elem.classList.remove('janela de tela cheia'); // Zoomwarnung entfernen $('.zoomdalert').remove(); $('#html5jogo').removeAttr("estilo"); $('#swfgame').removeAttr("estilo"); $('.game-xp-bar-immerse-button').removeAttr("estilo"); } }); } function setGameWidthHeight() { var iframe = document.getElementById('html5game') ? document.getElementById('html5game') : document.getElementById('swfgame'); var iframeWidth = parseInt(iframe.width); var iframeHeight = parseInt(iframe.height); // Var Largura da Janela = parseInt (screen.width); // var windowHeight = parseInt(screen.height) - 75; var largura da janela = parseInt($(window).width()); var windowHeight = parseInt($(window).height()); var xpbarPos = (windowHeight + 75 - iframeHeight) / 2 + iframeHeight + 10 ; $('.game-xp-bar-immerse-button').css('up', xpbarPos + "px"); if ($("body").hasClass("game-scalable")) { if (iframeHeight > windowHeight) { var ratio = iframeHeight / windowHeight; } sonst { var ratio = windowHeight / iframeHeight ; } // Berechne eine Largura von Jogo com base na altura von Janela var gameWidth = iframeWidth * ratio; // Anwendung Nova Largura und Altura com iframe and bar xp iframe.style.width = gameWidth + "px"; iframe.style.height = windowHeight + "px" ; var xpbarPos = Fensterhöhe + 10 ; $('.game-xp-bar-immerse-button').css('up', xpbarPos + "px"); } Else if ($("body").hasClass("game-full-screen")) {// Anwendung Nova Largura et Altura mit iFrame et Barra XP iframe.style.width = windowWidth + "px"; iframe.style.height = windowHeight + "px" ; var xpbarPos = Fensterhöhe + 10 ; $('.game-xp-bar-immerse-button').css('up', xpbarPos + "px"); } } function fitWidthHeightModalGame(is_resize) { var iframe = $('#immersiveModal').find('#html5game'); var iframeWidth = parseInt(iframe.attr('width')); var iframeHeight = parseInt(iframe.attr('height')); var time_out = (is_resize === vrai) ? 500:0 ; // setTimeout(fonction(){ var wdWidth = parseInt($(window).width()); var wdHeight = parseInt($(window).height()); var oTwdWidth = parseInt($(window).outerWidth( )); var oTwdHeight = parseInt($(window).outerHeight()); var windowWidth = (oTwdWidth > wdWidth) ? oTwdWidth : wdWidth ; var windowHeight = (oTwdHeight > wdHeight) ? oTwdHeight : wdHeight ; if ($("body ").hasClass("game-scalable")) { if (iframeHeight > windowHeight) { var ratio = iframeHeight / windowHeight; } else { var ratio = windowHeight / iframeHeight; } // Calcule une longueur de jeu avec une autre base jogo window var gameWidth = iframeWidth * ratio; // applique nova largura e altura com iframe iframe.css("width", windowWidth); iframe.css("height", windowHeight); } else if ($("body") .hasClass(" jogo -tela cheia")) { iframe.css("largura", largura da janela); iframe.css("altura", altura da janela); } // }, time_out); } // Ajusta a largura/altura do jogo se a tela girar da janela vertical para a horizontal. ($("body").hasClass("isFullScreen")) { ajustaGameWidthHeight(); } if ($("body").find("#immersiveModal").length) { ajustaGameModalHeightWidth(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 ou prerollAdDisplayed //console. log("CMGResize : Gamenode-Inline-Redimensionierung für Handys für Desktops und Spiele ohne Registrierung. ALL - Vorangegangene Aktualisierung und Suche - "+nova data()); displayPrerollAd_Desktop(); //TODO: 21/06/2022 Anúncios não são exibidos e, portanto, o jogo após //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. Mostrar jogo - "+nova données ()); cmg_remove_padg(); } } }, FAUX); var cmg_mmg_html = ''; var cmg_mmg_swf_html = ''; var cmg_game_modal_attached = falsch; Fonction AttachModalHtml(Element, Titel) { cmg_game_modal_attached = true; var elem = document.getElementById('block-system-main'); html = '

'; $('cuerpo').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("#html5game").attr("Sandbox"); if (sandbox !== indéfini) { sandbox = ' sandbox=\"' + sandbox + '\"'; } mehr {caixa de arena = ''; } novo marco flottante = '

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

'; } newswfiframe = '

'; si (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 = '

'; } Sinon si (drupalSettings.cmatgame.flash_emulation === "2"){ //ruffle //console.log("Cheerpx load 3"); tipo_jogo = "html5" ; game_width = drupalSettings.cmatgame.swfembed.swf.swf_1.width ; game_height = drupalSettings.cmatgame.swfembed.swf.swf_1.height; tipo_jogo = "html5" ; 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 ; newswfiframe = '

'; jQuery("#swfgame").replaceWith(newswfiframe); //console.log("Cheerpx remplace iframe 2"); } } } } fonction requestFullscreenModal(elemento, título) { $("#immersiveModal").addClass('modal fade show full-screen-modal').css({"display":"block", "z-index" :10000}); $('cuerpo').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) ; } plus { 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', função (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'); } }); ajustarAnchoAlturaModalJuego(faussi); if (Navigationstyp !== "indefinido" && Navegador == "Microsoft Internet Explorer") { if ("função" === typeof 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'); }

Ignorer les publicités - être récompensé

continuer15

Cliquez sur l'icône de l'extension Ad Blocker en haut
zone droite de la fenêtre du navigateur.

'+'

  • 2

    Sélectionnez "Ne pas exécuter sur ce domaine" ou similaire
    Option à désactiver pour toutes les pages coolmath.

  • '+'

  • 3

    rafraîchir la page


    Vous rencontrez des difficultés ou avez besoin de plus d'informations ? Cliquez ici
  • ' + '' + '

    '+'

    L'âge du bronze avant la civilisation - Jouez maintenant sur Coolmath Games (11)

    '+'

    References

    Top Articles
    Latest Posts
    Article information

    Author: Sen. Ignacio Ratke

    Last Updated: 08/24/2023

    Views: 6541

    Rating: 4.6 / 5 (56 voted)

    Reviews: 95% of readers found this page helpful

    Author information

    Name: Sen. Ignacio Ratke

    Birthday: 1999-05-27

    Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

    Phone: +2585395768220

    Job: Lead Liaison

    Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

    Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.