PageSourceSearch

https://www.mine-life.jp/wp-content/cache/autoptimize/js/autoptimi…b6eb527123c41016c63831bf8.js?ver=1782266462

js mine-life.jp collected 2026-10-05 04:56:57 UTC 8,661 bytes, 13 lines download raw bytes

1(function($){$(function(){var width=$(window).innerWidth();subMenu(width);$(window).resize(function(){var r_width=$(window).innerWidth();if(width!=r_width){subMenu(r_width);}});});function subMenu(width){if(width>991){$('.sub-menu').hide();$('#primary-menu li').hover(function(){$(this).children('ul').show();$(".sub-menu").css('z-index','9999');},function(){$(this).children('ul').hide();$('.sub-menu').css('z-index','-1');});}}
2function setSelectorHeight(selector,width){const exceptionSelectors=['.list-news .art-ttl','.widget_xeory_related_posts .xeory-subloop-title','.list-point .item',];const $elements=$(selector);if($elements.length===0)return;let maxHeight=-1;if(width>768||exceptionSelectors.includes(selector)){$elements.css({'min-height':''});$elements.each(function(){const thisHeight=$(this).outerHeight();if(thisHeight>maxHeight)maxHeight=thisHeight;});$elements.css({'min-height':maxHeight+'px'});}else{$elements.css({'min-height':'auto'});}}
3function setHeights(){var width=$(window).innerWidth();setSelectorHeight('.sec-tax .list-news .art-ttl',width);setSelectorHeight('.list-case .item h4',width);setSelectorHeight('.list-voice .item .ttl',width);setSelectorHeight('.list-news .art-ttl',width);setSelectorHeight('.list-point .item',width);setSelectorHeight('.list-author .author-desc',width);setSelectorHeight('.widget_xeory_related_posts .xeory-subloop-title',width);}
4$(function(){setHeights();});$(window).on('resize',function(){setHeights();});$(function(){document.documentElement.classList.remove('prevent-scroll');$('a[href*="#"]').on('click',function(e){var href=$(this).attr("href");if(href==="#"||href==="/#"){e.preventDefault();return;}
5var urlParts=href.split('#');var pathPart=urlParts[0];var hash=urlParts[1]?'#'+urlParts[1]:'';var targetUrl=new URL(href,window.location.href);var currentUrl=window.location;var isSamePage=(targetUrl.pathname.replace(/\/$/,'')===currentUrl.pathname.replace(/\/$/,'')&&targetUrl.hostname===currentUrl.hostname&&targetUrl.protocol===currentUrl.protocol);if(!isSamePage){return;}
6if(hash){e.preventDefault();var target=$(hash);if(target.length){if($(window).width()<992){$('.xeory-spnav-wrap').removeClass('active');$('body').removeClass('noscroll').css({'top':0});}
7var headerH=$('.site-header').outerHeight()||0;var elementTop=target[0].getBoundingClientRect().top+window.pageYOffset;var scrollTarget=elementTop-headerH;var currentScroll=$(window).scrollTop();if(Math.abs(currentScroll-scrollTarget)>5){$("html, body").animate({scrollTop:scrollTarget},800,"swing");}}}});});$(function(){$(document).ready(function(){if(window.location.hash){window.scrollTo(0,0);}})});$(function(){var urlHash=window.savedHash||location.hash;if(urlHash){setTimeout(function(){scrollToAnker(urlHash);if(history.replaceState){history.replaceState(null,null,window.location.pathname+window.location.search+urlHash);}},50);}
8function scrollToAnker(hash){var target=$(hash);if(target.length){var headerH=$('header').outerHeight()||0;var position=target.offset().top-headerH;$("html, body").animate({scrollTop:position},600,"swing");}}});$(function(){if($('.tax-slider').length>0){$(".tax-slider").slick({infinite:true,centerMode:true,centerPadding:'0px',slidesToShow:2,autoplay:true,autoplaySpeed:1500,speed:1500,cssEase:'ease-in-out',arrows:false,dots:false,pauseOnHover:false,pauseOnFocus:false,swipe:false,rtl:false,variableWidth:true,responsive:[{breakpoint:991,settings:{slidesToShow:1,centerPadding:'50%',}}]});}});$(function(){$('.list-faq dt').on("click",function(e){e.preventDefault();$(this).next().slideToggle();$(this).parent('dl').toggleClass('active');});$('.list-faq dd').on("click",function(){$(this).slideToggle();$(this).siblings('dd').slideUp();$(this).parent('dl').removeClass('active');});});$(function(){function sliderCase(){var width=$(window).innerWidth();if(width>=992){$('.list-case.slider').slick({dots:true,infinite:true,speed:300,slidesToShow:3,slidesToScroll:1,cssEase:'ease',appendDots:$('.sec-case .custom-slick-dots'),prevArrow:$('.sec-case .custom-slick-prev'),nextArrow:$('.sec-case .custom-slick-next'),}).on('setPosition',setHeights);}else{if($('.list-case').hasClass('slick-initialized')){$('.list-case').slick('unslick');}}}
9sliderCase();let resizeTimer;$(window).on('resize',function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(sliderCase,200);});$('.list-voice').slick({dots:true,infinite:true,speed:300,slidesToShow:3,slidesToScroll:1,appendDots:$('.sec-voice .custom-slick-dots'),prevArrow:$('.sec-voice .custom-slick-prev'),nextArrow:$('.sec-voice .custom-slick-next'),responsive:[{breakpoint:991,settings:{slidesToShow:1,}}]}).on('setPosition',setHeights);});$(function(){var scrollTop;$('.list-voice .item').on('click',function(e){e.preventDefault();var image=$(this).data('image');var imageSp=$(this).data('image-sp');var imgSrc=window.innerWidth<768?imageSp:image;scrollTop=$(window).scrollTop();$('#voice-popup .popup-image').attr('src',imgSrc);$('#voice-popup').addClass('active');$('body').addClass('noscroll').css('top',-scrollTop);});$('#voice-popup .popup-close').on('click',function(){$('#voice-popup').removeClass('active');$('body').removeClass('noscroll').css({'top':0});window.scrollTo(0,scrollTop);});$('#voice-popup').on('click',function(e){if($(e.target).is('#voice-popup')){$('#voice-popup').removeClass('active');$('body').removeClass('noscroll').css({'top':0});window.scrollTo(0,scrollTop);}});$(document).on('keydown',function(e){if(e.key==="Escape"||e.keyCode===27){$('#voice-popup').removeClass('active');$('body').removeClass('noscroll').css({'top':0});window.scrollTo(0,scrollTop);}});});$(function(){var $contactInfo=$('.group-content .contact-info').first();function moveElements(){if($(window).width()<992){if(!$('.content-contact').next('.contact-info').length){$contactInfo.insertAfter('.content-contact');}}else{if(!$('.content-info').find('.contact-info').length){$contactInfo.appendTo('.content-info');}}}
10moveElements();$(window).on('resize',function(){moveElements();});});
10$(function(){function moveTitleFeature(){if($(window).width()<991){$('.list-feature .item').each(function(){var $item=$(this);var $h3=$item.find('.content-feature h3');if($h3.length>0){$h3.appendTo($item.find('.number'));}});}else{$('.list-feature .item').each(function(){var $item=$(this);var $h3=$item.find('.number h3');if($h3.length>0){$h3.prependTo($item.find('.content-feature'));}});}}
11moveTitleFeature();$(window).resize(function(){moveTitleFeature();});});$(function(){$('.content-tab').each(function(){var $tabWrap=$(this);$tabWrap.find('.tab-btns .tab-btn:first-child').addClass('tab-btn--active');$tabWrap.find('.tab-items .tab-item:first-child').addClass('tab-item--active');$tabWrap.on('click','.tab-btn',function(e){e.preventDefault();var $btn=$(this);var num=$btn.index();var $tabItem=$tabWrap.find('.tab-items .tab-item').eq(num);$btn.addClass('tab-btn--active').siblings('.tab-btn').removeClass('tab-btn--active');$tabItem.addClass('tab-item--active').siblings('.tab-item').removeClass('tab-item--active');if($tabWrap.hasClass('case')){var termId=$btn.data('term');loadCasePosts(termId,1,$tabItem,false);}else{setSelectorHeight('.list-news .art-ttl',$(window).innerWidth());}});});$(document).on('click','.content-tab.case .ajax-pagination a',function(e){e.preventDefault();if($(this).hasClass('empty'))return;var page=$(this).data('page');var $tab=$(this).closest('.tab-item');var termId=$tab.data('term');loadCasePosts(termId,page,$tab,true);});function loadCasePosts(termId,paged,$tab,doScroll){$.ajax({url:case_ajax.ajaxurl,type:'POST',data:{action:'load_case_posts',term_id:termId,paged:paged},success:function(res){$tab.html(res);if(typeof setSelectorHeight==='function'){setSelectorHeight('.list-case .item h4',$(window).innerWidth());}
12if(doScroll){$('html, body').animate({scrollTop:0},800,"swing");}},error:function(){alert('エラーが発生しました');}});}
13$('.content-tab.case .tab-btns .tab-btn:first-child').trigger('click');});$(function(){$('.single:not(.single-case) table').wrap('<div class="reponsive-table"></div>');});document.addEventListener("change",function(e){if(e.target.type==="file"){const wrap=e.target.closest(".input-file");if(!wrap)return;if(e.target.files.length>0){wrap.classList.add("has-file");}else{wrap.classList.remove("has-file");}}});$(function(){$('.req-tab p').on('click',function(){const index=$(this).index();$('.req-tab p').removeClass('active');$(this).addClass('active');$('.req-content').removeClass('active').eq(index).addClass('active');});});$(function(){$('.wpcf7-free-text').attr('placeholder','上記以外のきっかけの場合はご記載ください。');});})(jQuery);

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.