1$(function() { 2 //old 3 // swipebox 4 if ($.isFunction($().swipebox)) { 5 var swipebox = $('.swipebox').swipebox(); 6 $(document).on('click', '#swipebox-overlay', function(e) { 7 if ($(e.target).hasClass('slide')) $.swipebox.close(); 8 }) 9 } 10 $('.tile').each(function() { 11 $(this).children().tile(); 12 }); 13 // slider 14 if ($.isFunction($().sliderPro)) { 15 var sliderDefaults = { 16 center: { 17 width: 1000, 18 height: 450, 19 slideDistance: 0, 20 visibleSize: '100%', 21 arrows: true, 22 fadeArrows: false, 23 autoScaleLayers: false, 24 breakpoints: {} 25 }, 26 wide: { 27 width: '100%', 28 autoHeight: true, 29 slideDistance: 0, 30 arrows: true, 31 fadeArrows: false, 32 fade: true, 33 autoScaleLayers: false, 34 touchSwipe: false, 35 breakpoints: {} 36 }, 37 contents: { 38 width: 450, 39 height: 300, 40 aspectRatio: 1.5, 41 slideDistance: 10, 42 visibleSize: '100%', 43 arrows: true, 44 fadeArrows: false,
45 buttons: false, 46 fadeCaption: false, 47 breakpoints: {} 48 } 49 }; 50 $('.slider-pro').each(function() { 51 var opt = $(this).data(); 52 var number_of_slide = $(this).find('.sp-slide').length; 53 $(this).addClass(opt.type || 'center'); 54 if (!this.hasAttribute('data-type')) { 55 return true; 56 } 57 var options = $.extend(true, (sliderDefaults[opt.type] || sliderDefaults.center), {}); 58 if (opt.width) { 59 options.width = opt.width 60 } 61 if (opt.height) { 62 options.height = opt.height 63 } 64 if (typeof opt.distance !== 'undefined') { 65 options.slideDistance = opt.distance 66 } 67 if (opt.type == 'contents') { 68 if (opt.width || opt.height) { 69 options.aspectRatio = Math.round(options.width / options.height * 100) / 100; 70 } 71 if (number_of_slide % 2 === 0) { 72 options.visibleSize = options.width * (number_of_slide - 1) + options.slideDistance * (number_of_slide - 2); 73 } 74 } 75 if (typeof opt.autoplay !== 'undefined') { 76 options.autoplay = opt.autoplay 77 } 78 if (typeof opt.arrows !== 'undefined') { 79 switch (opt.arrows) { 80 case false: 81 options.arrows = false; 82 $(this).addClass('disable-arrows'); 83 break; 84 case 'pc-only': 85 var bp = 768 - scrollbarWidth - 1; 86 options.breakpoints[bp] = options.breakpoints[bp] || {}; 87 options.breakpoints[bp].arrows = false; 88 $(this).addClass('sp-disable-arrows'); 89 break; 90 } 91 } 92 if (typeof opt.buttons !== 'undefined') { 93 switch (opt.buttons) { 94 case false: 95 options.buttons = false; 96 break; 97 case 'pc-only': 98 var bp = 768 - scrollbarWidth - 1; 99 options.breakpoints[bp] = options.breakpoints[bp] || {}; 100 options.breakpoints[bp].buttons = false; 101 break; 102 } 103 } 104 $(this).sliderPro(options); 105 }); 106 } 107 108 var nav = $('header'); 109 110 // ã¡ãã¥ã¼ã®top座æ¨ãåå¾ãã 111 var offsetTop = nav.offset().top; 112 var floatMenu = function() { 113 // alert("scroll"); 114 // ã¹ã¯ãã¼ã«ä½ç½®ãã¡ãã¥ã¼ã®top座æ¨ãè¶ ãããåºå®ã«ãã 115 if (jQuery(window).scrollTop() > offsetTop) { 116 nav.addClass('fixed'); 117 } else { 118 nav.removeClass('fixed'); 119 } 120 } 121 $(window).scroll(floatMenu); 122 $('body').bind('touchmove', floatMenu); 123 124 // Load Event 125 $(window).load(function() { 126 127 if (typeof WOW !== 'undefined') { 128 new WOW().init(); 129 } 130 131 132 }) 133 134 // pc-onlyçã®ã¿ã°åå¾ã«åºã¦ããæ¹è¡ã³ã¼ããé¤å» 135 $('br.pc-only, br.sp-only, br.tablet-only, br.pc-hide, br.sp-hide, br.tablet-hide, sup, sub').each(function(){ 136 var $parent = $(this).parent(); 137 if( !$parent.length ) return true; 138 var html = $parent.html(); 139 html = html 140 .replace(/\n/g, '') 141 .replace(/\s*?(<br class="(sp|pc|tablet)-(only|hide)([^>+?])>)\s*/g, '$1') 142 .replace(/(,|\.)(<br class="(sp|pc|tablet)-(only|hide))/g, '$1 $2') 143 .replace(/(\d)(<br class="(sp|pc|tablet)-(only|hide))/g, '$1ã$2') 144 .replace(/\s*?<(sup|sub)/g, '<$1'); 145 $parent.html( html ); 146 }); 147}); 148 149var ua_for = navigator.userAgent.toLowerCase(); 150var isMobile = /iphone/.test(ua_for)||/android(.+)?mobile/.test(ua_for); 151if (!isMobile) { 152 $('a[href^="tel:"]').on('click', function(e) { 153 e.preventDefault(); 154 }); 155} 156//old 157 158// limit 159 160//d 161!function(){ // limit scope 162 $(function(){ 163 var $window = $(window), 164 breakPoint = 667, //ãã¬ã¤ã¯ãã¤ã³ãã®è¨å® 165 wid = $window.width(), 166 $body = $('body'); 167 168 /* smooth scroll 169 *********************************************/ 170 $('.anchor').click(function(){ 171 var speed = 400; 172 var href= $(this).attr("href"); 173 var target = $(href == "#" || href == "" ? 'html' : href); 174 var position = target.offset().top; 175 $("html, body").animate({scrollTop:position}, speed, "swing"); 176 return false; 177 }); 178 179 /* NAV slide 180 *********************************************/ 181 $('.header__btn').on('click', function() { 182 $('#reservation_area2').animate({ 183 bottom: '-100%' 184 }, 200); 185 $('.nav, .nav__bg').animate({ 186 right: '0' 187 }, 200); 188 if ($(this).hasClass('is-active')) { 189 $('.nav, .nav__bg').animate({ 190 right: '-100%' 191 }, 200); 192 } 193 $(this).toggleClass('is-active'); 194 }); 195 $('.nav__btn, .nav__bg').on('click', function() { 196 $('#reservation_area2').animate({ 197 bottom: '0' 198 }, 200); 199 $('.nav, .nav__bg').animate({ 200 right: '-100%' 201 }, 200); 202 $('.header__btn').removeClass('is-active'); 203 }); 204 $('.nav__btn, .nav__bg').on('click', function(){ 205 $('.nav, .nav__bg').animate( { right: '-100%' }, 200 ); 206 $('.header__btn').removeClass('is-active'); 207 $('.container').removeClass('fixed'); 208 }); 209 210 $(window).on('resize',function(){
211 adjustNavHeight(); 212 }) 213 214 function adjustNavHeight() { 215 var wh = $(window).innerHeight(); 216 $('.nav__wrap').css('height',wh+'px'); 217 218 } 219 220 /* NAV replace image 221 *********************************************/ 222 $('a img').hover(function(){ 223 $(this).attr('src',$(this).attr('src').replace('-off','-on')); 224 },function(){ 225 $(this).attr('src',$(this).attr('src').replace('-on','-off')); 226 }); 227 228 229 /* faq 230 *********************************************/ 231 var faqIndex = 0; 232 $('.top-faq__heading').on('click', function(){ 233 //if($(this).hasClass('is-opened')) return; 234 //$('.top-faq__item').slideUp(200); 235 $(this).next('.top-faq__item').slideToggle(); 236 $('.top-faq__heading').removeClass('is-opened'); 237 $(this).parent('.top-faq__items').toggleClass('is-opened'); 238 }); 239 240 // Q&A 241 $('.qa:not(.qa-open) .question').click(function() { 242 $(this).toggleClass('open').next('.answer').slideToggle(); 243 }); 244 245 }); 246}();
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.