mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
another attempt to keep the page at the top on first load (despite the hash change)
This commit is contained in:
parent
4462a0d030
commit
f4471c6d8c
@ -154,6 +154,10 @@ redirect_from: /w/Download/
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
window.onscroll = function() {
|
||||
window.scrollTo(0, 0);
|
||||
window.onscroll = null;
|
||||
};
|
||||
window.onhashchange = function() {
|
||||
window.scrollTo(0, 0);
|
||||
document.querySelector('.accordion').classList.add('with-transition');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user