Site Tools


games

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
games [2014/10/06 11:45] lunetikkgames [2014/10/07 09:10] lunetikk
Line 17: Line 17:
  
             clearInterval(gtimer);             clearInterval(gtimer);
-            document.getElementById('gta').innerHTML = 'EXPIRED!';+            document.getElementById('gta').innerHTML = 'Released!';
  
             return;             return;
Line 26: Line 26:
         var gseconds = Math.floor((gdistance % _gminute) / _gsecond);         var gseconds = Math.floor((gdistance % _gminute) / _gsecond);
  
-        document.getElementById('gta').innerHTML = gdays + ' days ' + 'until GTA V for Xbox One';+        document.getElementById('gta').innerHTML = gdays + ' days ' + 'until GTA V for Xbox One (18/11/2014)';
  
  
Line 50: Line 50:
  
             clearInterval(btimer);             clearInterval(btimer);
-            document.getElementById('borderlands').innerHTML = 'EXPIRED!';+            document.getElementById('borderlands').innerHTML = 'Released!';
  
             return;             return;
Line 59: Line 59:
         var bseconds = Math.floor((bdistance % _bminute) / _bsecond);         var bseconds = Math.floor((bdistance % _bminute) / _bsecond);
  
-        document.getElementById('borderlands').innerHTML = bdays + ' days ' + 'until Borderlands: The Pre Sequel for Xbox 360';+        document.getElementById('borderlands').innerHTML = bdays + ' days ' + 'until Borderlands: The Pre Sequel for Xbox 360 (17/10/2014)';
  
     }     }
Line 82: Line 82:
  
             clearInterval(htimer);             clearInterval(htimer);
-            document.getElementById('halo').innerHTML = 'EXPIRED!';+            document.getElementById('halo').innerHTML = 'Released!';
  
             return;             return;
Line 91: Line 91:
         var hseconds = Math.floor((hdistance % _hminute) / _hsecond);         var hseconds = Math.floor((hdistance % _hminute) / _hsecond);
  
-        document.getElementById('halo').innerHTML = hdays + ' days ' + 'until Halo: The Master Chief Collection for Xbox One';+        document.getElementById('halo').innerHTML = hdays + ' days ' + 'until Halo: The Master Chief Collection for Xbox One (14/11/2014)';
  
     }     }
Line 98: Line 98:
 </script> </script>
 <div id="halo"></div> <div id="halo"></div>
 +
 +<script>
 +var cend = new Date('12/02/2014 11:59 AM');
 +
 +    var _csecond = 1000;
 +    var _cminute = _csecond * 60;
 +    var _chour = _cminute * 60;
 +    var _cday = _chour * 24;
 +    var ctimer;
 +
 +    function cshowRemaining() {
 +        var cnow = new Date();
 +        var cdistance = cend - cnow;
 +        if (cdistance < 0) {
 +
 +            clearInterval(ctimer);
 +            document.getElementById('crew').innerHTML = 'Released!';
 +
 +            return;
 +        }
 +        var cdays = Math.floor(cdistance / _cday);
 +        var chours = Math.floor((cdistance % _cday) / _chour);
 +        var cminutes = Math.floor((cdistance % _chour) / _cminute);
 +        var cseconds = Math.floor((cdistance % _cminute) / _csecond);
 +
 +        document.getElementById('crew').innerHTML = cdays + ' days ' + 'until The Crew for Xbox One (02/12/2014)';
 +
 +    }
 +
 +    ctimer = setInterval(cshowRemaining, 1000);
 +</script>
 +<div id="crew"></div>
 +
 </html> </html>
  
Line 119: Line 152:
  
             clearInterval(twdetimer);             clearInterval(twdetimer);
-            document.getElementById('twde').innerHTML = 'EXPIRED!';+            document.getElementById('twde').innerHTML = 'Over!';
  
             return;             return;
Line 131: Line 164:
         document.getElementById('twde').innerHTML += twdehours + ' hrs ';         document.getElementById('twde').innerHTML += twdehours + ' hrs ';
         document.getElementById('twde').innerHTML += twdeminutes + ' mins ';         document.getElementById('twde').innerHTML += twdeminutes + ' mins ';
-        document.getElementById('twde').innerHTML += twdeseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 1';+        document.getElementById('twde').innerHTML += twdeseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 1 (13/10/2014)';
     }     }
  
Line 153: Line 186:
  
             clearInterval(twdztimer);             clearInterval(twdztimer);
-            document.getElementById('twdz').innerHTML = 'EXPIRED!';+            document.getElementById('twdz').innerHTML = 'Over!';
  
             return;             return;
Line 165: Line 198:
         document.getElementById('twdz').innerHTML += twdzhours + ' hrs ';         document.getElementById('twdz').innerHTML += twdzhours + ' hrs ';
         document.getElementById('twdz').innerHTML += twdzminutes + ' mins ';         document.getElementById('twdz').innerHTML += twdzminutes + ' mins ';
-        document.getElementById('twdz').innerHTML += twdzseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 2';+        document.getElementById('twdz').innerHTML += twdzseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 2 (20/10/2014)';
     }     }
  
Line 174: Line 207:
  
 <script> <script>
-var twddend = new Date('10/27/2014 09:00 PM');+var twddend = new Date('10/27/2014 08:00 PM');
  
     var _twddsecond = 1000;     var _twddsecond = 1000;
Line 188: Line 221:
  
             clearInterval(twddtimer);             clearInterval(twddtimer);
-            document.getElementById('twdd').innerHTML = 'EXPIRED!';+            document.getElementById('twdd').innerHTML = 'Over!';
  
             return;             return;
Line 200: Line 233:
         document.getElementById('twdd').innerHTML += twddhours + ' hrs ';         document.getElementById('twdd').innerHTML += twddhours + ' hrs ';
         document.getElementById('twdd').innerHTML += twddminutes + ' mins ';         document.getElementById('twdd').innerHTML += twddminutes + ' mins ';
-        document.getElementById('twdd').innerHTML += twddseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 3';+        document.getElementById('twdd').innerHTML += twddseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 3 (27/10/2014)';
     }     }
  
games.txt · Last modified: 2017/03/01 12:50 by 127.0.0.1