PageSourceSearch

https://www.rizeclinic.com/assets/js/_pages/contact.js?1786064239

js rizeclinic.com collected 2026-09-30 21:53:02 UTC 7,477 bytes, 311 lines download raw bytes

1var inName;
2var pcsp;
3var array0, array1, array2, array3;
4var count = 0;
5
6$(window).on('load', function() {
7  // 院名の取得
8  if($('#form')[0]) {
9    setTimeout(function() {
10      if(inName != '') {
11        $('.step2').show();
12      }
13    }, 300);
14  }
15
16  fnCarte();
17  fnResize();
18})
19
20var currentWidth = window.innerWidth;
21window.addEventListener("resize", function() {
22  if (currentWidth == window.innerWidth) {
23    return;
24  }
25  fnResize();
26});
27
28window.onpageshow = function(evt) {
29  if (evt.persisted) {
30    location.reload();
31  }
32};
33
34$(function() {
35  const isTargetUrl = window.location.href.includes('/coooff/rize/');
36
37  if(isTargetUrl && $(".datepicker")[0]) {
38    $(".datepicker").datepicker({
39      minDate: '-29d',
40      maxDate: 0,
41      onClose: function() {
42        $(this).validationEngine('validate');
43      }
44    })
45  }
46
47  fnFirst();
48  fnCheck();
49});
50
51$('.datepicker').on('click change', function() {
52  fnWish();
53});
54
55function fnWish() {
56  //console.log('fnWish');
57  //console.log('val:'+$('[name="month01"]').val());
58  if($('[name="month01"]').val() == '') {
59    $('[name="month01"]').parents('li').prev().removeClass('wish_ok');
60  } else {
61    $('[name="month01"]').parents('li').prev().addClass('wish_ok');
62  }
63}
64
65// バリデータ
66$('input, select').click(function() {
67  myVali();
68})
69$('.reserv_btn button').click(function() {
70  myVali();
71
72  $('#form').submit();
73})
74function myVali() {
75  //console.log('myVali');
76  // バリデータ用の記述を一括削除
77  $('input, select').removeClass(function(index, className) {
78    return(className.match(/\bvalidate\[required\S+/g) || []).join(' ');
79  });
80
81  // 表示されているコンテンツに対してバリデータを付与
82  $('input.vali:visible, select.vali:visible').each(function() {
83    $(this).addClass($(this).attr('data-vali'));
84  })
85}
86
87$('[name="checkCarte"]').change(function() {
88  fnCarte();
89})
90function fnCarte() {
91  if($('[name="checkCarte"]:checked').val() == 'はい') {
92    $('.checkYes').fadeIn('fast');
93  } else {
94    $('.checkYes').fadeOut('fast');
95  }
96}
97
98$('select').change(function() {
99  $(this).blur();
100})
101
102$(function() {
103  if(location.hash != '') {
104    $('.step2, .body_form').show();
105  }
106  fnFirst();
107
108  // バリデータとリサイズトリガー
109  if($('#form')[0]) {
110    $("#form").validationEngine('attach', {
111      autoPositionUpdate: true,
112    });
113  }
114  $('#form input, #form select').blur(function() {
115    $(window).trigger('resize');
116  })
117
118  $('label').click(function(){}); // label要素をクリッカブルに
119
120  if(inName === undefined) {
121    inName = '';
122  } else {
123    if(inName !== '') {
124      $('.step2').show();
125    }
126  }
127})
128
129// 院選択時
130$('.iinBox li span').click(function() {
131  inName = $(this).text();
132  $('[name="iin"]').val(inName);
133
134  $.removeCookie("iin");
135
136  if(inName != '') {
137    $('.step2').hide();
138    $('.body_form').show();
139    $('.step2').fadeIn();
140    if(parseInt(window.innerWidth) >= 768) {
141      headerHeight = 99;
142    } else {
143      headerHeight = $('.gmenu__head').css('padding-top').replace('px', '');
144    }
145    $('body,html').animate({scrollTop: $('.step2').offset().top - headerHeight}, 400, 'swing');
146    var hiddenFlag = false;
147
148    mySwitch();
149  } else {
150    location.hash = '';
151    $('.step2').fadeOut();
152  }
153});
154
155// 確認画面のテキストエリアの高さ
156function fnResize() {
157  if($('main').hasClass('check')) {
158    $('textarea').each(function() {
159      $(this).css('height', '1.6em');
160      if($(this).get(0).scrollHeight > $(this).innerHeight()) {
161        $(this).css('height', $(this).get(0).scrollHeight + 'px');
162      }
163    })
164  }
165}
166
167function mySwitch() {
168  //console.log('mySwitch');
169  myAddress = address[inName];
170  itenAddress = '';
171  reserve_Tel = saishinTel[inName];
172  myHref = push7[inName];
173  myTeikei = teikei[inName];
174  location.hash = alphabet[inName];
175  fnFirst();
176}
177
178function fnFirst() {
179  //console.log('fnFirst');
180  inName = '';
181  myAddress = '';
182  reserve_Tel = '';
183  switch(location.hash) {
184    case '#sapporo':
185      inName = '札幌院';
186      break;
187    case '#aomori':
188      inName = '青森院';
189      break;
190    case '#hachinohe':
191      inName = '八戸院';
192      break;
193    case '#morioka':
194      inName = '盛岡院';
195      break;
196    case '#sendai':
197      inName = '仙台院';
198      break;
199    case '#iwaki':
200      inName = 'いわき院';
201      break;
202    case '#koriyama':
203      inName = '郡山院';
204      break;
205    case '#omiya_east':
206      inName = '大宮院';
207      break;
208    case '#chiba':
209      inName = '千葉院';
210      break;
211    case '#kashiwa':
212      inName = '柏院';
213      break;
214    case '#ikebukuro':
215      inName = '池袋院';
216      break;
217    case '#shinjuku_3chome':
218      inName = '新宿東口院';
219      break;
220    case '#shibuya_inokashira':
221      inName = '渋谷院';
222      break;
223    case '#ginza':
224      inName = '銀座院';
225      break;
226    case '#tachikawa':
227      inName = '立川院';
228      break;
229    case '#machida':
230      inName = '町田院';
231      break;
232    case '#kawasaki':
233      inName = '川崎院';
234      break;
235    case '#yokohama':
236      inName = '横浜院';
237      break;
238    case '#niigata':
239      inName = '新潟院';
240      break;
241    case '#shizuoka':
242      inName = '静岡院';
243      break;
244    case '#nagoya_sakae':
245      inName = '名古屋栄院';
246      break;
247    case '#nagoya_ekimae':
248      inName = '名古屋駅前院';
249      break;
250    case '#kyoto_kawaramachi':
251      inName = '京都河原町院';
252      break;
253    case '#osaka_umeda':
254      inName = '大阪梅田院';
255      break;
256    case '#osaka_shinsaibashi':
257      inName = '心斎橋院';
258      break;
259    case '#kobe_sannomiya':
260      inName = '神戸三宮院';
261      break;
262    case '#hiroshima':
263      inName = '広島院';
264      break;
265    case '#fukuoka_tenjinekimae':
266      inName = '福岡天神院';
267      break;
268    case '#kumamoto':
269      inName = '熊本院';
270      break;
271  }
272
273  if(inName != '') {
274    $('[name="iin"]').val(inName);
275
276    myZipCode = zipCode[inName];
277    myAddress = address[inName];
278    itenAddress = '';
279    contact_Tel = contactTel[inName];
280    myHref = yoyaku[inName];
281    myTeikei = teikei[inName];
282    location.hash = alphabet[inName];
283
284    //$('.step2 img').attr('src', '');
285    $('.step2 .zipCode').text('〒' + myZipCode);
286    $('.step2 h3 .inName').html(inName);
287    if(myTeikei != '') {
288      $('.step2 #addressArea .inName').html(inName + '<br /><span class="teikei">提携:' + myTeikei + '</span>');
289    } else {
290      $('.step2 #addressArea .inName').html(inName);
291    }
292    $('.step2 #addressArea img').prop('src', '/assets/img/locations/' + alphabet[inName] + '/img_gallery01.jpg');
293    $('.step2 .address').text(myAddress);
294    $('.step2 .tel').html('<a href="tel:' + contact_Tel + '">' + contact_Tel + '</a>');
295  }
296  if(inName == '銀座院') {
297    $('.ginzaOnly').show();
298  } else {
299    $('.ginzaOnly').hide();
300  }
301}
302
303function fnCheck() {
304  if($('main.check')[0]) {
305    if(teikei[$teikei].length > 0) {
306      $('#addressArea .inName').html($teikei + '<br /><span class="teikei">提携:' + teikei[$teikei] + '</span>');
307    } else {
308      $('#addressArea .inName').html($teikei);
309    }
310  }
311}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.