test: same
This commit is contained in:
parent
649834c64f
commit
2fec6a18e4
@ -101,9 +101,12 @@ $(document).ready(function() {
|
|||||||
checkNotify();
|
checkNotify();
|
||||||
}, 10 * 1000);
|
}, 10 * 1000);
|
||||||
//トップに戻る
|
//トップに戻る
|
||||||
$("nav")
|
$("nav").click(function(e) {
|
||||||
.not("a")
|
if ($(e.target).get(0).tagName == "a") {
|
||||||
.click(function(e) {
|
//spanだけ別の動作
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
//普通の動作
|
||||||
$("body,html").animate(
|
$("body,html").animate(
|
||||||
{
|
{
|
||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
@ -111,6 +114,7 @@ $(document).ready(function() {
|
|||||||
150
|
150
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user