minify the remaining JS

This commit is contained in:
2020-06-09 08:49:22 -04:00
parent 55884856f9
commit 60f7a85da4
3 changed files with 2 additions and 20 deletions

View File

@ -156,22 +156,5 @@ window.Websock_native=!0;window.MozWebSocket&&(window.WebSocket=window.MozWebSoc
/*!
* Custom code for y2k.land, licensed under MIT:
* https://github.com/jakejarvis/y2k
*
* Keeping it somewhat readable until I automate minification.
*/
(function () {
var s = document.getElementById("status");
var d = document.getElementById("display");
var t = Math.floor(Math.random() * 20);
if (window.WebSocket) {
var rfb = new RFB({ target: d, encrypt: true });
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!";
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 {
s.innerHTML = "WebSockets must be enabled to enter Y2K Land!!!<br><br>Press the Any key to continue.";
}
})();
(function(){var e=document.getElementById("status"),t=document.getElementById("display"),n=Math.floor(20*Math.random());window.WebSocket?(new RFB({target:t,encrypt:!0}).connect("sandbox.y2k.land",443),document.body.style.backgroundImage="url('tiles/tile_"+n+".png')",e.innerHTML="Spinning up your very own personal computer, please wait!",setTimeout(function(){e.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.'},2e4)):e.innerHTML="WebSockets must be enabled to enter Y2K Land!!!<br><br>Press the Any key to continue."})();

View File

@ -25,8 +25,8 @@
<span id="status">JavaScript is required for this experience, please enable it and refresh the page!<br><br>Press the Any key to continue.</span>
<span class="blink">_</span>
</div>
<canvas id="display"></canvas>
<a class="github" href="https://github.com/jakejarvis/y2k" title="View on GitHub" target="_blank" rel="noopener"><svg viewBox="0 0 16 16" width="32" height="32"><path d="M8 0a8 8 0 00-2.5 15.6c.4 0 .5-.2.5-.4v-1.5c-2 .4-2.5-.5-2.7-1 0-.1-.5-.9-.8-1-.3-.2-.7-.6 0-.6.6 0 1 .6 1.2.8.7 1.2 1.9 1 2.4.7 0-.5.2-.9.5-1-1.8-.3-3.7-1-3.7-4 0-.9.3-1.6.8-2.2 0-.2-.3-1 .1-2 0 0 .7-.3 2.2.7a7.4 7.4 0 014 0c1.5-1 2.2-.8 2.2-.8.5 1.1.2 2 .1 2.1.5.6.8 1.3.8 2.2 0 3-1.9 3.7-3.6 4 .3.2.5.7.5 1.4v2.2c0 .2.1.5.5.4A8 8 0 0016 8a8 8 0 00-8-8z"/></svg></a>
<canvas id="display"></canvas>
<script src="app.js"></script>
<script async defer src="https://collect.y2k.land/latest.js" data-skip-dnt="true"></script>
<noscript><img src="https://collect.y2k.land/noscript.gif" alt=""/></noscript>

View File

@ -3,7 +3,6 @@ type = "webpack"
account_id = "bd1a636a30a817137ce1e91c9e407373"
zone_id = "8a79e5c61c0a7033d7b0eca176665cd1"
route = "y2k.land/*"
# workers_dev = true
[site]
bucket = "public"