質問編集履歴

1

誤字

2022/08/27 06:03

投稿

porincho
porincho

スコア2

test CHANGED
File without changes
test CHANGED
@@ -15,7 +15,7 @@
15
15
  window.addEventListener("scroll", function () {
16
16
  if (window.innerWidth <= 767) {
17
17
   const foo = document.querySelector("#foo");
18
-     header.classList.toggle("hoge", window.scrollY > 100);
18
+     foo.classList.toggle("hoge", window.scrollY > 100);
19
19
   const baa = document.querySelector("#baa");
20
20
    baa.classList.toggle("hoge", window.scrollY > 100);
21
21
   const hogehoge = document.querySelector("#hogehoge");