質問編集履歴
1
誤字
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
|
-
|
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");
|