質問編集履歴
2
個人情報の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
<img id="scroll-icon" src="../images/move-icon.png" alt="">
|
28
28
|
</a>
|
29
29
|
</body>
|
30
|
+
|
30
31
|
```
|
31
32
|
|
32
33
|
```JavaScript
|
1
html追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,23 @@
|
|
11
11
|
```
|
12
12
|
|
13
13
|
### 該当のソースコード
|
14
|
+
```html
|
15
|
+
<!DOCTYPE html>
|
16
|
+
<html lang="jp">
|
17
|
+
<head>
|
18
|
+
<meta charset="UTF-8">
|
19
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
20
|
+
<link rel="stylesheet" href="../css/index.css">
|
21
|
+
<script src="../move/index.js"></script>
|
22
|
+
<title></title>
|
23
|
+
</head>
|
24
|
+
<body id="body">
|
25
|
+
<div></div>
|
26
|
+
<a href="#body">
|
27
|
+
<img id="scroll-icon" src="../images/move-icon.png" alt="">
|
28
|
+
</a>
|
29
|
+
</body>
|
30
|
+
```
|
14
31
|
|
15
32
|
```JavaScript
|
16
33
|
document.querySelectorAll('a[href^="#"]').forEach(link => {
|