回答編集履歴
1
chousei
test
CHANGED
@@ -22,9 +22,25 @@
|
|
22
22
|
|
23
23
|
window.addEventListener('DOMContentLoaded', ()=>{
|
24
24
|
|
25
|
-
document.querySelector('fieldset').classList.add('active')
|
25
|
+
document.querySelector('fieldset').classList.add('active');
|
26
26
|
|
27
27
|
document.querySelectorAll('.kakutei').forEach(x=>x.disabled=true);
|
28
|
+
|
29
|
+
});
|
30
|
+
|
31
|
+
window.addEventListener('pageshow',()=>{
|
32
|
+
|
33
|
+
const flg=window.performance.navigation.type;
|
34
|
+
|
35
|
+
if(flg==1){ // リロード対策
|
36
|
+
|
37
|
+
document.querySelectorAll('.q:checked').forEach(x=>x.checked=false);
|
38
|
+
|
39
|
+
document.querySelector('fieldset').classList.add('active');
|
40
|
+
|
41
|
+
document.querySelectorAll('.kakutei').forEach(x=>x.disabled=true);
|
42
|
+
|
43
|
+
}
|
28
44
|
|
29
45
|
});
|
30
46
|
|
@@ -143,3 +159,5 @@
|
|
143
159
|
</form>
|
144
160
|
|
145
161
|
```
|
162
|
+
|
163
|
+
※一部調整
|