1(function ($) { 2 $(function () { 3 4 new WOW().init(); 5 6 // åºå®ãããã¼åã®ä½ç½ãå ã«ç¢ºå®ããã¦ããã¢ã³ã«ã¼ä½ç½®ãè¨ç®ãã 7 var headerTop = $('header').innerHeight(); 8 $('#content').css({ 'margin-top': headerTop }); 9 10 // ããã¿ã¼ã®ãµã¤ãºå¤æ´ 11 var footerBottom = $('.footer-button').innerHeight(); 12 $('#footer').css({ 'padding-bottom': footerBottom }); 13 14 function getHeaderOffset() { 15 var $header = $('#header'); 16 var headerHeight = $header.outerHeight() || 0; 17 var headerPosition = parseFloat($header.css('top')) || 0; 18 var anchorAdjustment = 15; 19 20 return headerHeight + headerPosition + anchorAdjustment; 21 } 22 23 function scrollToHash(hash, speed) { 24 var $target = $(hash); 25 26 if (!$target.length) { 27 return; 28 } 29 30 var winTop = $target.offset().top - getHeaderOffset(); 31 $('html, body').stop(true).animate({ scrollTop: winTop }, speed, 'swing'); 32 } 33 34 var initialHash = location.hash; 35 var initialUrl = location.pathname + location.search; 36 37 if (initialHash && $(initialHash).length) { 38 // ãã©ã¦ã¶æ¨æºã®ã¢ã³ã«ã¼ã¸ã®ç¬éç§»åãæ¢ããç»é¢ä¸é¨ããéå§ãã 39 if ('scrollRestoration' in history) { 40 history.scrollRestoration = 'manual'; 41 } 42 history.replaceState(history.state, document.title, initialUrl); 43 $('html, body').stop(true).scrollTop(0); 44 45 // ç»åãªã©ãå«ãã¬ã¤ã¢ã¦ã確å®å¾ãããã·ã¥ãæ»ãã¦æ»ããã«ç§»åãã 46 $(window).on('load', function () { 47 $('html, body').stop(true).scrollTop(0); 48 49 window.requestAnimationFrame(function () { 50 history.replaceState( 51 history.state, 52 document.title, 53 initialUrl + initialHash 54 ); 55 scrollToHash(initialHash, 700); 56 }); 57 }); 58 } 59 60 // ã¢ã³ã«ã¼ãªã³ã¯ã®ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 61 $('a[href^="#"]:not([href="#"])').on('click', function (e) { 62 var target = $(this.hash); 63 if (target.length) { 64 e.preventDefault(); 65 scrollToHash(this.hash, 500); 66 } 67 }); 68 69 // SPçã¡ãã¥ã¼ 70 var stayScroll = 0; 71 $('.header-navmenu').on('click', function () { 72 if ($(this).hasClass('close')) { 73 $(this).removeClass('close'); 74 $('#header').removeClass('open'); 75 $('.header-navbar').slideUp(function () { 76 $('.header-navbar').height(''); 77 }); 78 $('#content,#footer').height(''); 79 $(window).scrollTop(stayScroll); 80 } else { 81 $(this).addClass('close'); 82 $('#header').addClass('open'); 83 stayScroll = $(window).scrollTop(); 84 if ($('.header-navbar_wrap').height() < $(window).height() - $('#header').innerHeight()) { 85 $('.header-navbar').height($(window).height() - $('#header').innerHeight()); 86 } else { 87 $('.header-navbar').height(''); 88 } 89 $('.header-navbar').slideDown(); 90 $('#content,#footer').height(0); 91 } 92 }); 93 94 // ç»åchange 95 var ww = $(window).width(); 96 responsiveImg(); 97 function responsiveImg() { 98 if (ww <= 750) { 99 $('.rp').each(function () { 100 var str = $(this).attr('src'); 101 if (str.indexOf('_sp.') == -1) { 102 str = str.replace(/\.\w+$/, '_sp' + '$&'); 103 $(this).attr('src', str); 104 } 105 }); 106 } 107 else { 108 $('.rp').each(function () { 109 var str = $(this).attr('src'); 110 str = str.replace('_sp.', '.'); 111 $(this).attr('src', str); 112 }); 113 } 114 } 115 116 117 118 function footer() { 119 var footerBtm = 0; 120 if (ww <= 1069) { 121 footerBtm = $('.f-shop_link').innerHeight(); 122 $('#footer').css({ 'margin-bottom': footerBtm }); 123 } 124 125 } 126 $('.tel-btn').on('click', function () { 127 if (ww > 750) { 128 return false; 129 } 130 }); 131 132 // imgãã©ãã¬ã¼ 133 $(document).on('mousedown', 'img', function () { return false; }).on('contextmenu', 'img', function () { return false; }); 134 135 // matchHeight 136 $('.matchHeight').matchHeight(); 137 138 // modal youtube 139 $('.popup-iframe_youtube').magnificPopup({ 140 type: 'iframe', 141 mainClass: 'mfp-fade', 142 removalDelay: 200, 143 preloader: false,
144 fixedContentPos: false 145 }); 146 $('.popup-modal_inline').magnificPopup({ 147 type: 'inline', 148 preloader: false 149 }); 150 // 151 $(window).resize(function () { 152 ww = $(window).width(); 153 responsiveImg(); 154 // header(); 155 footer(); 156 }); 157 158 159 // âPAGEâ 160 if ($('.mv-main_swiper').length && $('.mv-main_swiper .swiper-slide').length > 1) { 161 var galleryThumbs = new Swiper('.gallery-thumbs', { 162 spaceBetween: 10, 163 slidesPerView: 4, 164 loop: true, 165 freeMode: true, 166 loopedSlides: 5, //looped slides should be the same 167 watchSlidesVisibility: true, 168 watchSlidesProgress: true, 169 }); 170 var top_swiper = new Swiper('.mv-main_swiper', { 171 autoplay: { 172 delay: 5000, 173 disableOnInteraction: false, 174 }, 175 loop: { 176 loop: true, 177 }, 178 speed: 3000, 179 pagination: { 180 el: '.mv-main_swiper_pagination', 181 clickable: true, 182 }, 183 navigation: { 184 nextEl: '.mv-main_swiper_next', 185 prevEl: '.mv-main_swiper_prev', 186 }, 187 thumbs: { 188 swiper: galleryThumbs, 189 }, 190 on: { 191 init: function () { 192 $('.swiper-progressbar').addClass('on'); 193 }, 194 slideChangeTransitionStart: function () { 195 $('.swiper-progressbar').removeClass('on'); 196 }, 197 slideChangeTransitionEnd: function () { 198 $('.swiper-progressbar').addClass('on'); 199 } 200 }, 201 }); 202 } else { 203 $('.mv-main_swiper_next, .mv-main_swiper_prev').hide(); 204 } 205 206 if ($('.img_swiper').length) { 207 var img_swiper = new Array(); 208 $('.img_swiper').each(function (i) { 209 var ele = $(this); 210 var paginationName = 'swiper_pagination' + i; 211 var nextName = 'swiper_next' + i; 212 var prevName = 'swiper_prev' + i; 213 $(this).siblings('.img_swiper_pagination').addClass(paginationName); 214 $(this).siblings('.img_swiper_next').addClass(nextName); 215 $(this).siblings('.img_swiper_prev').addClass(prevName); 216 if ($(this).find('.swiper-slide').length > 1) { 217 img_swiper[i] = new Swiper(ele, { 218 loop: { 219 loop: true, 220 }, 221 speed: 3000, 222 pagination: { 223 el: '.' + paginationName, 224 clickable: true, 225 }, 226 navigation: { 227 nextEl: '.' + nextName, 228 prevEl: '.' + prevName, 229 } 230 }); 231 } else { 232 $('.' + nextName).hide(); 233 $('.' + prevName).hide(); 234 } 235 }); 236 } 237 $('.m-news_top_category, .m-news_sub_category').hover(function () { 238 $(this).parent().parent('a').addClass('mouseOn'); 239 }, function () { 240 $(this).parent().parent('a').removeClass('mouseOn'); 241 }); 242 $('.m-news_top_category, .m-news_sub_category').click(function () { 243 var href = $(this).data('href'); 244 window.location = href; 245 return false; 246 }); 247 248 }); 249 250 // 追å¾ããã¼ã®Ããã¿ã³ãã¯ãªãã¯ã§ããã¼é表示 251 $(function () { 252 $(".m-mv_fixbnr_close").on("click", function () { 253 $(".m-mv_fixbnr_wrap").fadeOut(); 254 }); 255 }); 256 257 // $('#slide_show_sp > div:gt(0)').hide(); 258 259 // setInterval(function(){ 260 // $('#slide_show_sp > div:first') 261 // .fadeOut(2000) 262 // .next() 263 // .fadeIn(2000) 264 // .end() 265 // .appendTo('#slide_show_sp'); 266 // },5000); 267 268 269 // $('#slide_show_pc > div:gt(0)').hide(); 270 271 // setInterval(function(){ 272 // $('#slide_show_pc > div:first') 273 // .fadeOut(2000) 274 // .next() 275 // .fadeIn(2000) 276 // .end() 277 // .appendTo('#slide_show_pc'); 278 // },5000); 279 280 // ã³ã¼ã¹ã®ã¢ã³ã¼ãã£ãªã³ï¼24/11/28追å ï¼ 281 $(function () { 282 $('.course-accordion__btn').on('click touchstart', function (e) { 283 e.preventDefault(); 284 var $wrap = $(this).closest('.course-accordion__wrap'); 285 $wrap.next('.course-amendment').slideToggle(); 286 $(this).toggleClass('js-accordion--open'); 287 $wrap.toggleClass('js-accordion--open'); 288 if ($(this).hasClass('js-accordion--open')) { 289 $(this).text('éãã'); 290 } else { 291 $(this).text('詳細ãè¦ã'); 292 } 293 });
294 }); 295 //sp表示ã®ç»åãããã¢ãã 296 if (navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)) { 297 $('.js-modal-img').modaal({ 298 type: 'image' 299 }); 300 } 301})(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.