mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 17:43:42 -05:00
try 2
This commit is contained in:
parent
56dcac3dcc
commit
c92cdfb3b3
1 changed files with 16 additions and 17 deletions
31
index.html
31
index.html
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue