質問編集履歴
2
書式の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,9 @@
|
|
64
64
|
|
65
65
|
|
66
66
|
|
67
|
-
```jQuery
|
67
|
+
```jQuery
|
68
|
+
|
69
|
+
//(変更前)
|
68
70
|
|
69
71
|
<script src='https://data-archives.jichodo.co.jp/mng/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
|
70
72
|
|
@@ -98,7 +100,9 @@
|
|
98
100
|
|
99
101
|
```
|
100
102
|
|
101
|
-
```jQuery
|
103
|
+
```jQuery
|
104
|
+
|
105
|
+
//(修正後ソース※未解決)
|
102
106
|
|
103
107
|
<script src='https://data-archives.jichodo.co.jp/mng/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
|
104
108
|
|
1
ご指摘いただいた箇所を修正したソースを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
|
66
66
|
|
67
|
-
```jQuery
|
67
|
+
```jQuery(変更前)
|
68
68
|
|
69
69
|
<script src='https://data-archives.jichodo.co.jp/mng/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
|
70
70
|
|
@@ -98,6 +98,42 @@
|
|
98
98
|
|
99
99
|
```
|
100
100
|
|
101
|
+
```jQuery(yambejp様ご指摘後ソース)
|
102
|
+
|
103
|
+
<script src='https://data-archives.jichodo.co.jp/mng/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
|
104
|
+
|
105
|
+
<script>
|
106
|
+
|
107
|
+
$(function(){
|
108
|
+
|
109
|
+
$('#termscheck-1').prop('disabled',true);
|
110
|
+
|
111
|
+
$('label[for="termscheck-1"]').prop('disabled',true);
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
$("#termsWrapper").scroll(function(){
|
116
|
+
|
117
|
+
var setTop = $(this).scrollTop();
|
118
|
+
|
119
|
+
var setHeight =$("#terms").height() - 270; //#termsWrapperの高さ指定にあわせ調整
|
120
|
+
|
121
|
+
if ((setHeight - setTop) < 15) {
|
122
|
+
|
123
|
+
$('#termscheck-1').prop('disabled',false);
|
124
|
+
|
125
|
+
$('label[for="termscheck-1"]').prop('disabled',false);
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
});
|
130
|
+
|
131
|
+
});
|
132
|
+
|
133
|
+
</script>
|
134
|
+
|
135
|
+
```
|
136
|
+
|
101
137
|
メールフォームAでもメールフォームBでも
|
102
138
|
|
103
139
|
問題なくチェックボックスを制御できれば
|