$(function () { var bannerslider = new slider($('#banner_tabs'), { time: 5000, delay: 400, event: 'hover', auto: true, mode: 'fade', controller: $('#bannerctrl'), activecontrollercls: 'active' }); $('#banner_tabs .flex-prev').click(function () { bannerslider.prev() }); $('#banner_tabs .flex-next').click(function () { bannerslider.next() }); qfast(false, 'widgets', function () { k.tabs({ id: 'fsd1', //焦点图包裹id conid: "d1pic1", //** 大图域包裹id tabid: "d1fbt", tabtn: "a", concn: '.fcon', //** 大图域配置class auto: 1, //自动播放 1或0 effect: 'fade', //效果配置 etype: 'click', //** 鼠标事件 pagebt: true, //是否有按钮切换页码 bns: ['.prev', '.next'], //** 前后按钮配置class interval: 3000 //** 停顿时间 }) }); $(".develop-list").find("span[id]").hover(function () { var idstr = $(this).attr("id"); $(this).addclass("change-style").siblings().removeclass("change-style"); $("#debelop-data").find("ul[data-debelop='" + idstr + "']").show().siblings().hide(); }); $(".ico-list-nav").find("a[data-role]").hover(function () { var datarolestr = $(this).attr("data-role"); $(this).addclass("change-style").siblings().removeclass("change-style"); $(".images-list-box").find("div[id='" + datarolestr + "']").show().siblings().hide(); }); $("#starts .jq-slide").slide({ effect: "scroolloop", autoplay: false, speed: "normal", timer: 3000, steps: 1 }); $("#model-workers .jq-slide").slide({ effect: "scroolloop", autoplay: false, speed: "normal", timer: 3000, steps: 1 }); $("#deputy .jq-slide").slide({ effect: "scroolloop", autoplay: false, speed: "normal", timer: 3000, steps: 1 }); $("#driver .jq-slide").slide({ effect: "scroolloop", autoplay: false, speed: "normal", timer: 3000, steps: 1 }); $("#photography .jq-slide").slide({ effect: "scroolloop", autoplay: false, speed: "normal", timer: 3000, steps: 1 }); $(".returntop").pin({ containerselector: ".content-info-box" }); var cssstr = { "margin-top": "-99px" }; $(".auto").animate(cssstr, "slow", autoanimate); function autoanimate() { if ($(".auto").css("margin-top") === "-99px") { cssstr = { "margin-top": "-139px" }; $(".auto").animate(cssstr, "1000", autoanimate); } else { cssstr = { "margin-top": "-99px" }; $(".auto").animate(cssstr, "1000", autoanimate); } }; $($(".images-list-box").find(".wrap").find("li")).mouseover(function () { $($(this).find("a")[1]).show(); }); $($(".images-list-box").find(".wrap").find("li")).mouseout(function () { $($(this).find("a")[1]).hide(); }); // 侧边导航栏 var slideout = new slideout({ 'panel': document.getelementbyid('main'), 'menu': document.getelementbyid('menu'), 'padding': 700, 'tolerance': 70, 'side': 'right' }); document.queryselector('.js-slideout-toggle').addeventlistener('click', function () { slideout.toggle(); }); document.queryselector('.menu').addeventlistener('click', function (eve) { if (eve.target.nodename === 'a') { slideout.close(); } }); function aload(t) { "use strict"; t = t || window.document.queryselectorall("[data-aload]"), void 0 === t.length && (t = [t]); var a, e = 0, r = t.length; for (e; r > e; e += 1) a = t[e], a["link" !== a.tagname ? "src" : "href"] = a.getattribute("data-aload"), a.removeattribute("data-aload"); return t } window.onload = function () { aload(); document.queryselector('.iphone').classname += ' shown'; } $(".bus-about-mobile-info").css("font-size", "1.7rem"); $(".returntop").attr("href", ""); $("#news-sun-maven").on("click", function () { if ($("#news-sun-maven").attr("data-open") === "false") { $("#menu").find("[data-sun]").slideup(); $("#menu").find("[data-role='news-sun-maven']").slidedown(function () { $("#news-sun-maven").attr("data-open", "true"); }); } else { $("#menu").find("[data-role='news-sun-maven']").slideup(function () { $("#news-sun-maven").attr("data-open", "false"); }); } }); var onefunction = function () { $(".auto-mobile1").fadein(2000, "swing", function () { settimeout(function () { $(".auto-mobile1").fadeout(1000, "swing", function () { twofunction(); }); }, 2000); }); }; var twofunction = function () { $(".auto-mobile2").fadein(2000, "swing", function () { settimeout(function () { $(".auto-mobile2").fadeout(2000, "swing", function () { threefunction(); }); }, 2000); }); }; var threefunction = function () { $(".auto-mobile").fadein(2000, "swing", function () { settimeout(function () { $(".auto-mobile").fadeout(2000, "swing", function () { onefunction(); }); }, 2000); }); }; settimeout(function () { $(".auto-mobile").fadeout(2000, "swing", function () { onefunction(); }); }, 2000); });