https://www.organic-studio.jp/wp-content/themes/organic-studio202112/scripts/myscripts.js?1692845658
1/* = scroll animation 2-------------------------------------------------------------- */ 3jQuery(function($){ 4 $(window).scroll(function (){ 5 $('.fadein-animation').each(function(){ 6 var elemPos = $(this).offset().top, 7 scroll = $(window).scrollTop(), 8 windowHeight = $(window).height(); 9 if ( scroll > elemPos - windowHeight*0.7 ){ 10 $(this).addClass('scrollin'); 11 } else if (elemPos - 350 > scroll){ 12 $(this).removeClass('scrollin'); 13 } 14 }) 15 }); 16}); 17 18 19/* = modal 20-------------------------------------------------------------- */ 21jQuery(function($){ 22 $('.area-btn').on('click',function(){ 23 var $btn_href = $(this).attr('href'); 24 $($btn_href).toggleClass('is-active'); 25 26 $('.modal-close').on('click',function(){ 27 $(this).parent('.modal-item').removeClass('is-active'); 28 }); 29 }) 30}); 31 32/* = ã¢ã³ã¼ãã£ãªã³ï¼toggle-btnã¨ããã¯ã©ã¹ãä»ä¸ããã®ã¿ï¼ 33-------------------------------------------------------------- */ 34jQuery(function($){ 35 $('.toggle-btn').on('click',function(){ 36 $(this).toggleClass('is-show'); 37 $(this).next('div').stop().slideToggle(); 38 $(this).next('div').toggleClass('is-show'); 39 }) 40 41 // let 42 $('.term-wrapper .part-title').on('click',function(){ 43 $(this).toggleClass('is-show'); 44 $(this).next('div').stop().slideToggle(350); 45 $(this).next('div').toggleClass('is-show'); 46 }) 47 $('.faq-box .question').on('click',function(){ 48 $(this).toggleClass('is-show'); 49 $(this).next('div').stop().slideToggle(350); 50 $(this).next('div').toggleClass('is-show'); 51 }) 52 $('.staff-list .toggle-thumb').on('click',function(){ 53 $(this).toggleClass('is-show'); 54 $(this).next('div').toggleClass('is-show'); 55 $('.staff-list .toggle-thumb').not($(this)).next('div').removeClass('is-show'); 56 }) 57}); 58 59/* = å¤é¨ãªã³ã¯ã®è¿½å 60-------------------------------------------------------------- */ 61jQuery(function($){ 62 $('a[href^=http]').not('[href*="'+location.hostname+'"]').attr({target:"_blank"}).addClass("ex_link"); 63}); 64 65/* =é«ãã®èª¿ç¯ 66-------------------------------------------------------------- */ 67jQuery(function($){ 68 $(window).on('load', function(){ 69 $('.heightLine').heightLine(); 70 $('#f-contact-links .bnr-title').heightLine(); 71 }); 72}); 73 74/* = PC/SPç»åã®åãæ¿ã 75-------------------------------------------------------------- */ 76jQuery(function($){ 77 var $setElem = $('.switch'); 78 var pcName = '_pc';//PCçã®ãã¡ã¤ã«å 79 var spName = '_sp';//ã¹ããçã®ãã¡ã¤ã«å(htmlã«ã¯ãã¡ããã¤ãã) 80 var matchMedia = '(max-width:767px)'; 81 $setElem.each(function(){ 82 var $img = $(this); 83 var imgSize = function(){ 84 var imgSrc = $img.attr('src'); 85 imgSrc = ( window.matchMedia(matchMedia).matches ) ? imgSrc.replace(pcName,spName) : imgSrc.replace(spName,pcName); 86 $img.attr('src', imgSrc).css({visibility:'visible'}); 87 }; 88 $(window).on('load resize', imgSize); 89 }); 90}); 91 92/* = to Top 93-------------------------------------------------------------- */ 94jQuery(function($){ 95 var href; 96 $('a.smooth-scroll').on('click', function () { 97 var href = $(this).attr('href'); 98 var tgt = $(href === "#" ? 'html' : href); 99 var position = $(tgt).offset().top; 100 $('body,html').animate({ 101 scrollTop: position 102 }, 800); 103 return false; 104 }); 105}); 106 107/* = Subã¡ãã¥ã¼ 108-------------------------------------------------------------- */ 109jQuery(function($){ 110 $('#sub-menu-btn').on('click',function(){ 111 $(this).toggleClass('is-open'); 112 $('#sub-menu').toggleClass('is-open'); 113 }) 114}); 115 116 117/* = new sp menu 118-------------------------------------------------------------- */ 119jQuery(function($){ 120 $('.hamburger').on('click',function(){ 121 $(this).toggleClass('is-open'); 122 $('#sp-nav').toggleClass('is-open'); 123 }) 124 125 $('.has-submenu').on('click',function(){ 126 $(this).toggleClass('is-active'); 127 $(this).next('ul').stop().slideToggle(); 128 }) 129 130 $('.has-grandchild-menu').on('click',function(){ 131 $(this).toggleClass('is-active'); 132 $(this).next('ul').stop().slideToggle(); 133 }) 134 135 $('.js-modal-close').on('click',function(){ 136 $(this).parent('#sp-nav').removeClass('is-open'); 137 $('.hamburger').removeClass('is-open'); 138 }); 139}); 140 141/* = ã¹ããªã¼ããã¥ã¼ã®ã¹ã¯ãâã«å¶é 142-------------------------------------------------------------- */ 143jQuery(function($){ 144 var $streetviewWrap = $('#f-streetview'); 145 var $streetview; 146 var matchMedia = '(max-width:767px)'; 147 if( !$streetviewWrap.length || !window.matchMedia(matchMedia).matches ) return false;
148 149 $streetview = $streetviewWrap.find('iframe'); 150 if( !$streetview.length ) return false; 151 152 $streetview.css('pointer-events', 'none'); 153 $('#f-streetview').click(function() { 154 $streetview.css('pointer-events', 'auto'); 155 }); 156 $streetview.mouseout(function() { 157 $streetview.css('pointer-events', 'none'); 158 }); 159}); 160 161/* = adobe font 162-------------------------------------------------------------- */ 163(function(d) { 164 var config = { 165 kitId: 'jfb3yhi', 166 scriptTimeout: 3000, 167 async: true 168 }, 169 h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) 170})(document); 171 172/* = bottom-fixed-item 173-------------------------------------------------------------- */ 174jQuery(document).ready(function($){ 175 $(".close-btn").on("click", function() { 176 $(this).parent().fadeOut(); 177 }); 178});
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.