index.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. (() => {
  2. if ($(".video-button").click(function () {
  3. $(".modalKede").css("display", "block"),
  4. document.getElementById("video_").play()
  5. }),
  6. $(".button_video").click(function () {
  7. $(".modalKede").css("display", "block"),
  8. document.getElementById("video_").play()
  9. }),
  10. $(".modalx_kede").click(function () {
  11. $(".modalKede").css("display", "none"),
  12. document.getElementById("video_").pause()
  13. }),
  14. xRoll($(".serve-list li"), function (e) {
  15. e.toggleClass("animation-slide-bottom50")
  16. }),
  17. xRoll($(".item-title"), function (e) {
  18. e.toggleClass("animation-slide-bottom50")
  19. }),
  20. xRoll($(".item-dec"), function (e) {
  21. e.toggleClass("animation-slide-bottom50")
  22. }),
  23. xRoll($(".mainnews"), function (e) {
  24. e.toggleClass("animation-slide-left")
  25. }),
  26. xRoll($(".newslist-right"), function (e) {
  27. e.toggleClass("animation-slide-right")
  28. }),
  29. xRoll($(".honor-box"), function (e) {
  30. e.toggleClass("animation-slide-bottom50")
  31. }),
  32. xRoll($("#swiper2"), function (e) {
  33. e.toggleClass("animation-slide-bottom50")
  34. }),
  35. xRoll($(".about .col-lg-8"), function (e) {
  36. e.toggleClass("animation-slide-left")
  37. }),
  38. xRoll($(".about .col-lg-4"), function (e) {
  39. e.toggleClass("animation-slide-right")
  40. }),
  41. xRoll($("#swiper22"), function (e) {
  42. e.toggleClass("animation-slide-bottom50")
  43. }),
  44. $(".serve-button").click(function (e) {
  45. e.preventDefault(), e.stopPropagation(),
  46. $("#nb_icon_wrap").click()
  47. }),
  48. /(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent))
  49. console.log("我是手机端");
  50. else {
  51. var e = 0,
  52. t = document.querySelector(".serve-list").querySelectorAll("li"),
  53. o = null;
  54. function a(e) {
  55. for (var o = 0; o < t.length; o++)t[o].classList.remove("active")
  56. }
  57. o = setInterval(function () {
  58. a(), t[e].classList.add("active"), ++e > 8 && (e = 0)
  59. }, 1500);
  60. !function () {
  61. for (var l = 0; l < t.length; l++)t[l].addEventListener("mouseleave", function (l) {
  62. clearInterval(o), o = setInterval(function () { a(), t[e].classList.add("active"), ++e > 8 && (e = 0) }, 1500)
  63. })
  64. }(),
  65. function () {
  66. for (var e = 0; e < t.length; e++)t[e].addEventListener("mouseenter", function (e) { clearInterval(o), a() }, !1)
  67. }()
  68. } (window.ActiveXObject || "ActiveXObject" in window) && alert("您好!你当前的浏览器版本过低!安全系数较低!页面无法显示完全,请切换至其他浏览器!!");
  69. var l = 1;
  70. setInterval(function () {
  71. l > 8 && (l = 1),
  72. function (e) {
  73. 1 == e ? (
  74. $(".about-dot").removeClass("active").find(".bubble").hide(),
  75. $(".about-dot.two").toggleClass("active").find(".bubble").fadeIn("fast"),
  76. $(".about-dot.three").toggleClass("active").find(".bubble").fadeIn("fast"),
  77. $(".about-dot.sixteen").toggleClass("active").find(".bubble").fadeIn("fast")
  78. ) : 2 == e ? (
  79. $(".about-dot").removeClass("active").find(".bubble").hide(),
  80. $(".about-dot.eighteen").toggleClass("active").find(".bubble").fadeIn("fast"),
  81. $(".about-dot.ten").toggleClass("active").find(".bubble").fadeIn("fast"),
  82. $(".about-dot.twenty").toggleClass("active").find(".bubble").fadeIn("fast")
  83. ) : 3 == e ? (
  84. $(".about-dot").removeClass("active").find(".bubble").hide(),
  85. $(".about-dot.fifteen").toggleClass("active").find(".bubble").fadeIn("fast"),
  86. $(".about-dot.seven").toggleClass("active").find(".bubble").fadeIn("fast"),
  87. $(".about-dot.twelve").toggleClass("active").find(".bubble").fadeIn("fast")
  88. ) : 4 == e ? (
  89. $(".about-dot").removeClass("active").find(".bubble").hide(),
  90. $(".about-dot.eleven").toggleClass("active").find(".bubble").fadeIn("fast"),
  91. $(".about-dot.one").toggleClass("active").find(".bubble").fadeIn("fast"),
  92. $(".about-dot.nineteen").toggleClass("active").find(".bubble").fadeIn("fast")
  93. ) : 5 == e ? (
  94. $(".about-dot").removeClass("active").find(".bubble").hide(),
  95. $(".about-dot.seventeen").toggleClass("active").find(".bubble").fadeIn("fast"),
  96. $(".about-dot.thirteen ").toggleClass("active").find(".bubble").fadeIn("fast"),
  97. $(".about-dot.six ").toggleClass("active").find(".bubble").fadeIn("fast")
  98. ) : 6 == e ? (
  99. $(".about-dot").removeClass("active").find(".bubble").hide(),
  100. $(".about-dot.fourteen").toggleClass("active").find(".bubble").fadeIn("fast"),
  101. $(".about-dot.nine").toggleClass("active").find(".bubble").fadeIn("fast"),
  102. $(".about-dot.five").toggleClass("active").find(".bubble").fadeIn("fast")
  103. ) : 7 == e ? (
  104. $(".about-dot").removeClass("active").find(".bubble").hide(),
  105. $(".about-dot.four").toggleClass("active").find(".bubble").fadeIn("fast"),
  106. $(".about-dot.eight").toggleClass("active").find(".bubble").fadeIn("fast"),
  107. $(".about-dot.twenty-one").toggleClass("active").find(".bubble").fadeIn("fast")
  108. ) : 8 == e && (
  109. $(".about-dot").removeClass("active").find(".bubble").hide(),
  110. $(".about-dot.twenty-two").toggleClass("active").find(".bubble").fadeIn("fast")
  111. )
  112. }(l), l++
  113. }, 2300)
  114. })();