new file: Files/flashplayer_32_sa.exe new file: favicon.ico new file: globe.gif new file: imgs/download.png new file: imgs/zuck.jpg new file: index.html new file: other.ico new file: script.js new file: site.webmanifest new file: sitemap.html new file: styles/backround.css new file: styles/border.css new file: styles/fonts/Titillium_Web/OFL.txt new file: styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf new file: styles/fonts/webfontkit-20221027-163353/generator_config.txt new file: styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2 new file: styles/fonts/webfontkit-20221027-165950/generator_config.txt new file: styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2 new file: styles/style.css new file: tools/2048/.gitignore new file: tools/2048/.jshintrc new file: tools/2048/CONTRIBUTING.md new file: tools/2048/LICENSE.txt new file: tools/2048/README.md new file: tools/2048/Rakefile new file: tools/2048/favicon.ico new file: tools/2048/index.html new file: tools/2048/js/animframe_polyfill.js new file: tools/2048/js/application.js new file: tools/2048/js/bind_polyfill.js new file: tools/2048/js/classlist_polyfill.js new file: tools/2048/js/game_manager.js new file: tools/2048/js/grid.js new file: tools/2048/js/html_actuator.js new file: tools/2048/js/keyboard_input_manager.js new file: tools/2048/js/local_storage_manager.js new file: tools/2048/js/tile.js new file: tools/2048/meta/apple-touch-icon.png new file: tools/webretro/cores/neocd_libretro.js new file: tools/webretro/cores/neocd_libretro.wasm new file: tools/webretro/cores/nestopia_libretro.js new file: tools/webretro/cores/nestopia_libretro.wasm new file: tools/webretro/cores/o2em_libretro.js new file: tools/webretro/cores/o2em_libretro.wasm new file: tools/webretro/cores/opera_libretro.js new file: tools/webretro/cores/opera_libretro.wasm
1 line
7.3 KiB
JavaScript
1 line
7.3 KiB
JavaScript
"use strict";!function(e){function t(e,t){console.log("[CloudAPI "+c+"] "+e,t)}function n(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}function o(t){var n=document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.href="//cdn.wanted5games.com/api/game.css",n.appendChild(o);var a=document.createElement("div");a.setAttribute("id","cg-background");var i=document.createElement("div");if(i.setAttribute("id","cg-splashscreen"),t.image&&t.background&&(a.setAttribute("style","background: "+t.background+";"),i.setAttribute("style","background:"+t.background+" url('"+t.image+"') center no-repeat;background-size:80%;")),document.body.appendChild(a),document.body.appendChild(i),i.addEventListener("mousedown",function(e){e.stopPropagation()}),i.addEventListener("mouseup",function(e){e.stopPropagation()}),i.addEventListener("click",function(n){n.stopPropagation(),h.links.active()&&t.link&&e.open(t.link),h.links.active()&&!t.link&&e.open("http://wanted5games.com/play?utm_source="+t.distribution+"&utm_medium=onlinegame&utm_content=splash&utm_campaign=html5game")}),t.sound){var s=document.createElement("audio");s.setAttribute("id","cg-sound"),s.setAttribute("autoplay",!0);var r=document.createElement("source");r.setAttribute("src",t.sound),r.setAttribute("type","audio/mpeg"),s.appendChild(r),document.body.appendChild(s)}i.addEventListener("animationend",function(){a.setAttribute("style","display:none;"),i.setAttribute("style","display:none;")})}function a(){return u["ad-rotation"]?u["ad-timer"]&&Math.round((new Date).getTime()/1e3)-m["ad-timer"]>u["ad-timer"]?(t("the ad-timer is higher then "+u["ad-timer"]),m["ad-count"]=0,m["ad-timer"]=Math.round((new Date).getTime()/1e3),"ad-timer"):m["ad-count"]==u["ad-rotation"]-1?(t("The ad-count is equal to (ad-rotation - 1)"),m["ad-count"]=0,m["ad-timer"]=Math.round((new Date).getTime()/1e3),"ad-count"):(m["ad-count"]=m["ad-count"]+1,!1):(t("No ad-rotation config!"),!1)}function i(){for(var e=[],t=document.getElementsByTagName("link"),n=0;n<t.length;n++)t[n].rel.indexOf("icon")>-1&&e.push({sizes:!!t[n].sizes&&t[n].sizes.value,href:t[n].href,rel:t[n].rel});return!!e.length&&e}function s(n,a){switch(n){case"GAME_CONFIG":var a=JSON.parse(a);if(t("config",a),u["ad-rotation"]=a["ad-rotation"],u["ad-system"]=a["ad-system"],u["ad-play"]=a["ad-play"],u["ad-timer"]=a["ad-timer"],u.distribution=a.distribution,u.portal=a.portal,u["links-active"]=a["links-active"],u.logos=a.logos,u["logos-active"]=a["logos-active"],u.links=a.links,u.plugins=a.plugins,u.scores=a.scores,0==l&&165!=u.portal&&448!=u.portal&&o({link:a["splash-link"],image:a["splash-image"],background:a["splash-color"]}),u.plugins&&u.plugins.minijeugos){e.mpConfig={game:u.distribution.substring(0,u.distribution.indexOf("-en-s")),partner:"cloudgames"};var i=document.createElement("script");i.src="https://ext.minijuegosgratis.com/external-host/main.js",document.body.appendChild(i)}if(u.plugins&&u.plugins.sanoma){var s=function(e){return e.stopImmediatePropagation(),!0};e.sanoma_account_global_config={api_key:u.plugins.sanoma.api_key,screenset_prefix:u.plugins.sanoma.screenset_prefix,events:{init:function(){},on_screen_loaded:function(){document.body.style.overflow="scroll",document.body.style.position="relative",document.body.addEventListener("touchmove",s)},on_screen_close:function(){document.body.style.overflow="hidden",document.body.style.position="",document.body.removeEventListener("touchmove",s)}}};var r=document.createElement("script");r.src="//account.sanomaservices.nl/staging/js/sanoma_account.min.js",document.body.appendChild(r)}break;case"GAME_UNMUTE":h.unmute();break;case"GAME_MUTE":h.mute()}}function r(t,n){e.parent&&e.parent.postMessage("cloud://"+t+"/--/"+n,"*")}var c="1.7.3",u={},d={},l=!1,m={"ad-count":0,"ad-timer":Math.round((new Date).getTime()/1e3)},p="//wanted5games.com/api",g=e.addEventListener?"addEventListener":"attachEvent";(0,e[g])("attachEvent"==g?"onmessage":"message",function(e){var t=e.message?"message":"data",n=e[t];if(console.log("game.js",n),!n.mssg&&n.indexOf("cloud://")>-1){var n=n.replace("cloud://","").split("/--/");s(n[0],n[1])}},!1);var f={http:function(e,t,n,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){4==a.readyState&&(200==a.status?o(a.responseText):o())},a.open(e,t,!0),a.setRequestHeader("Content-Type","application/json"),a.send(n)},getParameterFromURL:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},getReferrer:function(){var e=document.createElement("a");return e.href=document.referrer,e}},h={mute:function(){return"function"==typeof cr_setSuspended&&(cr_setSuspended(!0),!0)},unmute:function(){return"function"==typeof cr_setSuspended&&(cr_setSuspended(!1),!0)},init:function(e){t("Initializing :)",e),d=e,r("GAME_INIT",JSON.stringify({icons:i(),game:e})),"wanted5games.com"!==f.getReferrer().hostname&&0==e.splash&&o({link:"http://wanted5games.com/play"}),l=e.splash},showAd:function(){t("Function showAd called.")},hideAd:function(){t("Function hideAd called.")},gameOver:function(){if(t("Function gameOver called."),r("GAME_OVER"),156==u.portal&&n("pp_account")&&n("pp_game")){var e=new XMLHttpRequest;e.open("GET","https://www.pointsprizes.com/api/callbacks/cloudgames?account="+n("pp_account")+"&game="+n("pp_game")+"&event=game_over"),e.send()}var o=a();if(o){if(h.mute&&"wildtangent"==u["ad-system"])return void r("AD_SHOW",JSON.stringify({reason:"wildtangent"}));h.mute()&&r("AD_SHOW",JSON.stringify({reason:o}))}},scores:{submit:function(t,n,o){e.gigya||f.http("POST",p+"/games/"+d.id+"/scores"+(u.scores?"?portal="+u.portal:""),JSON.stringify({name:t,score:n}),function(e){o(!0)}),e.gigya&&e.gigya.accounts.getAccountInfo({callback:function(e){e.isVerified&&f.http("POST",p+"/games/"+d.id+"/scores"+(u.scores?"?portal="+u.portal:""),JSON.stringify({name:t,score:n}),function(e){o(!0)}),e.isVerified||(Sanoma.account.UI.showScreen("login"),o(!1))}})},fetch:function(e){f.http("GET",p+"/games/"+d.id+"/scores"+(u.scores?"?portal="+u.portal:""),null,function(t){m.scores=t,e&&e(JSON.parse(t))})},list:function(){return!!m.scores&&m.scores}},play:function(){t("Function play called.",u),r("GAME_PLAY"),u["ad-play"]&&h.mute()&&r("AD_SHOW")},links:{active:function(){return r("GAME_LINKS"),!u||void 0===u["links-active"]||u["links-active"]},list:function(){return r("GAME_LINKS_LIST"),{splash:u.links&&u.links.splash?u.links.splash:"http://wanted5games.com/play?utm_source="+u.distribution+"&utm_medium=onlinegame&utm_content=moregames&utm_campaign=html5game",games:u.links&&u.links.games?u.links.games:"http://wanted5games.com/play?utm_source="+u.distribution+"&utm_medium=onlinegame&utm_content=moregames&utm_campaign=html5game",logo:u.links&&u.links.logo?u.links.logo:"http://wanted5games.com/play?utm_source="+u.distribution+"&utm_medium=onlinegame&utm_content=logomenu&utm_campaign=html5game"}}},logos:{active:function(){return r("GAME_LOGOS"),!u||void 0===u["logos-active"]||u["logos-active"]},list:function(){return r("GAME_LOGOS_LIST"),u.logos?u.logos:{vertical:"//wanted5games.com/app/img/logo-vertical.png",horizontal:"//wanted5games.com/app/img/logo-horizontal.png"}}},info:{portal:function(){return u.portal}}};e.CloudAPI=h}(window); |