(function () { var thispage; if (document.getelementbyid('pagemain')) { thispage = document.getelementbyid('pagemain').getattribute('data-page'); } switch (thispage) { case 'index': $(function () { var e,i=document.getelementbyid("indexvideo");function t(){document.getelementbyid("indexvideoslide")&&(document.getelementbyid("indexvideoslide").offsetwidth/document.getelementbyid("indexvideoslide").offsetheight<16/9?(i.style.width="auto",i.style.height="100%"):(i.style.width="100%",i.style.height="auto"))}function n(t){i?(cleartimeout(e),0===t.activeindex&&document.body.offsetwidth>960?i.play():(i.pause(),i.currenttime=0,e=settimeout((function(){t.isend?t.slideto(0,400,!0):t.slidenext()}),1000*$(".index_banner .swiper-slide").eq(t.activeindex).data("duration")))):(cleartimeout(e),e=settimeout((function(){t.isend?t.slideto(0,400,!0):t.slidenext()}),1000*$(".index_banner .swiper-slide").eq(t.activeindex).data("duration")))}document.body.offsetwidth<=960&&i&&document.getelementbyid("indexvideoslide").remove(),t(),i&&i.addeventlistener("ended",(function(){a.slidenext()}),!1); var swiper01 = new swiper('.index_banner .swiper-container', { parallax : true, speed: 1000, loop: true, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, watchoverflow: !0, on: { init: function () { this.$el.addclass("isready") } }, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', }, on: { init: function() { swiperanimatecache(this); swiperanimate(this); }, slidechangetransitionend: function() { swiperanimate(this); } } }); }) $(".index_pg01 .item").hover(function(){ $(this).addclass("active").siblings().removeclass("active"); }) $(".index_pg03 .item").hover(function(){ $(this).addclass("active").siblings().removeclass("active"); }) var thumbsswiper = new swiper('.index_pg02 .nav_items .swiper-container', { slidesperview: 3, direction: 'vertical', spacebetween : 24, watchslidesvisibility: true, loop: true, // autoplay: { // delay: 3000, // stoponlastslide: false, // disableoninteraction: false, // }, speed: 1000, }) var galleryswiper = new swiper('.index_pg02 .lists .swiper-container', { slidesperview : "auto", loopedslides: 5, loop: true, // autoplay: { // delay: 3000, // stoponlastslide: false, // disableoninteraction: false, // }, speed: 1000, spacebetween : 40, thumbs: { swiper: thumbsswiper, } }) break; case 'news': var news01 = new swiper ('.news_pg01 .swiper-container', { loop: true, speed: 1000, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, pagination: { el: '.swiper-pagination', } }) break; case 'culture': $(".nav .item").click(function () { $(this).addclass("active").siblings().removeclass("active"); var _ind = $(".nav .item").index($(this)); $(".culture_pg01 .list").eq(_ind).addclass("active").siblings().removeclass("active"); }) var myswiper = new swiper ('.culture_pg03 .swiper-container', { loop: true, speed: 1000, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, pagination: { el: '.swiper-pagination', } }) break; case 'honor': // var myswiper = new swiper ('.honor_pg01 .swiper-container', { // slidesperview: 4, // spacebetween: 35, // autoplay: { // delay: 3000, // stoponlastslide: false, // disableoninteraction: true, // }, // mousewheel: { // releaseonedges: false, // }, // pagination: { // el: '.swiper-pagination', // type: 'fraction', // }, // scrollbar: { // el: '.swiper-scrollbar', // }, // breakpoints: { // 440: { // slidesperview: 1.8, // spacebetween: 15 // }, // 768: { // slidesperview: 2, // spacebetween: 15 // }, // 1043: { // slidesperview: 4, // spacebetween: 20 // }, // 1366: { // slidesperview: 4, // spacebetween: 30 // } // } // }) $(".honor_pg01 .swiper-slide").click(function () { var _ind = $(".honor_pg01 .swiper-slide").index($(this)); $(".tech-tks .tech-tk").eq(_ind).addclass("active").siblings().removeclass("active"); }) $(".techclose").click(function () { $(".tech-tks .tech-tk").removeclass("active"); }) break; case 'seamless': var layout_tw = new swiper ('.layout_tw .swiper-container', { loop: true, speed: 1000, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, pagination: { el: '.swiper-pagination', } }) break; case 'layout': var layout_on = new swiper ('.layout_on .swiper-container', { loop: true, speed: 1000, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, pagination: { el: '.swiper-pagination', } }) var layout_tw = new swiper ('.layout_tw .swiper-container', { loop: true, speed: 1000, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, pagination: { el: '.swiper-pagination', } }) break; case 'industry': var thumbsswiper = new swiper('.thumb_swier .swiper-container', { slidesperview: 7, navigation: { nextel: ".swiper-button-next", prevel: ".swiper-button-prev" }, watchslidesvisibility: true, breakpoints: { 640: { slidesperview: 2, }, 750: { slidesperview: 3, }, 1043: { slidesperview: 5, }, 1280: { slidesperview: 7, }, } }) var galleryswiper = new swiper('.content_swier',{ thumbs: { swiper: thumbsswiper, } }) $(".table_nav .item").click(function () { $(this).addclass("active").siblings().removeclass("active"); var _ind = $(".table_nav .item").index($(this)); $(".industry_pg01 .lists").eq(_ind).addclass("active").siblings().removeclass("active"); }) break; case 'staff': var swiper01 = new swiper('.staff_pg01 .swiper-container', { speed: 1000, loop: true, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, watchoverflow: !0, on: { init: function () { this.$el.addclass("isready") } }, navigation: { nextel: ".swiper-button-next", prevel: ".swiper-button-prev" }, // pagination: { // el: ".svg-swiper-pagination", // clickable: !0, // renderbullet: function (e, i) { // return '
' // } // }, on: { init: function() { swiperanimatecache(this); swiperanimate(this); }, slidechangetransitionend: function() { swiperanimate(this); } } }); break; case 'join': $(".join_pg02 .table_nav .item").click(function () { $(this).addclass("active").siblings().removeclass("active"); var _ind = $(".join_pg02 .table_nav .item").index($(this)); $(".join_pg02 .lists_list").eq(_ind).addclass("active").siblings().removeclass("active"); }) // var join02 = new swiper(".join_pg02 .swiper-container", { // slidesperview: "auto", // spacebetween : "2.6%", // navigation: { // nextel: ".swiper-button-next", // prevel: ".swiper-button-prev" // }, // observer: true, // observeparents: true // }); $(".join_pg02 .list_link").click(function () { var id = $(this).attr("id"); $.ajax ( { async: false, datatype: 'json', type: "post", url: "/ajax/joinhandleren.ashx", data: { id: id }, success: function (res) { if (res.code == 0) { $(".list_hidd").html(res.msg); $(".list_hidd").addclass("active"); } } } ); $(".list_hidd_box .close").click(function () { $(".list_hidd").removeclass("active"); }) }) break; case 'history': var pro02 = new swiper('.history .swiper-container', { loop: true, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: false, }, slidesperview: 5, navigation: { nextel: ".swiper-button-next", prevel: ".swiper-button-prev" }, breakpoints: { 640: { slidesperview: 1.35, }, 750: { slidesperview: 3, }, 960: { slidesperview: 4, }, } }) break; default: break; } })();