').html( $.parseHTML( newPageRawHTML.match(/
]*>([\s\S.]*)<\/head>/i)[0], document, true ) ); var headTags = [ "meta[name='subject']", "meta[name='robots']", "meta[name='copyright']", "meta[name='keywords']", "meta[name='description']", "meta[itemprop]", "meta[property^='og']", "meta[name^='twitter']", ].join(','); $('head').find(headTags).remove(); $newPageHead.find(headTags).appendTo('head'); var position = $('#bodytop').offset().top; $("html, body").animate({scrollTop:position}, 500, "swing"); $('#barba-wrapper .barba-container').animate({opacity: '1'}, 1000); $('a[name!="_"][href^="#"]').click(function(){ var speed = 500; var href= $(this).attr("href"); var target = $(href == "#" || href == "" ? 'html' : href); var position = target.offset().top; $("html, body").animate({scrollTop:position}, speed, "swing"); return false; });$(function(){ setTimeout(function(){$(function(){ if($("#slick_wrap").length){ $('#thumb-item').not('.slick-initialized').not('.slick-initialized').slick({ infinite: true, autoplay: true, autoplaySpeed: 4000, speed: 400, slidesToShow: 1, slidesToScroll: 1, arrows: true, fade: true, lazyLoad:'ondemand', asNavFor: '#thumb-item-nav', responsive: [ { breakpoint: 1025, settings: { dots: true, } }, ], }); $('#thumb-item-nav').not('.slick-initialized').not('.slick-initialized').slick({ accessibility: true, infinite: false, slidesToShow: 30, asNavFor: '#thumb-item', focusOnSelect: true, lazyLoad:'ondemand', }); }; if($("body.index").length){ $('#index_slick1').not('.slick-initialized').not('.slick-initialized').slick({ infinite: true, arrows: false, dots: false, autoplay: true, autoplaySpeed: 2000, speed: 3000, slidesToShow: 1, slidesToScroll: 1, mobileFirst: true, responsive: [ { breakpoint: 481, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 1025, settings: 'unslick', }, ], }); $('#index_slick2').not('.slick-initialized').not('.slick-initialized').slick({ infinite: true, arrows: false, dots: false, autoplay: true, autoplaySpeed: 2000, speed: 3000, slidesToShow: 1, slidesToScroll: 1, mobileFirst: true, responsive: [ { breakpoint: 481, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 1025, settings: 'unslick', }, ], }); } $(window).on('resize orientationchange', function() { setTimeout(function(){ if($("body.index").length){ $('#index_slick1').not('.slick-initialized').not('.slick-initialized').slick({ infinite: true, arrows: false, dots: false, autoplay: true, autoplaySpeed: 2000, speed: 3000, slidesToShow: 1, slidesToScroll: 1, mobileFirst: true, responsive: [ { breakpoint: 481, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 1025, settings: 'unslick', }, ], }); $('#index_slick2').not('.slick-initialized').not('.slick-initialized').slick({ infinite: true, arrows: false, dots: false, autoplay: true, autoplaySpeed: 2000, speed: 3000, slidesToShow: 1, slidesToScroll: 1, mobileFirst: true, responsive: [ { breakpoint: 481, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 1025, settings: 'unslick', }, ], }); } }, 100); });});},500); }); $(function(){ if( ($('.inquiry_form').length)||($('.reserve_form').length) ){ $("input:not([type='checkbox']),select,textarea").focusin(function(){ $('.grecaptcha-badge').addClass('keyboard_disp_none'); $('#pagetop').addClass('keyboard_disp_none'); }).focusout(function(){ $('.grecaptcha-badge').removeClass('keyboard_disp_none'); $('#pagetop').removeClass('keyboard_disp_none'); }); } }); return false;});});function onSubmit1(token){ sendInquiry(token); }function onSubmit2(token){ sendReserve(token); }