link to status page in error/timeout message
This commit is contained in:
@ -160,15 +160,17 @@ window.Websock_native=!0;window.MozWebSocket&&(window.WebSocket=window.MozWebSoc
|
|||||||
* Keeping it somewhat readable until I automate minification.
|
* Keeping it somewhat readable until I automate minification.
|
||||||
*/
|
*/
|
||||||
(function () {
|
(function () {
|
||||||
var t = Math.floor(Math.random() * 20);
|
|
||||||
var s = document.getElementById("status");
|
var s = document.getElementById("status");
|
||||||
document.body.style.backgroundImage = "url('tiles/tile_" + t + ".png')";
|
var d = document.getElementById("display");
|
||||||
|
var t = Math.floor(Math.random() * 20);
|
||||||
if (window.WebSocket) {
|
if (window.WebSocket) {
|
||||||
var display = document.getElementById("display");
|
var rfb = new RFB({ target: d, encrypt: true });
|
||||||
var rfb = new RFB({ target: display, encrypt: true });
|
|
||||||
rfb.connect("sandbox.y2k.land", 443);
|
rfb.connect("sandbox.y2k.land", 443);
|
||||||
|
document.body.style.backgroundImage = "url('tiles/tile_" + t + ".png')";
|
||||||
s.innerHTML = "Spinning up your very own personal computer, please wait!";
|
s.innerHTML = "Spinning up your very own personal computer, please wait!";
|
||||||
setTimeout(function () { s.innerHTML = "Oh dear, it looks like something went very wrong. :(<br><br>We might be a little busy, please try again in a bit!"; }, 20000);
|
setTimeout(function () {
|
||||||
|
s.innerHTML = "Oh dear, it looks like something went very wrong. :(<br><br><a href=\"https://status.jrvs.io/785127956\" target=\"_blank\" rel=\"noopener\">Click here</a> to check the server status, or try again in a bit.";
|
||||||
|
}, 20000);
|
||||||
} else {
|
} else {
|
||||||
s.innerHTML = "WebSockets must be enabled to enter Y2K Land!!!<br><br>Press the Any key to continue.";
|
s.innerHTML = "WebSockets must be enabled to enter Y2K Land!!!<br><br>Press the Any key to continue.";
|
||||||
}
|
}
|
||||||
|
@ -6,17 +6,23 @@
|
|||||||
url("fonts/perfect-dos.woff") format("woff");
|
url("fonts/perfect-dos.woff") format("woff");
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
font-family: "Perfect DOS VGA 437", monospace;
|
||||||
padding: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: "Perfect DOS VGA 437", monospace;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
/* specific retro wallpaper tile is set randomly by JS onload */
|
/* specific retro wallpaper tile is set randomly by JS onload */
|
||||||
|
background-color: #000;
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
canvas, div#cmd {
|
canvas, div#cmd {
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -32,7 +38,6 @@ div#cmd {
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
user-select: none;
|
|
||||||
z-index: -100;
|
z-index: -100;
|
||||||
}
|
}
|
||||||
canvas {
|
canvas {
|
||||||
|
Reference in New Issue
Block a user