edit add more if

This commit is contained in:
harukin 2019-01-22 18:04:06 +09:00
parent 3e51b31f9d
commit 6f6106fd2f

View File

@ -102,7 +102,7 @@ $(document).ready(function() {
}, 10 * 1000); }, 10 * 1000);
//トップに戻る //トップに戻る
$("nav").click(function(e) { $("nav").click(function(e) {
if ($(e.target).is("a")) { if ($(e.target).is("a")||$(e.target).is("button")||$(e.target).is("img")||$(e.target).is("i")) {
//させたい別の動作 //させたい別の動作
alert("b"); alert("b");
//aだけ別の動作 //aだけ別の動作