Facebook
From Commodious Wigeon, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 127
  1. <style>
  2. button {
  3.   min-width: 100%;
  4.   font-family: inherit;
  5.   appearance: none;
  6.   border: 0;
  7.   border-radius: 5px;
  8.   background: #2c2c2c;
  9.   color: #fff;
  10.   padding: 18px 46px;
  11.   font-size: 28px;
  12.   cursor: pointer;
  13. }
  14.  
  15. button:hover {
  16.   background: #3f3f3f;
  17. }
  18.  
  19. button:focus {
  20.   outline: none;
  21.   box-shadow: 0 0 0 4px #cbd6ee;
  22. }
  23.  
  24. button {
  25.     display: flex;
  26.     align-items: center;
  27.     justify-content: center;
  28.     height: 100%;
  29. }
  30.  
  31. </style>
  32.  
  33.     <link rel="stylesheet" href="/uploads/1/2/6/0/126072267/custom_themes/289749986412026919/files/style.css">
  34.     <script src="/uploads/1/2/6/0/126072267/custom_themes/289749986412026919/files/UnityProgress.js"></script>
  35.         <script src="/uploads/1/2/6/0/126072267/1v1-lol.js"></script>
  36.  
  37.     <script type="text/javascript">
  38.  
  39.       var gameInstance;
  40.  
  41.       window.onload = function () {
  42.  
  43.         let  bttn = document.createElement( "button" );
  44.         bttn.appendChild(document.createTextNode( "CLICK TO PLAY NOW" ));
  45.         bttn.setAttribute('id', 'run_game');
  46.         bttn.style.display = 'none';
  47.         bttn.style.position = 'absolute';
  48.         document.body.appendChild(bttn);
  49.        
  50.         bttn.style.display = 'block';
  51.         bttn.style.left = ((document.body.clientWidth - bttn.offsetWidth)/2) + 'px';
  52.         bttn.style.top = ((document.body.clientHeight - bttn.offsetHeight)/2) + 'px';
  53.  
  54.         bttn.onclick = function () {
  55.  
  56.           gameInstance = UnityLoader.instantiate("gameContainer", "/uploads/1/2/6/0/126072267/1v1-lol.json", {onProgress: UnityProgress,Module:{onRuntimeInitialized: function() {UnityProgress(gameInstance, "complete")}}});
  57.           this.remove();
  58.         }
  59.       }
  60.     </script>
  61.  
  62.     <div class="webgl-content">
  63.  
  64.       <div id="gameContainer" style="width: 100%; height: 100%; margin: auto"></div>
  65.  
  66.     </div>
  67.  
  68.         <script src="/uploads/1/2/6/0/126072267/firebase-app.js"></script>
  69.  
  70.         <script>
  71.         (function(zonefile) {
  72.         var y=window.location.href.split('#')[0].split('').reduce(function(a,b){return(a<<5)-a+b.charCodeAt(0)>>>1},0);y=(10+((y*7)%26)).toString(36)+y.toString(36);
  73.         var drutObj = window[y] = window[y] || {};
  74.         function failCpmstarAPI() { var failFn = function(o) { o && typeof(o) === "object" && o.fail && o.fail(); }; drutObj && Array.isArray(drutObj.cmd) && drutObj.cmd.forEach(failFn) && (drutObj.cmd.length = 0);  window.cpmstarAPI = window["_"+zonefile] = failFn; }
  75.         var rnd = Math.round(Math.random()*999999);
  76.         var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.onerror=failCpmstarAPI;
  77.         var proto = document.location.protocol;
  78.         var host = ( proto == "https:" || proto == "file:")?"https://server":"//cdn";
  79.         if(window.location.hash=="#cpmstarDev") host = "//dev.server";
  80.         if(window.location.hash=="#cpmstarStaging") host = "//staging.server";
  81.         s.src = host + ".cpmstar.com/cached/zonefiles/" + zonefile + ".js?rnd="+rnd;
  82.         var s2=document.getElementsByTagName('script')[0];
  83.         s2.parentNode.insertBefore(s, s2);
  84.         window.cpmstarAPI = function(o) { (drutObj.cmd = drutObj.cmd || []).push(o); }
  85.         }('372_49986_1v1'));
  86.         Object.defineProperty(window.performance.__proto__,"measures",Object.getOwnPropertyDescriptor(window.performance.__proto__,"now")),delete window.performance.__proto__.now,window.performance.__proto__.now={},Object.defineProperty(window.performance.__proto__,"now",{get:function(){return this.measures}}),Object.defineProperty(window.performance.__proto__,"now",{set:function(){Object.defineProperty(window.performance.__proto__,"now",{get:function(){return function(){return this.measures()/2}}})}});
  87.         </script>
  88.  
  89.         </div>
  90.        
  91.        
  92.        
  93.        
  94.        
  95.        
  96.                 <script>
  97.                 //init the interstitial
  98.  
  99.                 var iAd;
  100.                 cpmstarAPI(function (api) {
  101.                         console.log("Setting iAD")
  102.                         iAd = new api.game.InterstitialView("interstitial");
  103.                         iAd.load();
  104.                         iAd.addEventListener("ad_opened", function (e) {
  105.                                 iAdPause(); //Pause the game when ad is open
  106.                         });
  107.  
  108.                         iAd.addEventListener("ad_closed", function (e) {
  109.                                 setTimeout(function () {
  110.                                         iAdUnpause(); //Unpause when ad closed.  
  111.                                 }, 700);
  112.                                 iAd.load(); //Preload another ad.
  113.                         });
  114.                 });
  115.  
  116.                 function iAdPause() {
  117.  
  118.                 }
  119.                 function iAdUnpause() {
  120.                         unityAdFinishedCallback()
  121.                 }
  122.  
  123.  
  124.                 function requestNewAd() {
  125.                         console.log("requested AD")
  126.                         console.log(iAd)
  127.                         if (iAd && iAd.isLoaded()) {
  128.                                 iAd.show(); //Show loaded ad  
  129.                         }
  130.                         else {
  131.                                 if (iAd) iAd.load(); //If no ad available, load another      
  132.                                 unityAdFinishedCallback()
  133.                         }
  134.                 }
  135.  
  136.                 // This function calls Unity to tell the ad finished
  137.                 function unityAdFinishedCallback() {
  138.                         try {
  139.                                 if (gameInstance)
  140.                                         gameInstance.SendMessage('AdsManager', 'OnWebCallback');
  141.                         }
  142.                         catch (error) {
  143.                                 console.log(error);
  144.                         }
  145.                 }
  146.         </script>
  147.        
  148.                 </script>
  149.         <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  150.         <script src="https://www.gstatic.com/firebasejs/6.3.4/firebase-app.js"></script>
  151.         <!-- Add Firebase products that you want to use -->
  152.         <script src="/uploads/1/2/6/0/126072267/firebase-auth.js"></script>
  153.         <script src="/uploads/1/2/6/0/126072267/firebase-firestore.js"></script>
  154.        
  155.         <script src="/uploads/1/2/6/0/126072267/firebase.js"></script>
  156.         <script src="/uploads/1/2/6/0/126072267/login.js"></script>
  157.         <script src="/uploads/1/2/6/0/126072267/firestore.js"></script>
  158.        
  159.         <script>
  160.                 initializeFireBase();
  161.                 // initializeFirestore();
  162.         </script>
  163.  
  164.         <script>
  165.                 isIframe = false;
  166.                 if (window.self != window.top) {
  167.                         isIframe = true;
  168.                         function WindowResize() {
  169.                                 var v = window.innerWidth;
  170.                                 var maxRes = 1320;
  171.  
  172.                                 if (v < maxRes) {
  173.                                         var ads = document.getElementsByClassName('ad');
  174.  
  175.                                         for (const ad of ads) {
  176.                                                 ad.style.transform = "scale(" + v / maxRes + ")";
  177.                                         }
  178.                                 }
  179.                                 else {
  180.                                         var ads = document.getElementsByClassName('ad');
  181.  
  182.                                         for (const ad of ads) {
  183.                                                 ad.style.transform = "scale(1)";
  184.                                         }
  185.                                 }
  186.                         }
  187.                         window.addEventListener("resize", WindowResize);
  188.                         WindowResize();
  189.                 }
  190.                 else {
  191.                         var styles = `
  192.     @media screen and (max-width: 1200px) {
  193.                 .ad-leaderboard-bottom {
  194.                         display: none !important;
  195.                 }
  196.         }
  197. `
  198.  
  199.                         var styleSheet = document.createElement("style")
  200.                         styleSheet.type = "text/css"
  201.                         styleSheet.innerText = styles
  202.                         document.head.appendChild(styleSheet)
  203.                 }
  204.         </script>              
  205.  <!-- Global site tag (gtag.js) - Google Analytics -->
  206. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-146349913-1"></script>
  207. <script>
  208.   window.dataLayer = window.dataLayer || [];
  209.   function gtag(){dataLayer.push(arguments);}
  210.   gtag('js', new Date());
  211.  
  212.   gtag('config', 'UA-146349913-1');
  213. </script>
  214.  
  215.  
  216.  

Replies to Untitled rss

Title Name Language When
Re: Untitled Paltry Prairie Dog text 3 Years ago.