mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 05:33:40 -05:00
38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
<title>Crossy Road</title>
|
||
<link id="favicon" rel="icon" href="/assets/img/milk.png" type="image/x-icon">
|
||
<script>
|
||
document.addEventListener("DOMContentLoaded", function() {
|
||
let savedLink = localStorage.getItem("savedLink");
|
||
|
||
document.addEventListener("keydown", function(event) {
|
||
if (event.key === ",") {
|
||
if (!savedLink) {
|
||
savedLink = prompt("Escape to: https://YOURLINK.tld");
|
||
if (savedLink) {
|
||
localStorage.setItem("savedLink", savedLink);
|
||
}
|
||
} else {
|
||
window.open(savedLink, "_blank");
|
||
}
|
||
}
|
||
});
|
||
});
|
||
</script>
|
||
<script>
|
||
document.addEventListener('keydown', function(event) {
|
||
if (event.key === '.') {
|
||
document.title = "Student and Parent Sign In";
|
||
|
||
var link = document.querySelector("link[rel~='icon']");
|
||
if (!link) {
|
||
link = document.createElement('link');
|
||
link.rel = 'icon';
|
||
document.getElementsByTagName('head')[0].appendChild(link);
|
||
}
|
||
link.href = '/assets/img/new_favicon.ico';
|
||
}
|
||
});
|
||
</script>
|
||
|
||
<iframe id="innerFrame" name="innerFrame" sandbox="allow-scripts allow-popups allow-forms allow-same-origin allow-popups-to-escape-sandbox allow-downloads" frameborder="0" allowfullscreen="" src="/crossy-road" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
|
||
</iframe>
|