質問編集履歴
1
ソース削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,174 +8,6 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
申し訳ございません。
|
11
12
|
|
12
|
-
|
13
|
-
--HTML--
|
14
|
-
|
15
|
-
//タブ
|
16
|
-
|
17
|
-
<input id="tab1" type="radio" name="tab_btn">
|
18
|
-
|
19
|
-
<input id="tab2" type="radio" name="tab_btn" checked>
|
20
|
-
|
21
|
-
<input id="tab3" type="radio" name="tab_btn">
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
--JS--
|
32
|
-
|
33
|
-
$(function () {
|
34
|
-
|
35
|
-
$('input[name="tab_btn"]').on('change', function (){
|
36
|
-
|
37
|
-
let id = $('input[name="tab_btn"]:checked').attr('id');
|
38
|
-
|
39
|
-
let target = $('a.firstview-cta,a.cta-float__button');
|
40
|
-
|
41
|
-
let target_cp = $('p.fv_catchplus');
|
42
|
-
|
43
|
-
let target_h1 = $('div.firstview_catch h1');
|
44
|
-
|
45
|
-
let target_cvb = $('nav.cv_button');
|
46
|
-
|
47
|
-
let target_cvba = $('a.cv_button_a');
|
48
|
-
|
49
|
-
//省略
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
if (id === 'tab1') {
|
54
|
-
|
55
|
-
target_fv_img.attr('src', 'lp_purchase/image/monitoring.png');
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
target.find('strong').html('申し込む1');
|
60
|
-
|
61
|
-
target.attr('href', cta_url);
|
62
|
-
|
63
|
-
target_cp.html('<span class="u-decoration no1label"><span class="ts170"><span class="yellow ts200">0.38%</span>!</span></span>');
|
64
|
-
|
65
|
-
target_cvba.attr('href', cta_url);
|
66
|
-
|
67
|
-
target_mm.attr('src', 'lp_purchase/image/monitoring.png');
|
68
|
-
|
69
|
-
target_o.attr('src', 'lp_purchase/image/operator.png');
|
70
|
-
|
71
|
-
target_pt.html('No.1金利<small>※</small>住宅ローン<span class="font-s">の</span><br class="br_sp">借り入れ<span class="font-s">を</span>無料<span class="font-s">で</span><br class="br_sp">サポートします。<br/><small>※付帯する団体信用生命保険を加味して<br class="br_sp">最も低いと当社が判断する金利</small>');
|
72
|
-
|
73
|
-
target_fn.html('');
|
74
|
-
|
75
|
-
$('a.cv_button_a_d').show();
|
76
|
-
|
77
|
-
$('a.cv_button_a_r').hide();
|
78
|
-
|
79
|
-
$('a.cta-float__button').show();
|
80
|
-
|
81
|
-
$('a.cta-float__button_pattern').hide();
|
82
|
-
|
83
|
-
target_f_cta.addClass("cta_ds");
|
84
|
-
|
85
|
-
target_f_cta.removeClass("cta_dn");
|
86
|
-
|
87
|
-
target_f_cta_p.addClass("cta_dn");
|
88
|
-
|
89
|
-
target_f_cta_p.removeClass("cta_ds");
|
90
|
-
|
91
|
-
$('button.conditions_text_1').hide();
|
92
|
-
|
93
|
-
$('div.menu1').hide();
|
94
|
-
|
95
|
-
$('section#firstview_purchase').hide();
|
96
|
-
|
97
|
-
target_usercount.show();
|
98
|
-
|
99
|
-
target_smartphone.attr('src', 'lp_purchase/image/fv_img_smartphone_mogecheck.png');
|
100
|
-
|
101
|
-
$('img.fv_img_crown').show();
|
102
|
-
|
103
|
-
$('img.fv_img_mogepass').hide();
|
104
|
-
|
105
|
-
$('div.fv_catch_no1_balloon').show();
|
106
|
-
|
107
|
-
free_service_note.html('')
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
} else if (id === 'tab2') {
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
target_fv_img.attr('src', 'lp_purchase/image/monitoring.png');
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
target.find('strong').html('申し込む2');
|
122
|
-
|
123
|
-
target_fn.html('');
|
124
|
-
|
125
|
-
$('a.cv_button_a_d').hide();
|
126
|
-
|
127
|
-
$('a.cv_button_a_r').show();
|
128
|
-
|
129
|
-
$('a.cta-float__button').hide();
|
130
|
-
|
131
|
-
$('a.cta-float__button_pattern').show();
|
132
|
-
|
133
|
-
target_f_cta.removeClass("cta_ds");
|
134
|
-
|
135
|
-
target_f_cta.addClass("cta_dn");
|
136
|
-
|
137
|
-
target_f_cta_p.removeClass("cta_dn");
|
138
|
-
|
139
|
-
target_f_cta_p.addClass("cta_ds");
|
140
|
-
|
141
|
-
$('button.conditions_text_1').hide();
|
142
|
-
|
143
|
-
$('div.menu1').hide();
|
144
|
-
|
145
|
-
$('a.cvba_pattern_none').hide();
|
146
|
-
|
147
|
-
$('section#firstview_purchase').hide();
|
148
|
-
|
149
|
-
target_usercount.show();
|
150
|
-
|
151
|
-
target_smartphone.attr('src', 'lp_purchase/image/fv_img_smartphone_mogecheck.png');
|
152
|
-
|
153
|
-
$('img.fv_img_crown').show();
|
154
|
-
|
155
|
-
$('img.fv_img_mogepass').hide();
|
156
|
-
|
157
|
-
$('div.fv_catch_no1_balloon').show();
|
158
|
-
|
159
|
-
free_service_note.html('')
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
} else if (id === 'tab3') {
|
168
|
-
|
169
|
-
//同じような中身
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
matchHeight();
|
178
|
-
|
179
|
-
}).trigger('change');
|
180
|
-
|
181
|
-
});
|
13
|
+
こちら再度考えてから質問できたらと思います。
|