mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 04:46:14 +03:00
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
/* global $j */
|
|
|
|
function scroll () {
|
|
if (window.location.hash === '') return
|
|
const anchor = $j('a[href="' + window.location.hash + '"]')
|
|
if (anchor) $j(window).scrollTop(anchor.offset().top)
|
|
}
|
|
function done () {
|
|
scroll()
|
|
$j('a').click(function () { setTimeout(scroll, 0); setTimeout(scroll, 50) })
|
|
}
|
|
|
|
module.exports = done
|