mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 05:33:40 -05:00
Clean-up attempt again
This commit is contained in:
parent
84ddb33104
commit
a35c16ae1b
1 changed files with 20 additions and 56 deletions
70
index.html
70
index.html
|
@ -3,62 +3,26 @@
|
||||||
<head>
|
<head>
|
||||||
<title>MilkNet</title>
|
<title>MilkNet</title>
|
||||||
<link id="favicon" rel="icon" href="/assets/img/milk.png" type="image/x-icon">
|
<link id="favicon" rel="icon" href="/assets/img/milk.png" type="image/x-icon">
|
||||||
<style>
|
<link rel="stylesheet" href="style.css">
|
||||||
html, body {
|
<script>
|
||||||
margin: 0;
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
padding: 0;
|
let savedLink = localStorage.getItem("savedLink");
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
background-color: black;
|
|
||||||
color: white;
|
|
||||||
font-family: Arial;
|
|
||||||
max-width: 1000px;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
document.addEventListener("keydown", function(event) {
|
||||||
color: #05d5ff;
|
if (event.key === ",") {
|
||||||
}
|
if (!savedLink) {
|
||||||
|
savedLink = prompt("Escape to: https://YOURLINK.tld");
|
||||||
img {
|
if (savedLink) {
|
||||||
display: block;
|
localStorage.setItem("savedLink", savedLink);
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.center-text {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 8px;
|
|
||||||
padding: 16px;
|
|
||||||
margin-top: auto; /* Makes the footer stick to the bottom */
|
|
||||||
}
|
|
||||||
</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");
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
window.open(savedLink, "_blank");
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
<script>
|
</script>
|
||||||
|
<script>
|
||||||
document.addEventListener("keydown", function (event) {
|
document.addEventListener("keydown", function (event) {
|
||||||
if (event.key === ".") {
|
if (event.key === ".") {
|
||||||
let choice = prompt("CLOAK OPTIONS: Google Drive (enter g), Google Classroom (enter gc), Google Docs (enter gd), Clever (enter c), PowerSchool (enter p), Khan Academy (enter k), Desmos (enter d), Schoology (enter s), Cool Math Games (enter cmg)");
|
let choice = prompt("CLOAK OPTIONS: Google Drive (enter g), Google Classroom (enter gc), Google Docs (enter gd), Clever (enter c), PowerSchool (enter p), Khan Academy (enter k), Desmos (enter d), Schoology (enter s), Cool Math Games (enter cmg)");
|
||||||
|
@ -90,7 +54,7 @@
|
||||||
link.href = src;
|
link.href = src;
|
||||||
document.getElementsByTagName("head")[0].appendChild(link);
|
document.getElementsByTagName("head")[0].appendChild(link);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="/assets/img/milk_optimized.png" class="center">
|
<img src="/assets/img/milk_optimized.png" class="center">
|
||||||
|
|
Loading…
Add table
Reference in a new issue