|
@@ -1,172 +0,0 @@
|
|
|
-// 视频模态框打开
|
|
|
-$(".video-button").click(function () {
|
|
|
- $(".modalKede").css("display", "block")
|
|
|
- document.getElementById("video_").play()
|
|
|
-})
|
|
|
-
|
|
|
-$(".button_video").click(function () {
|
|
|
- $(".modalKede").css("display", "block")
|
|
|
- document.getElementById("video_").play()
|
|
|
-})
|
|
|
-//视频模态框关闭
|
|
|
-$(".modalx_kede").click(function () {
|
|
|
- $(".modalKede").css("display", "none")
|
|
|
- document.getElementById("video_").pause()
|
|
|
-})
|
|
|
-
|
|
|
-// 滚动-产品列表动画
|
|
|
-xRoll($(".serve-list li"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-//滚动-栏目标题动画
|
|
|
-xRoll($(".item-title"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-//滚动-栏目描述动画
|
|
|
-xRoll($(".item-dec"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-//滚动-新闻盒子动画
|
|
|
-xRoll($(".mainnews"), function (e) {
|
|
|
- e.toggleClass("animation-slide-left")
|
|
|
-})
|
|
|
-//滚动-新闻盒子动画
|
|
|
-xRoll($(".newslist-right"), function (e) {
|
|
|
- e.toggleClass("animation-slide-right")
|
|
|
-})
|
|
|
-//滚动-资质荣誉动画
|
|
|
-xRoll($(".honor-box"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-//滚动-服务客户动画
|
|
|
-xRoll($("#swiper2"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-//滚动-关于我们盒子动画
|
|
|
-xRoll($(".about .col-lg-8"), function (e) {
|
|
|
- e.toggleClass("animation-slide-left")
|
|
|
-})
|
|
|
-//滚动-新闻盒子动画
|
|
|
-xRoll($(".about .col-lg-4"), function (e) {
|
|
|
- e.toggleClass("animation-slide-right")
|
|
|
-})
|
|
|
-//滚动-战略合作动画
|
|
|
-xRoll($("#swiper22"), function (e) {
|
|
|
- e.toggleClass("animation-slide-bottom50")
|
|
|
-})
|
|
|
-
|
|
|
-
|
|
|
-$(".serve-button").click(function (e) {
|
|
|
- e.preventDefault();
|
|
|
- e.stopPropagation();
|
|
|
- $("#nb_icon_wrap").click()
|
|
|
-})
|
|
|
-
|
|
|
-if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) { //移动端
|
|
|
- console.log("我是手机端")
|
|
|
-} else {
|
|
|
- //产品列表轮播
|
|
|
- var a = 0
|
|
|
- var uls = document.querySelector(".serve-list")
|
|
|
- var lis = uls.querySelectorAll("li")
|
|
|
- var times = null
|
|
|
-
|
|
|
- function forear(e) {
|
|
|
- for (var fore = 0; fore < lis.length; fore++) {
|
|
|
- lis[fore].classList.remove("active");
|
|
|
- }
|
|
|
- }
|
|
|
- var times = setInterval(function () {
|
|
|
- forear()
|
|
|
- lis[a].classList.add("active");
|
|
|
- a++;
|
|
|
- if (a > 7) { a = 0 }
|
|
|
- }, 1500)
|
|
|
-
|
|
|
- function startime() {
|
|
|
- for (var i = 0; i < lis.length; i++) {
|
|
|
- lis[i].addEventListener("mouseleave", function (e) {
|
|
|
- clearInterval(times)
|
|
|
- times = setInterval(function () {
|
|
|
- forear()
|
|
|
- lis[a].classList.add("active");
|
|
|
- a++;
|
|
|
- if (a > 7) { a = 0 }
|
|
|
- }, 1500)
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- startime()
|
|
|
-
|
|
|
- function product_a() {
|
|
|
-
|
|
|
- for (var i = 0; i < lis.length; i++) {
|
|
|
- lis[i].addEventListener("mouseenter", function (e) {
|
|
|
- clearInterval(times)
|
|
|
- forear()
|
|
|
- }, false)
|
|
|
- }
|
|
|
- }
|
|
|
- product_a();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-function isIE() {
|
|
|
- if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
|
|
- alert("您好!你当前的浏览器版本过低!安全系数较低!页面无法显示完全,请切换至其他浏览器!!")
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
-}
|
|
|
-isIE()
|
|
|
-
|
|
|
-
|
|
|
-// 关于科德
|
|
|
-var time = 1;
|
|
|
-
|
|
|
-function dx(i) {
|
|
|
- if (i == 1) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.two").toggleClass("active").find(".bubble").fadeIn("fast") //2 长沙
|
|
|
- $(".about-dot.three").toggleClass("active").find(".bubble").fadeIn("fast") //3 北京
|
|
|
- $(".about-dot.sixteen").toggleClass("active").find(".bubble").fadeIn("fast") //16 内蒙古
|
|
|
- } else if (i == 2) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.eighteen").toggleClass("active").find(".bubble").fadeIn("fast") //18 长春
|
|
|
- $(".about-dot.ten").toggleClass("active").find(".bubble").fadeIn("fast") //10 昆明
|
|
|
- $(".about-dot.twenty").toggleClass("active").find(".bubble").fadeIn("fast") //20 新疆
|
|
|
- } else if (i == 3) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.fifteen").toggleClass("active").find(".bubble").fadeIn("fast") //15 拉萨
|
|
|
- $(".about-dot.seven").toggleClass("active").find(".bubble").fadeIn("fast") //7 广州
|
|
|
- $(".about-dot.twelve").toggleClass("active").find(".bubble").fadeIn("fast") //12 沈阳
|
|
|
- } else if (i == 4) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.eleven").toggleClass("active").find(".bubble").fadeIn("fast") //11 成都
|
|
|
- $(".about-dot.one").toggleClass("active").find(".bubble").fadeIn("fast") //1 福建
|
|
|
- $(".about-dot.nineteen").toggleClass("active").find(".bubble").fadeIn("fast") //19 贵州
|
|
|
- } else if (i == 5) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.seventeen").toggleClass("active").find(".bubble").fadeIn("fast") //17 石家庄
|
|
|
- $(".about-dot.thirteen ").toggleClass("active").find(".bubble").fadeIn("fast") //13 南昌
|
|
|
- $(".about-dot.six ").toggleClass("active").find(".bubble").fadeIn("fast") //6 山东济南
|
|
|
- } else if (i == 6) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.fourteen").toggleClass("active").find(".bubble").fadeIn("fast") //14 大连
|
|
|
- $(".about-dot.nine").toggleClass("active").find(".bubble").fadeIn("fast") //9 合肥
|
|
|
- $(".about-dot.five").toggleClass("active").find(".bubble").fadeIn("fast") //5 广西
|
|
|
- } else if (i == 7) {
|
|
|
- $(".about-dot").removeClass("active").find(".bubble").hide()
|
|
|
- $(".about-dot.four").toggleClass("active").find(".bubble").fadeIn("fast") //4 武汉
|
|
|
- $(".about-dot.eight").toggleClass("active").find(".bubble").fadeIn("fast") //8 郑州
|
|
|
- $(".about-dot.twenty-one").toggleClass("active").find(".bubble").fadeIn("fast") //21 宁夏
|
|
|
- }
|
|
|
-}
|
|
|
-//循环定时器
|
|
|
-setInterval(function () {
|
|
|
- if (time > 7) { time = 1; }
|
|
|
- dx(time)
|
|
|
- time++
|
|
|
-}, 2300);
|