Update index.html

This commit is contained in:
Voxel 2025-03-20 09:15:48 -04:00 committed by GitHub
parent c2689611f7
commit fd470b59ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,11 +14,29 @@
text-align: center; text-align: center;
} }
</style> </style>
<script>
document.addEventListener("DOMContentLoaded", function() {
let savedLink = localStorage.getItem("savedLink");
document.addEventListener("keydown", function(event) {
if (event.key === "`") {
if (!savedLink) {
savedLink = prompt("Panic key will open:");
if (savedLink) {
localStorage.setItem("savedLink", savedLink);
}
} else {
window.open(savedLink, "_blank");
}
}
});
});
</script>
</head> </head>
<body> <body>
<img src="/assets/img/milk_optimized.png" class="center"> <img src="/assets/img/milk_optimized.png" class="center">
<h1 class="center-text">MilkNet</h1> <h1 class="center-text">MilkNet</h1>
<p class="center-text">Paradise for bored students. What would you like to do?</p> <p class="center-text">Paradise for bored students. What would you like to do? (Press ` to escape)</p>
<div class="center-text"> <div class="center-text">
<a href="/games">Games</a><a href="/apps">Apps</a><a href="/links.txt">Links</a><a href="/form">Requests</a><a href="https://thismailboxismine.andthistriagonalsign.22web.org/gba">Retro Games</a> <a href="/games">Games</a><a href="/apps">Apps</a><a href="/links.txt">Links</a><a href="/form">Requests</a><a href="https://thismailboxismine.andthistriagonalsign.22web.org/gba">Retro Games</a>