Advertisement
Urumasi

Loading.html

Nov 24th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.28 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Loading..</title>
  4.         <link rel="stylesheet" type="text/css" href="loading.css?3" />
  5.         <script type="text/javascript" src="js/thirdparty/jquery.js"></script>
  6.     </head>
  7.     <body onload="load()">
  8.        
  9.         <div id="container">
  10.  
  11.             <img src='http://www.frostmournemc.com/gmod/orangebox/garrysmod/html/img/gmod_logo_brave.png' class="bounce"/>
  12.            
  13.             <center>
  14.                 <br />
  15.                 <div class="walk">( ͡° ͜ʖ ͡°)</div>
  16.             </center>
  17.  
  18.         </div>
  19.        
  20.  
  21.         <script type="text/javascript">
  22.  
  23.             var AMM = 64;
  24.             var arr = [];
  25.             var spd = [];
  26.             var pos = [];
  27.             var rot = [];
  28.             function load(){
  29.                 for(var i=0; i<AMM; i++){
  30.                     var a = document.createElement("img");
  31.                     a.src = "https://lh3.googleusercontent.com/-ezB18ZSLKvQ/VUUtqW-eGEI/AAAAAAAAApc/LifNfJD0xL8/s506/Illuminati_Emblem.png";
  32.                     a.width = 100;
  33.                     a.style.position = "absolute";
  34.                     a.style.left = Math.floor(Math.random()*100)+"%";
  35.                     arr.push(a);
  36.                     spd.push(Math.ceil(Math.random()*5));
  37.                     pos.push(Math.floor(Math.random()*100));
  38.                     rot.push(Math.random()*360);
  39.                     document.body.appendChild(a);
  40.                 }
  41.                 console.log(arr);
  42.                 setInterval(fall, 100);
  43.             }
  44.             function fall(){
  45.                 for(var i=0; i<arr.length; i++){
  46.                     pos[i] = (pos[i]+spd[i])%100;
  47.                     rot[i] = (rot[i]+spd[i]*5)%360
  48.                     arr[i].style.top = pos[i]+"%";
  49.                     rotate(arr[i], rot[i]);
  50.                 }
  51.             }
  52.             function rotate(image, deg){
  53.                 image.style.WebkitTransform = "rotate("+deg+"deg)";
  54.                 image.style.MozTransform = "rotate("+deg+"deg)";
  55.                 image.style.msTransform = "rotate("+deg+"deg)";
  56.                 image.style.OTransform = "rotate("+deg+"deg)";
  57.                 image.style.transform = "rotate("+deg+"deg)";
  58.             }
  59.             function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode )
  60.             {
  61.                 // Do with these what you will :)
  62.                 // this function gets called only when joining a multiplayer server
  63.  
  64.                 //$("#spambox").append("serverurl: " + serverurl + "<br>");
  65.                 //$("#spambox").append("servername: " + servername + "<br>");
  66.                 //$("#spambox").append("maxplayers: " + maxplayers + "<br>");
  67.                 //$("#spambox").append("steamid: " + steamid + "<br>");
  68.                 //$("#spambox").append("gamemode: " + gamemode + "<br>");
  69.                 //$("#spambox").append("mapname: " + mapname + "<br>");
  70.             }
  71.    
  72.         </script>
  73.  
  74.     </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement