This commit is contained in:
Voxel 2025-03-28 10:12:34 -04:00 committed by GitHub
parent 56dcac3dcc
commit c92cdfb3b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,24 +34,23 @@
});
});
</script>
<script>
document.addEventListener('keydown', function(event) {
if (event.key === '.') {
// Change title
document.title = "Student and Parent Sign In";
<script>
document.addEventListener('keydown', function(event) {
if (event.key === '.') {
// Change title
document.title = "Student and Parent Sign In";
// Change favicon
var originalFavicon = document.getElementById('original-favicon');
var newFavicon = document.getElementById('new-favicon');
// Change favicon
var favicon = document.getElementById('favicon');
var newFavicon = document.createElement('link');
newFavicon.id = 'favicon';
newFavicon.rel = 'icon';
newFavicon.href = 'new_favicon.ico';
if (originalFavicon && newFavicon) {
originalFavicon.remove();
newFavicon.setAttribute('rel', 'icon');
newFavicon.style.display = 'block';
}
}
});
</script>
favicon.parentNode.replaceChild(newFavicon, favicon);
}
});
</script>
</head>
<body>
<img src="/assets/img/milk_optimized.png" class="center">