Update index.html

This commit is contained in:
Voxel 2025-03-21 07:00:17 -04:00 committed by GitHub
parent ede210af7f
commit 0bea9f6f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,24 @@
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("Escape to: https://YOURLINK.tld");
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">