// if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { // //alert(navigator.userAgent); // //add a new meta node of viewport in head node // head = document.getElementsByTagName('head'); // viewport = document.createElement('meta'); // viewport.name = 'viewport'; // viewport.content = 'target-densitydpi=device-dpi, width=' + 750 + 'px, user-scalable=no'; // head.length > 0 && head[head.length - 1].appendChild(viewport); // } if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ new WOW().init(); }; $(function(){ //通用 $('.gh').click(function(){ $('.naver').slideToggle(); $('.layout').toggleClass('selected') }) if($(window).width()>1000){ $('.titp .qhnve li').hover(function(){ $('.nil').stop().slideUp(); $(this).find('.nil').slideDown(); },function(){ $('.nil').stop().slideUp(); }) }else { $('.titp .qhnve li h2').click(function(){ $('.titp .qhnve .nil').slideUp(); $(this).next('.nil').stop().slideToggle(); }) } if($(window).width()>800){ $('.header .naver li').hover(function(){ $('.nli').stop().slideUp(); $(this).find('.nli').slideDown(); },function(){ $('.nli').stop().slideUp(); }) }else{ $('.header .naver li em').click(function(){ $(this).parents('li').find('.nli').slideToggle(); $(this).parents('li').siblings('li').find('em').removeClass('on'); $(this).toggleClass('on'); $(this).parents('li').siblings('li').find('.nli').slideUp(); }) } $('.ustps').click(function(){ $('html,body').animate({ scrollTop:$('html,body').offset().top }, 500); }); $('.tpss').click(function(){ $('html,body').animate({ scrollTop:$('html,body').offset().top }, 500); }); $(document).on('click','.header .nli .rts .swicon .swiper-slide a',function(){ $('.header .nli .rts .swimgs .swiper-slide a').css("background-image",$(this).css('backgroundImage')); }) // var galleryThumbs = new Swiper('.swicon', { // observer:true, // observeParents:true, // spaceBetween: 10, // slidesPerView: 2, // direction: 'vertical', // freeMode: true, // loopedSlides: 5, //looped slides should be the same // watchSlidesVisibility: true, // watchSlidesProgress: true, // breakpoints: { // 800: { // direction: 'horizontal', // }, // 1000: { // direction: 'vertical', // }, // } // }); // var galleryTop = new Swiper('.swimgs', { // slidesPerView: 1, // spaceBetween: 10, // direction: 'vertical', // loop: true, // loopedSlides: 5, //looped slides should be the same // observer:true, // observeParents:true, // thumbs: { // swiper: galleryThumbs, // }, // }); })