edit aの時だけスクロールを強制終了

This commit is contained in:
harukin 2019-01-22 17:38:57 +09:00
parent 5789dd67f3
commit de8640fde4

View File

@ -102,6 +102,10 @@ $(document).ready(function() {
}, 10 * 1000);
//トップに戻る
$("nav").click(function(e) {
if ($(e.target).get(0).tagName == "a") {
//aだけ別の動作
return true;
}
$("body,html").animate(
{
scrollTop: 0