質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,8 +22,8 @@
|
|
22
22
|
<p>サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト</p>
|
23
23
|
</div>
|
24
24
|
<div class="sample_part">
|
25
|
-
<h3>
|
25
|
+
<h3>さんプルてきスト</h3>
|
26
|
-
<p>
|
26
|
+
<p>さんプルてきストさんプルてきストさんプルてきストさんプルてきストさんプルてきストさんプルてきスト</p>
|
27
27
|
</div>
|
28
28
|
<div class="sample_part">
|
29
29
|
<h3>sample text</h3>
|
1
変数追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -73,6 +73,10 @@
|
|
73
73
|
```
|
74
74
|
|
75
75
|
```js
|
76
|
+
const yougo_area = document.getElementById('sample_area');
|
77
|
+
const yougo_parts = document.getElementsByClassName('sample_part');
|
78
|
+
const input = document.getElementById('search_word');
|
79
|
+
|
76
80
|
input.addEventListener('input', () => {
|
77
81
|
reset();
|
78
82
|
var sword = input.value;
|