mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
make scrolling to top on initial load of download page work again
This commit is contained in:
parent
de1a96d32c
commit
b3039fdfa7
@ -151,15 +151,17 @@ redirect_from: /w/Download/
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
(function() {
|
||||
window.onhashchange = function() {
|
||||
window.scrollTo(0, 0);
|
||||
};
|
||||
if (location.hash) return;
|
||||
var oses = ['Linux', 'Mac', 'Windows'];
|
||||
for (var i in oses) {
|
||||
var os = oses[i];
|
||||
if (navigator.userAgent.indexOf(os) > 0) {
|
||||
location.hash = os.toLowerCase();
|
||||
setTimeout(function() {window.scrollTo(0, 0);}, 0);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user