adding 502 error
This commit is contained in:
28
games/index.html
Normal file
28
games/index.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>ups.. Page not Found !!! 404-Alarm!!!!</TITLE>
|
||||
</HEAD>
|
||||
<body>
|
||||
<center>
|
||||
<H1><b><FONT COLOR="#FF0000"><big><big>404 - Alert</big></big></FONT></b></H1>
|
||||
<H2>... page not found ...</H2>
|
||||
|
||||
<iframe id='404-game' width="520" height="520" scrolling="none" frameborder="0"></iframe>
|
||||
|
||||
<script>
|
||||
var randomBetween = function(f, to){
|
||||
return Math.floor(Math.random() * to) + f;
|
||||
}
|
||||
var randomGame = function(){
|
||||
var games = ["pacman404", "space-invaders404", "snake404"];
|
||||
var randomGame = randomBetween(0,games.length);
|
||||
return games[randomGame];
|
||||
}
|
||||
var src = "" + randomGame();
|
||||
document.getElementById('404-game').src = src;
|
||||
</script>
|
||||
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user