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:03] lunetikkgames [2014/10/07 09:08] lunetikk
Line 1: Line 1:
-=== Countdown for games ===+==== Countdown for games ====
  
 <html> <html>
Line 17: Line 17:
  
             clearInterval(gtimer);             clearInterval(gtimer);
-            document.getElementById('gta').innerHTML = 'EXPIRED!';+            document.getElementById('gta').innerHTML = 'Released!';
  
             return;             return;
Line 50: Line 50:
  
             clearInterval(btimer);             clearInterval(btimer);
-            document.getElementById('borderlands').innerHTML = 'EXPIRED!';+            document.getElementById('borderlands').innerHTML = 'Released!';
  
             return;             return;
Line 82: Line 82:
  
             clearInterval(htimer);             clearInterval(htimer);
-            document.getElementById('halo').innerHTML = 'EXPIRED!';+            document.getElementById('halo').innerHTML = 'Released!';
  
             return;             return;
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';
 +
 +    }
 +
 +    ctimer = setInterval(cshowRemaining, 1000);
 +</script>
 +<div id="crew"></div>
 +
 +</html>
 +
 +==== Countdown for movies/series ====
 +
 +
 +<html>
 +<script>
 +var twdeend = new Date('10/13/2014 09:00 PM');
 +
 +    var _twdesecond = 1000;
 +    var _twdeminute = _twdesecond * 60;
 +    var _twdehour = _twdeminute * 60;
 +    var _twdeday = _twdehour * 24;
 +    var twdetimer;
 +
 +    function twdeshowRemaining() {
 +        var twdenow = new Date();
 +        var twdedistance = twdeend - twdenow;
 +        if (twdedistance < 0) {
 +
 +            clearInterval(twdetimer);
 +            document.getElementById('twde').innerHTML = 'Over!';
 +
 +            return;
 +        }
 +        var twdedays = Math.floor(twdedistance / _twdeday);
 +        var twdehours = Math.floor((twdedistance % _twdeday) / _twdehour);
 +        var twdeminutes = Math.floor((twdedistance % _twdehour) / _twdeminute);
 +        var twdeseconds = Math.floor((twdedistance % _twdeminute) / _twdesecond);
 +
 +        document.getElementById('twde').innerHTML = twdedays + ' days ';
 +        document.getElementById('twde').innerHTML += twdehours + ' hrs ';
 +        document.getElementById('twde').innerHTML += twdeminutes + ' mins ';
 +        document.getElementById('twde').innerHTML += twdeseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 1';
 +    }
 +
 +    twdetimer = setInterval(twdeshowRemaining, 1000);
 +</script>
 +<div id="twde"></div>
 +
 +<script>
 +var twdzend = new Date('10/20/2014 09:00 PM');
 +
 +    var _twdzsecond = 1000;
 +    var _twdzminute = _twdzsecond * 60;
 +    var _twdzhour = _twdzminute * 60;
 +    var _twdzday = _twdzhour * 24;
 +    var twdztimer;
 +
 +    function twdzshowRemaining() {
 +        var twdznow = new Date();
 +        var twdzdistance = twdzend - twdznow;
 +        if (twdzdistance < 0) {
 +
 +            clearInterval(twdztimer);
 +            document.getElementById('twdz').innerHTML = 'Over!';
 +
 +            return;
 +        }
 +        var twdzdays = Math.floor(twdzdistance / _twdzday);
 +        var twdzhours = Math.floor((twdzdistance % _twdzday) / _twdzhour);
 +        var twdzminutes = Math.floor((twdzdistance % _twdzhour) / _twdzminute);
 +        var twdzseconds = Math.floor((twdzdistance % _twdzminute) / _twdzsecond);
 +
 +        document.getElementById('twdz').innerHTML = twdzdays + ' days ';
 +        document.getElementById('twdz').innerHTML += twdzhours + ' hrs ';
 +        document.getElementById('twdz').innerHTML += twdzminutes + ' mins ';
 +        document.getElementById('twdz').innerHTML += twdzseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 2';
 +    }
 +
 +    twdztimer = setInterval(twdzshowRemaining, 1000);
 +</script>
 +<div id="twdz"></div>
 +
 +
 +<script>
 +var twddend = new Date('10/27/2014 08:00 PM');
 +
 +    var _twddsecond = 1000;
 +    var _twddminute = _twddsecond * 60;
 +    var _twddhour = _twddminute * 60;
 +    var _twddday = _twddhour * 24;
 +    var twddtimer;
 +
 +    function twddshowRemaining() {
 +        var twddnow = new Date();
 +        var twdddistance = twddend - twddnow;
 +        if (twdddistance < 0) {
 +
 +            clearInterval(twddtimer);
 +            document.getElementById('twdd').innerHTML = 'Over!';
 +
 +            return;
 +        }
 +        var twdddays = Math.floor(twdddistance / _twddday);
 +        var twddhours = Math.floor((twdddistance % _twddday) / _twddhour);
 +        var twddminutes = Math.floor((twdddistance % _twddhour) / _twddminute);
 +        var twddseconds = Math.floor((twdddistance % _twddminute) / _twddsecond);
 +
 +        document.getElementById('twdd').innerHTML = twdddays + ' days ';
 +        document.getElementById('twdd').innerHTML += twddhours + ' hrs ';
 +        document.getElementById('twdd').innerHTML += twddminutes + ' mins ';
 +        document.getElementById('twdd').innerHTML += twddseconds + ' secs ' + 'until The Walking Dead Season 5 Episode 3';
 +    }
 +
 +    twddtimer = setInterval(twddshowRemaining, 1000);
 +</script>
 +<div id="twdd"></div>
 +
 </html> </html>
  
games.txt · Last modified: 2017/03/01 12:50 by 127.0.0.1