mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 21:53:40 -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>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('keydown', function(event) {
|
document.addEventListener('keydown', function(event) {
|
||||||
if (event.key === '.') {
|
if (event.key === '.') {
|
||||||
// Change title
|
// Change title
|
||||||
document.title = "Student and Parent Sign In";
|
document.title = "Student and Parent Sign In";
|
||||||
|
|
||||||
// Change favicon
|
// Change favicon
|
||||||
var originalFavicon = document.getElementById('original-favicon');
|
var favicon = document.getElementById('favicon');
|
||||||
var newFavicon = document.getElementById('new-favicon');
|
var newFavicon = document.createElement('link');
|
||||||
|
newFavicon.id = 'favicon';
|
||||||
|
newFavicon.rel = 'icon';
|
||||||
|
newFavicon.href = 'new_favicon.ico';
|
||||||
|
|
||||||
if (originalFavicon && newFavicon) {
|
favicon.parentNode.replaceChild(newFavicon, favicon);
|
||||||
originalFavicon.remove();
|
}
|
||||||
newFavicon.setAttribute('rel', 'icon');
|
});
|
||||||
newFavicon.style.display = 'block';
|
</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