質問編集履歴
1
変数の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```javascript
|
12
12
|
|
13
|
-
|
13
|
+
let yoffset = window.pageYOffset;
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```javascript
|
34
34
|
|
35
|
-
|
35
|
+
let yoffset = document.getElementById('header');
|
36
36
|
|
37
37
|
window.addEventListener('scroll', myfunction);
|
38
38
|
|