var w = $(window).width(); var h = $(window).height(); var nav_pic = $(".header .nav .ls .pos .list .pic").width(); $(".header .nav .ls .pos .list .pic").css("height", nav_pic * 0.5631) $(".ind02 .swiper-slide .a_1").css("height", w * 0.5 * 1.08) $(".ind02 .swiper-slide .a_2").css("height", w * 0.5 * 0.5 * 1.46) $(".ind02 .swiper-slide .a_3").css("height", (w * 0.5 * 1.08) - (w * 0.5 * 0.5 * 1.46)); $(".ind03 .tab_tit .ls").each(function(i) { $(this).click(function() { $(".ind03 .tab_tit .ls").removeClass("cur"); $(".ind03 .tab_tit .ls").eq(i).addClass("cur"); $(".ind03 .tab_next .next").css("display", "none"); $(".ind03 .tab_next .next").eq(i).css("display", "block"); }) }); $(function() { var lazyheight = 0; function showload() { lazyheight = $(window).scrollTop(); if (lazyheight >= 10) { $(".header").addClass("header_fixed"); } else { $(".header").removeClass("header_fixed"); } } $(window).bind("scroll", function() { showload(); }); }); var swiper = new Swiper('.banner .swiper-container', { // effect : 'fade', pagination: { el: '.swiper-pagination', type: 'fraction', renderFraction: function(currentClass, totalClass) { return '' + '0' + '' + '' + ' / ' + '' + '0' + '' + ''; }, }, loop: true, speed: 300, autoplay: { delay: 8000 }, // navigation: { // nextEl: '.swiper-button-next', // prevEl: '.swiper-button-prev', // }, }); var swiper = new Swiper('.ind02 .swiper-container', { pagination: { el: '.swiper-pagination', clickable: true, renderBullet: function(index, className) { return '' + '' + '0' + (index + 1) + '' + '
' + '
'; }, }, loop: true, speed: 300, autoplay: { delay: 8000 }, }); $(".ind01 .cen").click(function() { $(".popub_video,.popub_video_bac").show(); $("video").trigger("play"); }); $(".popub_video .next i").click(function() { $(".popub_video,.popub_video_bac").hide(); $("video").trigger("pause"); }) if(w <= 768){ $(".banner,.banner .swiper-slide").css("height",w*0.928) $(".ind02 .swiper-slide .a_1").css("height",w*1.08) $(".ind02 .swiper-slide .a_2").css("height",w*0.5*1.46) $(".ind02 .swiper-slide .a_3").css("height",(w*1.08)-(w*0.5*1.46)); $(".ind03 .tab_next .pic").css("height",w*0.92*0.7492) /* $(".ind04 .next").css("width",w*1.67+1); $(".ind04 a").css("width",w*0.815); $(".ind04 a").css("height",w*0.815*0.4); $(".ind04 .a_1").css("margin-right",w*0.04);*/ } $(function() { var scrollArrty = ['.ind02 .title', '.ind02 .swiper-container', '.ind03 .title', '.ind03 .tab_next', '.ind04 ', '.ind05', '.footer']; var scrI = 0; var scrHeight = window.screen.availHeight; var x; var h = $(window).height(); $(window).scroll(function() { scrollFn(); }) var width = $(window).width(); if (width > 640) { x = h * 0.33; } else { x = 50; } function scrollFn() { if (scrI == scrollArrty.length) { return false; } var boxPos = $(scrollArrty[scrI]).offset().top; var winPos = $(window).scrollTop() + scrHeight - x; if (boxPos < winPos) { $(scrollArrty[scrI]).addClass('active'); scrI++; if (scrI < scrollArrty.length) { scrollFn(); } else { return false; } } else { return false; } } scrollFn(); });