1 2// ------------------------------------------------------------------- 3// commonï¼PC/SPã®åãæ¿ãå¹ (ãã以ä¸ãªãSP) 4// ãï¼ãå¿ ã宣è¨ããã㨠5// ------------------------------------------------------------------- 6$('html').addClass('pre'); 7 8var SP_MAX_WIDTH = 768; 9var elmWin = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 10 11$(window).on('load scroll', function() { 12 if( elmWin > SP_MAX_WIDTH ) { 13 //console.log($('#header').innerHeight()); 14 var value = $(this).scrollTop(); 15 if ( value > $('#header').innerHeight() ) { 16 $('body').addClass('duration'); 17 } else { 18 $('body').removeClass('duration'); 19 } 20 21 } 22}); 23 24$(window).on('load resize', function(){ 25 26 elmWin = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 27 28 //ãããã¼åºå®åã®é«ããã¨ã 29 /* 30 if( $('.breadcrumb').length ){ 31 $('.breadcrumb').css({'margin-top' : $('header').innerHeight() }); 32 }else{ 33 //$('.main').css({'padding-top' : $('header').innerHeight() }); 34 $('#wrapper-main').css({'padding-top' : $('header').innerHeight() }); 35 36 } 37 */ 38 if( $('aside').length && !$('#search').hasClass('wrapper') ) { 39 $('aside').css({'top' : $('header').innerHeight() }); 40 41 if( $('#wrapper-main > .main-visual').length ){ 42 43 $('aside').css({ 44 //'position' : 'static' 45 'position' : 'absolute', 46 'top' : $('#wrapper-main > .main-visual').innerHeight() + $('header').innerHeight(), 47 //'height' : $('.sidebar').innerHeight() 48 }); 49 if( $('.main').innerHeight() < $('aside').innerHeight() ) { 50 $('.main').css({ 51 'height' : $('aside').innerHeight() 52 }); 53 } 54 } 55 } 56 57 /* 58 $('.js-trigger_sp').unbind('click'); 59 //ã¹ããã®ã¿ã®ã¢ã³ãã£ãªã³ 60 if( elmWin <= SP_MAX_WIDTH ) { 61 $('.js-trigger_sp').next().hide(); 62 $('.js-trigger_sp').removeClass('open'); 63 64 $('.js-trigger_sp').click(function(){ 65 $(this).next().slideToggle(); 66 $(this).toggleClass('open'); 67 }); 68 69 } else { 70 //$('.js-trigger_sp').unbind('click'); 71 $('.js-trigger_sp').next().show(); 72 $('.js-trigger_sp').removeClass('open'); 73 } 74 75 */ 76 77 //ã¹ããæã®ã¡ã¬ã¡ãã¥ã¼ç³» 78 // $('.link-mega_menu > a').click(function(){ 79 // /* 80 // if( elmWin < SP_MAX_WIDTH ) { 81 // if( $(this).hasClass('select') ){ 82 // $(this).removeClass('select'); 83 // $(this).children('div').removeAttr('style'); 84 // $('.wrapper').removeClass("blackout"); 85 // }else{ 86 // $(this).addClass('select'); 87 // $(this).children('div').css({ 88 // "visibility": "visible", 89 // "opacity": "1", 90 // "height": "auto" 91 // }); 92 // $('.wrapper').addClass("blackout"); 93 // 94 // } 95 // } 96 // */ 97 // 98 // 99 // if( $(this).parent().hasClass('select') ){ 100 // $(this).parent().removeClass('select'); 101 // $(this).parent().children('div').removeAttr('style'); 102 // $('.wrapper').removeClass("blackout"); 103 // $('#md-cover').remove(); 104 // 105 // bodyScrollPrevent(false); 106 // 107 // }else{ 108 // $('.link-mega_menu').removeClass('select'); 109 // $('.link-mega_menu').children('div').removeAttr('style'); 110 // $('#md-cover').remove(); 111 // 112 // $(this).parent().addClass('select'); 113 // $(this).parent().children('div').css({ 114 // "visibility": "visible", 115 // "opacity": "1", 116 // "height": "auto" 117 // }); 118 // $('.wrapper').addClass("blackout"); 119 // $('body').append('<div id="md-cover"/>'); 120 // $('.box-mega_menu').css({ 121 // 'height': $(window).innerHeight() - $('#header').innerHeight() 122 // }); 123 // bodyScrollPrevent(true); 124 // 125 // } 126 // 127 // $('#md-cover').click(function(){ 128 // $('.link-mega_menu').removeClass('select'); 129 // $('.link-mega_menu').children('div').removeAttr('style'); 130 // $(this).remove(); 131 // $('.wrapper').removeClass("blackout"); 132 // }); 133 // }); 134 135 $('.box-mega_menu').css({ 136 'height': $(window).innerHeight() - $('#header').innerHeight() 137 }); 138 139 140 //ã¿ã°ã®ãã£ã¨è¦ã 141 $('.more-btn').on('click', function() { 142 if( $(this).children().is('.open') ) { 143 $(this).html('<p class="close">éãã</p>').addClass('close-btn'); 144 $(this).parent().removeClass('slide-up').addClass('slide-down'); 145 } else { 146 $(this).html('<p class="open">ããã«è¦ã</p>').removeClass('close-btn'); 147 $(this).parent().removeClass('slide-down').addClass('slide-up'); 148 } 149 }); 150 151 /* 152 if( $('.container-sub_navi').length ) { 153 if( elmWin > SP_MAX_WIDTH ) { 154 $('.wrapper').css({ 155 'margin-top':'160px' 156 }); 157 }else{ 158 $('.wrapper').css({ 159 'margin-top':'123px' 160 }); 161 } 162 }else{ 163 if( elmWin > SP_MAX_WIDTH ) { 164 $('.wrapper').css({ 165 'margin-top':'80px' 166 }); 167 }else{ 168 $('.wrapper').css({ 169 'margin-top':'50px' 170 }); 171 } 172 } 173 174 */ 175 176}); 177 178 179$(function(){ 180 if( $('.box-brand_list').length ){ 181 $('.box-brand_list figure img').matchHeight(); 182 $('.box-brand_list .body').matchHeight(); 183 } 184 $('html').removeClass('pre'); 185}); 186/* 187$(window).on('load', function(){ 188 //ã¹ããã®ã¿ã®ã¢ã³ãã£ãªã³ 189 if( elmWin <= SP_MAX_WIDTH ) { 190// $('.js-trigger_sp').next().hide(); 191 $('.js-trigger_sp').click(function(){ 192 $(this).next().slideToggle(); 193 $(this).toggleClass('open'); 194 }); 195 } else { 196 $('.js-trigger_sp').next().show().removeClass('open'); 197 } 198}); 199*/ 200 201 202$(window).on('load', function(){ 203 if( $('aside').length ){ 204 //ãµã¤ããã 205 } else { 206 //ãµã¤ãç¡ã 207 $('#wrapper-main').addClass('not-side'); 208 } 209 210 $('.js-trigger_sp').unbind('click'); 211 //ã¹ããã®ã¿ã®ã¢ã³ãã£ãªã³ 212 if( elmWin <= SP_MAX_WIDTH ) { 213 $('.js-trigger_sp').next().hide(); 214 $('.js-trigger_sp').removeClass('open'); 215 216 $('.js-trigger_sp').click(function(){ 217 $(this).next().slideToggle(); 218 $(this).toggleClass('open'); 219 }); 220 221 } else { 222 //$('.js-trigger_sp').unbind('click'); 223 $('.js-trigger_sp').next().show(); 224 $('.js-trigger_sp').removeClass('open'); 225 } 226 227 228}); 229 230 231// ------------------------------------------------------------------- 232// ã¹ããã®ã¿ã¢ã³ã¼ãã£ãªã³ã®ã¬ã¹ãã³ã·ãåãæ¿ã 233// ------------------------------------------------------------------- 234/* 235// å¹ ã768px以ä¸ã®ãã¥ã¼ãã¼ããã¿ã¼ã²ããã¨ããæ¡ä»¶ã使 236const mediaQuery = window.matchMedia('(min-width: 768px)') 237 238function handleTabletChange(e) { 239 // ã¡ãã£ã¢ã¯ã¨ãªãtrueãã©ãããç¢ºèª 240 if (e.matches) { 241 //PC 242 $('.js-trigger_sp').unbind('click'); 243 $('.js-trigger_sp').next().show(); 244 $('.js-trigger_sp').removeClass('open'); 245 }else{ 246 //SP 247 $('.js-trigger_sp').next().hide(); 248 $('.js-trigger_sp').removeClass('open'); 249 250 $('.js-trigger_sp').click(function(){ 251 $(this).next().slideToggle(); 252 $(this).toggleClass('open'); 253 }); 254 } 255} 256 257// ã¤ãã³ããªã¹ãã¼ãç»é² 258mediaQuery.addListener(handleTabletChange) 259 260// åæãã§ã㯠261handleTabletChange(mediaQuery) 262 263 */ 264 265 266document.addEventListener('DOMContentLoaded', function () { 267 var mql = window.matchMedia('screen and (max-width: 780px)'); 268 269 function checkBreakPoint(mql) { 270 $('.js-trigger_sp').unbind('click'); 271 if (mql.matches) { 272 //SP 273 $('.js-trigger_sp').next().hide(); 274 $('.js-trigger_sp').removeClass('open'); 275
276 $('.js-trigger_sp').click(function(){ 277 $(this).next().slideToggle(); 278 $(this).toggleClass('open'); 279 }); 280 } else { 281 //PC 282 $('.js-trigger_sp').next().show(); 283 $('.js-trigger_sp').removeClass('open'); 284 } 285 } 286 287 // ãã¬ã¤ã¯ãã¤ã³ãã®ç¬éã«çºç« 288 mql.addListener(checkBreakPoint); 289 290 // ååãã§ã㯠291 checkBreakPoint(mql); 292}); 293 294 295 296 297 298$(function(){ 299 //ç»åãèæ¯ã«å¤æ´ 300 $('img.bg-image').each( 301 function(){ 302 //ç»åãµã¤ãºã®åå¾ 303 var img = { 304 width:Number($(this).attr('width')), 305 height:Number($(this).attr('height')) 306 }; 307 308 //imgã¿ã°ãdivã«å¤ããè¦ç´ ãçæ 309 var target = $($(this).prop('outerHTML').replace('<img','<div') + '</div>'); 310 311 //ä¸è¦ãªå±æ§ãåé¤ 312 target.removeAttr('width height alt src'); 313 314 //èæ¯ç»åã«å¤æ´ 315 target.css({ 316 backgroundImage: 'url('+ $(this).attr('src') +')' 317 }); 318 319 //imgã¨divã®å·®ãæ¿ã 320 $(this).before(target).remove(); 321 }); 322}); 323 324 325$(function(){ 326 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 327 $('a[href^="#"]').not('.popup-modal').click(function() { 328 var speed = 400; 329 var href= $(this).attr("href"); 330 var target = $(href == "#" || href == "" ? 'html' : href);//ãããã¼åºå®ãªã®ã§ãããã¼ã®é«ãåãå·®ãå¼ã 331 var position = target.offset().top - $('header').innerHeight(); 332 $('body,html').animate({scrollTop:position}, speed, 'swing'); 333 return false; 334 }); 335}); 336 337$(function () { 338 339 /** 340 * ã¢ã³ã¼ãã£ãªã³ 341 */ 342 $('.js-ac_trigger:not(.open)').next().hide(); 343 $('.js-ac_trigger').click(function(){ 344 $(this).next().slideToggle(); 345 $(this).toggleClass('open'); 346 }); 347 348 349 /** 350 * ã¹ãã¼ããã©ã³ç¨ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ 351 */ 352 $('.menuBtn').click(function(e){ 353 var elmBtn = $(e.currentTarget); 354 var elmMenu = $('#gNavi'); 355 356 elmMenu.stop(); 357 elmBtn.toggleClass('open'); 358 var bOpen = elmBtn.hasClass('open'); 359 360 elmMenu.toggleClass('open'); 361 362 if (bOpen) { 363 $('html,body').css({ 364 'overflow':'hidden', 365 //'top': $(window).scrollTop() 366 367 }); 368 $('.wrapper').css({ 369 //'position':'relative', 370 //'transform':'translateX(69%)', 371 //'left':'69%' 372 'margin-left':'69%' 373 374 }); 375 376 377 if( $('.breadcrumb').length ){ 378 $('#gNavi').css({ 379 //'transform':'translateX(0)', 380 //'top': $(window).scrollTop() - $('header').innerHeight() 381 }); 382 }else{ 383 $('#gNavi').css({ 384 //'transform':'translateX(0)', 385 //'top': $(window).scrollTop() 386 }); 387 } 388 389 if( $('.breadcrumb').length ){ 390 $('#header').css({ 391 //'top': $(window).scrollTop() - $('header').innerHeight() 392 }); 393 }else{ 394 $('#header').css({ 395 //'top': $(window).scrollTop() 396 }); 397 } 398 399 } else { 400 //$('html, body, .wrapper, #gNavi').removeAttr('style'); 401 $('html, body').removeAttr('style'); 402 $('.wrapper').css({ 403 //'position':'relative', 404 'margin-left':'0' 405 }); 406 $('#header').delay(300).queue(function(){ 407 //$('#header').removeAttr('style').dequeue(); 408 }); 409 410 $('#gNavi').css({ 411 //'transform':'translateX(0)', 412 //'top': -$('header').innerHeight() 413 //'left':'-69%' 414 }); 415 } 416 417 418 419 //ã¹ããããPCã¸ãªãµã¤ãºãã¦ããããã§ãããã« 420 $(window).resize(function(){ 421 bOpen = elmBtn.hasClass('open'); 422 if(elmWin.innerWidth() > SP_MAX_WIDTH){ 423 elmBtn.removeClass('open'); 424 elmMenu.css({ 425 'display' : 'block' 426 }); 427 } else { 428 if( bOpen ) { 429 430 } else { 431 elmMenu.css({ 432 'display' : 'none' 433 }); 434 } 435 436 } 437 }); 438 439 }); 440 441 442 //matchHeight 443 if ($('.match-height').length) { 444 $('.match-height').matchHeight(); 445 } 446 if ($('.form-header,.form-content').length) { 447 $('.form-header,.form-content').matchHeight(); 448 } 449 450 451 /** 452 * ãµã¤ãããã¹ã¯ãã¼ã«å¦ç 453 */ 454 /* 455 var sideFlag = $("#js-side_scroll"); 456 $(window).scroll(function(){ 457 458 if( sideFlag.length && !$('#search').length ){ 459 $('aside').addClass('before'); 460 461 if(elmWin > SP_MAX_WIDTH && !$('#wrapper-main > .main-visual').length ){ 462 463 scrollHeight = $(document).height(); 464 scrollPosition = $(window).height() + $(window).scrollTop(); 465 466 if ( scrollPosition > sideFlag.offset().top ) { 467 //åãã 468 $('aside').addClass('scroll'); 469 $('aside').css({ 470 'top': sideFlag.offset().top - $(window).height() + 80 471 }); 472 } else { 473 //åºå® 474 $('aside').removeClass('scroll'); 475 $('aside').removeAttr('style'); 476 } 477 478 }//PCã®ã¿ 479 480 } 481 482 }); 483 484 */ 485 486 /** 487 * ãã¼ã¸ãããå¦ç 488 */ 489 var pageTop = $("#pagetop"); 490 $(window).scroll(function(){ 491 scrollHeight = $(document).height(); 492 scrollPosition = $(window).height() + $(window).scrollTop(); 493 footHeight = $(".footer").height(); 494 495 if ($(this).scrollTop() > 100) { 496 $('#pagetop').fadeIn(); 497 } else { 498 $('#pagetop').fadeOut(); 499 } 500 501 502 if ( scrollHeight - scrollPosition < footHeight-130 ) { 503 $("a#pagetop").css({"position":"fixed"}); 504 } else { 505 $("a#pagetop").css({"position":"fixed"}); 506 } 507 508 }); 509 pageTop.click(function () { 510 $('body, html').animate({ scrollTop: 0 }, 500); 511 return false;
512 }); 513 514 515 //ã¿ãå¦çï¼æ§å¥ãªã³ã¯ã®ã¿ï¼ï¼ 516 if( $('.tab-group').length ){ 517 $('.tab').click(function(){ 518 $(this).parent().find('a').removeClass('is-active'); 519 $(this).find('a').addClass('is-active'); 520 $(this).parent().next('.panel-group').find('.panel').removeClass('is-show'); 521 const index = $(this).index(); 522 $(this).parent().next('.panel-group').find('.panel').eq(index).addClass('is-show'); 523 }); 524 } 525 526 // --- ããã·ã¥å¤å® --- 527 var hash = window.location.hash; 528 if (hash === '#hochouki') { 529 // .tab.hochouki ã¯ã©ã¹ãæã¤è¦ç´ ãã¾ã㯠4çªç®ã®ã¿ããæå® 530 var $targetTab = $('.tab-group .tab.hochouki'); 531 532 // ããã¯ã©ã¹å .hochouki ãHTMLå´ã«ãªãå ´åã¯ãé çªã§æå® 533 if ($targetTab.length === 0) { 534 $targetTab = $('.tab-group .tab').eq(3); // 0ããæ°ãã¦3çªç®ï¼4ã¤ç®ã®ã¿ã 535 } 536 537 if ($targetTab.length) { 538 $targetTab.trigger('click'); 539 540 // ã¿ãã®ä½ç½®ã¾ã§ã¹ã¯ãã¼ã«ãããï¼å¿ è¦ã«å¿ãã¦ï¼ 541 var offset = $targetTab.offset().top - 100; 542 $('html, body').animate({scrollTop: offset}, 400); 543 } 544 } 545 546}); 547 548// ------------------------------------------------------------------- 549// commonï¼é»è©±çªå·ãªã³ã¯ã®å¶å¾¡(PCã®å ´åã¯telãªã³ã¯ãç¡å¹å) 550// jsTelLinkã¯ã©ã¹ãæã¤ããªã³ã¯ã¿ã°(aã¿ã°)ã®ã¿ã«æå¹ 551// ------------------------------------------------------------------- 552$(function () { 553//$(document).ready(function(){ 554 //å¤å®ã¢ã¼ã 555 //ã»ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãå¤å®ï¼ua 556 //ã»ç»é¢å¹ å¤å®ï¼width(ua以å¤ãªãä½ã§ã) 557 var strMode = 'ua'; 558 559 560 var bEnable = false; 561 switch(strMode){ 562 //ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãå¤å® 563 case 'ua': { 564 var ua = navigator.userAgent.toLowerCase(); 565 566 //ã©ãã«ãå½ã¦ã¯ã¾ããªããã°ãPC(ãªã³ã¯ç¡å¹) 567 bEnable = (ua.indexOf('phone') == -1 //iPhoneã¨Windows phone 568 && ua.indexOf('ipad') == -1 //iPad 569 && ua.indexOf('android') == -1); //Androidã¨Androidã¿ãã¬ãã 570 571 break; 572 } 573 574 //ç»é¢å¹ å¤å® 575 default: { 576 bEnable = (elmWin > SP_MAX_WIDTH); 577 break; 578 } 579 } 580 581 //ãªã³ã¯ãç¡å¹ã«ãã 582 if(bEnable){ 583 $('a.jsTelLink').each(function(){ 584 var elmNew = $('<span/>', { 585 'class': $(this).attr('class') 586 }); 587 elmNew.html($(this).html()); 588 589 $(this).replaceWith(elmNew); 590 }); 591 } 592}); 593 594 595$(function () { 596 $('.popup-modal').magnificPopup({ 597 type: 'inline', 598 preloader: false 599 }); 600 $(document).on('click', '.btn-close_wrap', function (e) { 601 e.preventDefault(); 602 $.magnificPopup.close(); 603 }); 604}); 605 606 607// ------------------------------------------------------------------- 608//ã¢ã¼ãã«åããã¨ãã®ã¹ã¯ãã¼ã«åãºã¬ãã®ãè§£æ¶ 609// ------------------------------------------------------------------- 610function bodyScrollPrevent(flag){ 611 let scrollPosition; 612 const body = document.getElementsByTagName('body')[0]; 613 const ua = window.navigator.userAgent.toLowerCase(); 614 const isiOS = ua.indexOf('iphone') > -1 || ua.indexOf('ipad') > -1 || ua.indexOf('macintosh') > -1 && 'ontouchend' in document; 615 const scrollBarWidth = window.innerWidth - document.body.clientWidth; 616 if(flag){ 617 body.style.paddingRight = scrollBarWidth + 'px'; 618 if(isiOS){ 619 scrollPosition = -window.pageYOffset; 620 body.style.position = 'fixed'; 621 body.style.width = '100%'; 622 body.style.top = scrollPosition + 'px'; 623 } else { 624 body.style.overflow = 'hidden'; 625 } 626 } else if(!flag) { 627 body.style.paddingRight = ''; 628 if(isiOS){ 629 scrollPosition = parseInt(body.style.top.replace(/[^0-9]/g,'')); 630 body.style.position = ''; 631 body.style.width = ''; 632 body.style.top = ''; 633 window.scrollTo(0, scrollPosition); 634 }else { 635 body.style.overflow = ''; 636 } 637 } 638} 639 640/** 641 * Contact Form 7ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã®å ´æã夿´ 642 */ 643// ã¨ã©ã¼ã¡ãã»ã¼ã¸ä½ç½®å¤æ´ 644$(document).on('wpcf7invalid', function() { 645 $('.wpcf7-custom-item-error').html(''); 646 $.ajax().always(function () { 647 //å§ 648 $('.wpcf7-form-control-wrap.i_name_sei').each(function (index, el) { 649 if ($(el).find('.wpcf7-not-valid-tip').length) { 650 $('.wpcf7-custom-item-error.i_name_sei').append('<span style="margin-right:10px;" />'); 651 $('.wpcf7-custom-item-error.i_name_sei span').append($(el).find('.wpcf7-not-valid-tip').html()); 652 } 653 }); 654 //å 655 $('.wpcf7-form-control-wrap.i_name_mei').each(function (index, el) { 656 if ($(el).find('.wpcf7-not-valid-tip').length) { 657 $('.wpcf7-custom-item-error.i_name_mei').append('<span style="margin-right:10px;" />'); 658 $('.wpcf7-custom-item-error.i_name_mei span').append($(el).find('.wpcf7-not-valid-tip').html()); 659 } 660 }); 661 //ãã 662 $('.wpcf7-form-control-wrap.i_kana_sei').each(function (index, el) { 663 if ($(el).find('.wpcf7-not-valid-tip').length) { 664 $('.wpcf7-custom-item-error.i_kana_sei').append('<span style="margin-right:10px;" />'); 665 $('.wpcf7-custom-item-error.i_kana_sei span').append($(el).find('.wpcf7-not-valid-tip').html()); 666 } 667 }); 668 //ãã 669 $('.wpcf7-form-control-wrap.i_kana_mei').each(function (index, el) { 670 if ($(el).find('.wpcf7-not-valid-tip').length) { 671 $('.wpcf7-custom-item-error.i_kana_mei').append('<span style="margin-right:10px;" />'); 672 $('.wpcf7-custom-item-error.i_kana_mei span').append($(el).find('.wpcf7-not-valid-tip').html()); 673 } 674 }); 675 676 //éµä¾¿çªå· 677 $('.wpcf7-form-control-wrap.zip').each(function (index, el) { 678 if ($(el).find('.wpcf7-not-valid-tip').length) { 679 if($('.wpcf7-custom-item-error.zip').html() == ""){ 680 $('.wpcf7-custom-item-error.zip').append('<span style="margin-right:10px;" />'); 681 $('.wpcf7-custom-item-error.zip span').html($(el).find('.wpcf7-not-valid-tip').html()); 682 } 683 } 684 }); 685 $('.wpcf7-form-control-wrap.zip1').each(function (index, el) { 686 if ($(el).find('.wpcf7-not-valid-tip').length) { 687 if($('.wpcf7-custom-item-error.zip').html() == ""){ 688 $('.wpcf7-custom-item-error.zip').append('<span style="margin-right:10px;" />'); 689 $('.wpcf7-custom-item-error.zip span').html($(el).find('.wpcf7-not-valid-tip').html()); 690 } 691 } 692 }); 693 694 //é½éåºç 695 $('.wpcf7-form-control-wrap.pref').each(function (index, el) { 696 if ($(el).find('.wpcf7-not-valid-tip').length) { 697 $('.wpcf7-custom-item-error.pref').append('<span style="margin-right:10px;" />'); 698 $('.wpcf7-custom-item-error.pref span').append($(el).find('.wpcf7-not-valid-tip').html()); 699 } 700 }); 701 //å¸åºçºæä»¥ä¸ã®ä½æ 702 $('.wpcf7-form-control-wrap.city').each(function (index, el) { 703 if ($(el).find('.wpcf7-not-valid-tip').length) { 704 $('.wpcf7-custom-item-error.city').append('<span style="margin-right:10px;" />'); 705 $('.wpcf7-custom-item-error.city span').append($(el).find('.wpcf7-not-valid-tip').html()); 706 } 707 }); 708 709 //é»è©±çªå· 710 $('.wpcf7-form-control-wrap.i_tel1').each(function (index, el) { 711 if ($(el).find('.wpcf7-not-valid-tip').length) { 712 if($('.wpcf7-custom-item-error.tel').html() == ""){ 713 $('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />'); 714 $('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html()); 715 } 716 } 717 }); 718 $('.wpcf7-form-control-wrap.i_tel2').each(function (index, el) { 719 if ($(el).find('.wpcf7-not-valid-tip').length) { 720 if($('.wpcf7-custom-item-error.tel').html() == ""){ 721 $('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />'); 722 $('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html()); 723 } 724 } 725 }); 726 $('.wpcf7-form-control-wrap.i_tel3').each(function (index, el) { 727 if ($(el).find('.wpcf7-not-valid-tip').length) { 728 if($('.wpcf7-custom-item-error.tel').html() == ""){ 729 $('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />'); 730 $('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html()); 731 } 732 } 733 }); 734 735 //ã¡ã¼ã«ã¢ãã¬ã¹ 736 $('.wpcf7-form-control-wrap.i_email').each(function (index, el) { 737 if ($(el).find('.wpcf7-not-valid-tip').length) { 738 $('.wpcf7-custom-item-error.i_email').append('<span style="margin-right:10px;" />'); 739 $('.wpcf7-custom-item-error.i_email span').append($(el).find('.wpcf7-not-valid-tip').html()); 740 } 741 }); 742 //ã¡ã¼ã«ã¢ãã¬ã¹ç¢ºèª 743 $('.wpcf7-form-control-wrap.i_email_check').each(function (index, el) { 744 if ($(el).find('.wpcf7-not-valid-tip').length) { 745 $('.wpcf7-custom-item-error.i_email_check').append('<span style="margin-right:10px;" />'); 746 $('.wpcf7-custom-item-error.i_email_check span').append($(el).find('.wpcf7-not-valid-tip').html()); 747 } 748 }); 749 750 //ãã®ä»è¦æ 751 $('.wpcf7-form-control-wrap.t_message').each(function (index, el) { 752 if ($(el).find('.wpcf7-not-valid-tip').length) { 753 $('.wpcf7-custom-item-error.t_message').append('<span style="margin-right:10px;" />'); 754 $('.wpcf7-custom-item-error.t_message span').append($(el).find('.wpcf7-not-valid-tip').html()); 755 } 756 }); 757 758 759 //貴社å 760 $('.wpcf7-form-control-wrap.c_name').each(function (index, el) { 761 if ($(el).find('.wpcf7-not-valid-tip').length) { 762 $('.wpcf7-custom-item-error.c_name').append('<span style="margin-right:10px;" />'); 763 $('.wpcf7-custom-item-error.c_name span').append($(el).find('.wpcf7-not-valid-tip').html()); 764 } 765 });
766 //貴社åï¼ãµãããªï¼ 767 $('.wpcf7-form-control-wrap.c_kana').each(function (index, el) { 768 if ($(el).find('.wpcf7-not-valid-tip').length) { 769 $('.wpcf7-custom-item-error.c_kana').append('<span style="margin-right:10px;" />'); 770 $('.wpcf7-custom-item-error.c_kana span').append($(el).find('.wpcf7-not-valid-tip').html()); 771 } 772 }); 773 774 //é»è©±çªå· 775 $('.wpcf7-form-control-wrap.i_tel').each(function (index, el) { 776 if ($(el).find('.wpcf7-not-valid-tip').length) { 777 if($('.wpcf7-custom-item-error.i_tel').html() == ""){ 778 $('.wpcf7-custom-item-error.i_tel').append('<span style="margin-right:10px;" />'); 779 $('.wpcf7-custom-item-error.i_tel span').html($(el).find('.wpcf7-not-valid-tip').html()); 780 } 781 } 782 }); 783 //é½éåºç 784 $('.wpcf7-form-control-wrap.pref_name').each(function (index, el) { 785 if ($(el).find('.wpcf7-not-valid-tip').length) { 786 $('.wpcf7-custom-item-error.pref_name').append('<span style="margin-right:10px;" />'); 787 $('.wpcf7-custom-item-error.pref_name span').append($(el).find('.wpcf7-not-valid-tip').html()); 788 } 789 }); 790 //å¸åºçºæä»¥ä¸ã®ä½æ 791 $('.wpcf7-form-control-wrap.i_addr').each(function (index, el) { 792 if ($(el).find('.wpcf7-not-valid-tip').length) { 793 $('.wpcf7-custom-item-error.i_addr').append('<span style="margin-right:10px;" />'); 794 $('.wpcf7-custom-item-error.i_addr span').append($(el).find('.wpcf7-not-valid-tip').html()); 795 } 796 }); 797 798 //å½¢æ 799 $('.wpcf7-form-control-wrap.i_form').each(function (index, el) { 800 if ($(el).find('.wpcf7-not-valid-tip').length) { 801 $('.wpcf7-custom-item-error.i_form').append('<span style="margin-right:10px;" />'); 802 $('.wpcf7-custom-item-error.i_form span').append($(el).find('.wpcf7-not-valid-tip').html()); 803 } 804 }); 805 }); 806});
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.