another attempt to keep the page at the top on first load (despite the hash change)

This commit is contained in:
Anton Keks 2018-03-09 00:06:10 +02:00
parent 4462a0d030
commit f4471c6d8c

View File

@ -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');