mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 17:43:42 -05:00
75 lines
2.8 KiB
HTML
75 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>MilkNet</title>
|
|
<link id="favicon" rel="icon" href="/assets/img/milk.png" type="image/x-icon">
|
|
<style>body{max-width:1000px;margin:auto;background-color:black;color:white;font-family:Arial;}a{color:#05d5ff}</style>
|
|
<style>
|
|
img {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
.center-text {
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<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 === ".") {
|
|
let choice = prompt("CLOAK OPTIONS: Google Drive (enter g), Google Classroom (enter gc), Clever (enter c), PowerSchool (enter p), Khan Academy (enter k), Desmos (enter d)");
|
|
|
|
const options = {
|
|
g: { title: "My Drive - Google Drive", icon: "/assets/img/drive.ico" },
|
|
gc: { title: "Google Classroom", icon: "/assets/img/classroom.ico" },
|
|
c: { title: "Clever | Portal", icon: "/assets/img/clever.ico" },
|
|
p: { title: "PowerSchool", icon: "/assets/img/powerschool.ico" },
|
|
k: { title: "Khan Academy", icon: "/assets/img/khan.ico" },
|
|
d: { title: "Desmos | Scientific Calculator", icon: "/assets/img/desmos.ico" }
|
|
};
|
|
|
|
if (options[choice]) {
|
|
document.title = options[choice].title;
|
|
changeFavicon(`/assets/img/${options[choice].icon}`);
|
|
}
|
|
}
|
|
});
|
|
|
|
function changeFavicon(src) {
|
|
let link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
|
link.type = "image/x-icon";
|
|
link.rel = "shortcut icon";
|
|
link.href = src;
|
|
document.getElementsByTagName("head")[0].appendChild(link);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<img src="/assets/img/milk_optimized.png" class="center">
|
|
<h1 class="center-text">MilkNet</h1>
|
|
<p class="center-text">Settings & Tools (these work on all games and pages)</p>
|
|
|
|
<div class="center-text">
|
|
<p>. - Cloak key</p> • <p>, - Panic key (Opens link of your choice)</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
</head>
|