|
|
@ -9,6 +9,11 @@ var customSearch; |
|
|
|
const $elem = elem.href ? $(elem.getAttribute('href')) : $(elem); |
|
|
|
const $elem = elem.href ? $(elem.getAttribute('href')) : $(elem); |
|
|
|
$('html, body').animate({ 'scrollTop': $elem.offset().top - correction }, 400); |
|
|
|
$('html, body').animate({ 'scrollTop': $elem.offset().top - correction }, 400); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
document.onkeydown = function() { |
|
|
|
|
|
|
|
if (event.keyCode == 9) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setHeader() { |
|
|
|
function setHeader() { |
|
|
|
if (!window.subData) return; |
|
|
|
if (!window.subData) return; |
|
|
|