vendor: 4,909 bytes, lines 1-29
1// jquery.matchHeight-min.js 2/* 3* jquery-match-height 0.7.2 by @liabru 4* http://brm.io/jquery-match-height/ 5* License MIT 6*/ 7!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={ 8byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null, 9r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0", 10"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={ 11display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)), 12this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i; 13}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})}); 14 15/* 16* ua check class 17*/ 18var ua = navigator.userAgent; 19var uac = { os:'', browser:'', ie:'', sp:0, urlhash:'' }; 20if(ua.match(/Win(dows )?NT 10\.0/)){ uac.os='win win10'; } else if(ua.match(/Win(dows )?NT 6\.3/)){ uac.os='win win8-1'; } else if(ua.match(/Win(dows )?NT 6\.2/)){ uac.os='win win8'; } else if(ua.match(/Win(dows )?NT 6\.1/)){ uac.os='win win7'; } else if(ua.match(/Mac|PPC/) && ua.search(/iPhone|iPod|iPad/) == -1){ uac.os='mac'; } else{ uac.sp = 1; if(ua.search(/iPhone/) != -1){ uac.os='sp iphone'; } else if(ua.search(/iPad/) != -1){ uac.os='sp ipad'; } else if(ua.search(/Android/) != -1){ uac.os='sp android'; } } 21if(ua.match(/msie/i) || ua.match(/Trident/i)){ uac.ie='IE'; if(ua.match(/Trident/i)){ uac.browser='IE11'; } else if(ua.match(/msie 10/i)){ uac.browser='IE10'; } } else if(ua.match(/edge/i)){ uac.browser='edge'; } else if(ua.match(/firefox/i)){ uac.browser='firefox'; } else if(ua.match(/opera/i)){ uac.browser='opera'; } else if(ua.match(/safari/i)){ if(ua.match(/chrome/i)){ uac.browser='chrome'; } else { uac.browser='safari'; } } 22$(function(){ $('body').addClass(uac.os+' '+uac.browser); if(uac.ie){ $('body').addClass(uac.ie); } if(uac.sp != 1){ $('body').addClass('pc'); } }); 23 24// Android Mincho 25if(uac.os == 'sp android'){ document.head.insertAdjacentHTML('beforeend', '<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap" rel="stylesheet">'); } 26 27// parallax 28var plOpt = { list:[], top:[], def:0 }; 29var PlxTimer = false;
30function wcPlxReset(){ if( typeof $('.plx').get(0) == 'undefined' ){ return true; } plOpt = { list:[], top:[], def:parseInt($(window).innerHeight() + 20) }; $('.plx:not(.plx_on)').each(function(){ plt = $(this).offset().top; if( $(this).attr('data-plxtop') ){ plt = plt + parseInt($(this).attr('data-plxtop')); } if( plt < (plOpt.def + $(window).scrollTop()) ){ $(this).addClass('plx_on'); } else{ plOpt.list.push($(this)); plOpt.top.push(parseInt(plt)); } }); } 31function wcPlxScroll(){ if( Math.min.apply(null,plOpt.top) < (plOpt.def+ $(window).scrollTop())){ elm = plOpt.list[0]; $(elm).addClass('plx_on'); plOpt.list.splice(0,1); plOpt.top.splice(0,1); if( plOpt.top[0] ){ wcPlxScroll(); } } clearTimeout(PlxTimer); } 32 33// gtag event 34function wcEventTrack(cat,act,label){ if(typeof gtag == 'function'){ gtag('event', act, { 'event_category':cat, 'event_label':label }); } } 35 36// hashscroll 37uac.urlhash = location.hash; 38function hashScroll(urlhash){ if( urlhash != '' && $(urlhash).get(0) ){ urlhash_top = $(urlhash).offset().top - 50; $('body,html').animate({ scrollTop: urlhash_top }, 500); } else{ return false; } } 39 40// height 41function heightAuto(){ 42 $('.height-1_all').matchHeight(); 43 $('.height-2_all').matchHeight(); 44 if(window.innerWidth >= 576 ){ 45 $('.height-1').matchHeight(); 46 $('.height-1r').matchHeight({ byRow:false }); 47 $('.height-2').matchHeight(); 48 $('.height-2r').matchHeight({ byRow:false }); 49 $('.link_list a.image').matchHeight(); 50 51 w1 = 0; 52 $('.width-1').each(function(){ 53 $(this).css('width',''); 54 if( $(this).outerWidth() > w1 ){ 55 w1 = $(this).outerWidth(); 56 } 57 }); 58 $('.width-1').css('width',w1); 59 } else{ 60 $('.width-1').css('width',''); 61 } 62 63 $('#side_navi').removeClass('_scroll'); 64 if( $('#layout_wrap').outerHeight() > $(window).innerHeight() ){ 65 $('#side_navi').addClass('_scroll'); 66 } 67} 68 69var wcElm = { head:'#layout_wrap', menuBtn:'#btn_open a', topBtn:'#pagetop' }; 70$(function(){ 71 // common 72 $('#body table').each(function(){ if( $(this).hasClass('tbl_sp') == false && $(this).hasClass('tbl_form') == false ){ $(this).wrap('<div class="sp_table_wrap"></div>'); } }); 73 $('.img_back').each(function(){ if( $(this).children('img') ){ src = $(this).children('img').attr('src'); $(this).css({'background-image':'url('+src+')'}); } }); 74 75 // pagetop / hash 76 if( uac.urlhash != '' && $(uac.urlhash).get(0) ){ $('#head').addClass('fixed'); } 77 if( $(wcElm.topBtn).get(0) ){ $(wcElm.topBtn).hide(); $(wcElm.topBtn+' a').on('click',function(){ $('body,html').animate({ scrollTop:0 }, 500); return false; }); } 78 $('a[href*="#"]').on('click',function(){ urlhash = $(this.hash); hashScroll(urlhash); }); 79 80 // tel / link 81 if(uac.sp == 1){ 82 $('.tel[data-tel]').on('click',function(){ telNum = $(this).attr('data-tel'); wcEventTrack('ã³ã³ãã¼ã¸ã§ã³','TEL',telNum); window.location.href = 'tel:'+telNum; }); 83 $('a[href^="tel:"]').on('click',function(){ telNum = $(this).attr('href'); telNum = telNum.replace('tel:',''); wcEventTrack('ã³ã³ãã¼ã¸ã§ã³','TEL',telNum); return true; }); 84 } else{ 85 $('a[href^="tel:"]').on('click',function(){ return false; }); 86 } 87 $('a[href$=".pdf"]').on('click',function(){ ahref = $(this).attr('href'); wcEventTrack('ãªã³ã¯','PDF',ahref); return true; }); 88 $('a.ga_link').on('click',function(){ ahref = $(this).attr('href'); wcEventTrack('ãªã³ã¯','LINK',ahref); return true; }); 89 90 // print 91 var beforePrint = function(){ $('head meta[name="viewport"]').attr('content','width=1200px'); }; 92 var afterPrint = function(){ $('head meta[name="viewport"]').attr('content','width=device-width, initial-scale=1'); }; 93 if(window.matchMedia){ var mq = window.matchMedia('print'); mq.addListener(function(mql){ if(mql.matches){ beforePrint(); $('body').addClass('print'); } else { afterPrint(); $('body').removeClass('print'); } }); } 94 window.onbeforeprint = beforePrint; 95 window.onafterprint = afterPrint; 96 97 $('#navi_wrap a').on('click',function(){ if( $('#menu_cover').get(0) ){ $(wcElm.menuBtn).trigger('click'); } }); 98 $(wcElm.menuBtn).off('click'); 99 $(wcElm.menuBtn).on('click',function(){ 100 $('#base').toggleClass('open'); 101 if( $('#menu_cover').get(0) ){ $('#menu_cover').remove(); } else{ $('#base').append('<div id="menu_cover"></div>'); } 102 return false;
103 }); 104 105 $('#side_navi a').off('click'); 106 $('#side_navi .main > li > a').on('click',function(){ if( !$(this).next('.sub').get(0) ){ return true; } return mainNaviToggle($(this)); }); 107 $('#side_navi .has_sub > a').on('click',function(){ 108 if( $(this).parent('li').hasClass('on') ){ $(this).parent('li').removeClass('on'); return false; } 109 $(this).parent('li').addClass('on'); 110 var subN = $(this).parents('ul.sub').removeClass('_scroll').css('max-height',''); 111 var subScroll = $(window).scrollTop(); 112 if( $(subN).css('position') == 'absolute' && ( $(subN).offset().top - subScroll + $(subN).height() ) > $(window).innerHeight() ){ 113 $(subN).addClass('_scroll').css('max-height', ($(window).innerHeight() - $(subN).offset().top + subScroll - 10 ) ); 114 } 115 return false; 116 }); 117 118 $('#head_navi .lang > a').off('click'); 119 $('#head_navi .lang > a').on('click',function(){ 120 if( !$(this).next('.sub').get(0) ){ return true; } 121 $(this).next('.sub').toggle(); 122 return false; 123 }); 124 125 function mainNaviToggle(elm){ 126 var pClass = ''; 127 $('#side_navi li').removeClass('not'); 128 $('#side_navi ul').removeClass('_scroll').css('max-height','') 129 if( !$(elm).parent('li').hasClass('on') ){ pClass = $(elm).parent('li').attr('class'); } 130 $('#side_navi li').removeClass('on'); 131 if( pClass == '' ){ return false; } 132 133 $('#side_navi .main > li').addClass('not'); 134 $('#side_navi li.'+pClass).addClass('on').removeClass('not'); 135 136 var subN = $('#side_navi li.'+pClass+' > .sub').removeClass('_scroll').css('max-height',''); 137 var subScroll = $(window).scrollTop(); 138 if( $(subN).css('position') == 'absolute' && ( $(subN).offset().top - subScroll + $(subN).height() ) > $(window).innerHeight() ){ 139 $(subN).addClass('_scroll').css('max-height', ($(window).innerHeight() - $(subN).offset().top + subScroll - 10 ) ); 140 } 141 142 return false; 143 } 144 145 // search 146 $('a.btn_search').off('click'); 147 $('#head_search_area .close_button_area .button').off('click'); 148 $('a.btn_search').on('click',function(){ $('#head_search_area').toggle(); return false; }); 149 $('#head_search_area .close_button_area .button').on('click',function(){ $('#head_search_area').toggle(); return false; }); 150 151 // tab 152 $('.tab_navi a').off('click'); 153 $('.tab_navi a').on('click',function(){ 154 if( $(this).parents('li').hasClass('active') || $(this).parents('li').hasClass('_tab_no') ){ return true; } 155 var eHref = $(this).attr('href'); 156 var eTgt = $(this).attr('data-target'); 157 $('.'+eTgt).removeClass('active').hide(); 158 $(this).parents('.tab_navi').find('li').removeClass('active'); 159 $(this).parents('li').addClass('active'); 160 $(eHref).slideToggle().addClass('active'); 161 return false; 162 }); 163 164 // accordion 165 $('.ac_list').addClass('off'); 166 $('.ac_list').each(function(){ if( $(this).find('.contents').length === 0 ){ $(this).addClass('_empty'); } }); 167 $('.ac_list .title').on('click',function(){ if( $(this).parent('.ac_list').find('.contents').get(0) ){ $(this).parent('.ac_list').toggleClass('off'); } }); 168 $('.menu_list3 dt').on('click',function(){ $(this).parent('.menu_list3').toggleClass('on'); $(this).next('dd').slideToggle(); }); 169 170 // form 171 $('#send_button').on('click', function(){ $(this).attr('formaction', './send.php'); }); 172 173}); 174 175$(window).on('load',function(){ heightAuto(); wcPlxReset(); if( uac.urlhash != '' ){ hashScroll(uac.urlhash); } }); 176$(window).on('resize',function(){ heightAuto(); wcPlxReset(); }); 177$(window).on('scroll',function(){ 178 if( $(wcElm.topBtn).get(0) ){ if($(this).scrollTop() > 100){ $(wcElm.topBtn).fadeIn(); } else { $(wcElm.topBtn).fadeOut(); } } 179 if( $(wcElm.head).get(0) ){ if($(this).scrollTop() > 100){ $(wcElm.head).addClass('fixed'); } else{ $(wcElm.head).removeClass('fixed'); } } 180 if( $('.plx').get(0) ){ wcPlxScroll(); PlxTimer = setTimeout(function(){ if( plOpt.top[0] ){ wcPlxScroll(); } }, 10); } 181});
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.