if(l == "main"){ $(function(){ var $gallery = $('.w3_agile_agent_grid a').simpleLightbox(); $gallery.on('show.simplelightbox', function(){ console.log('Requested for showing'); }) .on('shown.simplelightbox', function(){ console.log('Shown'); }) .on('close.simplelightbox', function(){ console.log('Requested for closing'); }) .on('closed.simplelightbox', function(){ console.log('Closed'); }) .on('change.simplelightbox', function(){ console.log('Requested for change'); }) .on('next.simplelightbox', function(){ console.log('Requested for next'); }) .on('prev.simplelightbox', function(){ console.log('Requested for prev'); }) .on('nextImageLoaded.simplelightbox', function(){ console.log('Next image loaded'); }) .on('prevImageLoaded.simplelightbox', function(){ console.log('Prev image loaded'); }) .on('changed.simplelightbox', function(){ console.log('Image changed'); }) .on('nextDone.simplelightbox', function(){ console.log('Image changed to next'); }) .on('prevDone.simplelightbox', function(){ console.log('Image changed to prev'); }) .on('error.simplelightbox', function(e){ console.log('No image found, go to the next/prev'); console.log(e); }); }); $(window).load(function() { $("#flexiselDemo1").flexisel({ visibleItems: 4, animationSpeed: 1000, autoPlay: true, autoPlaySpeed: 3000, pauseOnHover: true, enableResponsiveBreakpoints: true, responsiveBreakpoints: { portrait: { changePoint:480, visibleItems: 1 }, landscape: { changePoint:640, visibleItems:2 }, tablet: { changePoint:768, visibleItems: 3 } } }); }); $(document).on('ready', function() { $(".regular").slick({ /*dots: true,*/ autoplay: true, infinite: true, centerMode: true, slidesToShow: 3, slidesToScroll: 3 }); $(".lazy").slick({ autoplay: true, lazyLoad: 'ondemand', // ondemand progressive anticipated infinite: true }); /* $(".lazy1").slick({ autoplay: true, lazyLoad: 'ondemand', // ondemand progressive anticipated infinite: true }); */ $(".lazy2").slick({ autoplay: true, infinite: true, centerMode: true, slidesToShow: 3, slidesToScroll: 3 }); }); } $(function(){ /*스크롤 탑 오후 8:09 2018-04-14*/ $("div.gotop").fadeOut("slow"); $(window).scroll(function(){ setTimeout(scroll_top, 200);//화살표가 반응하여 생기는 시간 }); $("#gotop").click(function(){ $("html, body").animate({ scrollTop: 0 }, 300);//화살표 클릭시 화면 스크롤 속도 return false; }); }) /*스크롤 탑*/ function scroll_top(){ if($(window).scrollTop()<=1) { $("#gotop").fadeOut("slow"); } else { $("#gotop").fadeIn("slow"); } } /*오후 5:26 2018-04-14*/ $(function() { $("img.lazy").lazyload(); }); /*오후 5:26 2018-04-14*/ $(window).on('load', function() { //console.log('로딩 비활성화'); $('.loading').hide(); }); /*오후 5:26 2018-04-14*/ function timer(opj){ $(opj).find('ul').animate({ marginTop : "-3.5rem" },500,function(){ $(this).css({marginTop : "0rem"}).find("li:first").appendTo(this); }) } $(function(){ var num = $('.notice_active').find('li').length; if(num > 1){ var time=setInterval('timer(".notice_active")',3500); $('.gg_more a').mousemove(function(){ clearInterval(time); }).mouseout(function(){ time = setInterval('timer(".notice_active")',3500); }); } $(".news_ck").click(function(){ location.href = $(".notice_active .notice_active_ch").children(":input").val(); }) }); if(code == "contactus"){ $(function() { mapInit(120.41982,36.311932, "润透诗沁化妆品(青岛)有限公司", "中国青岛市城阳区正阳路159号贵爵广场701"); }); }