PageSourceSearch

https://xingkongmt.com/js/base.js?v=1.00

js xingkongmt.com collected 2026-10-08 12:27:14 UTC 3,252 bytes, 111 lines download raw bytes

1$(function () {
2
3
4  // 客户说
5  var swiper = new Swiper('.swiper-container', {
6    pagination: {
7      el: '.swiper-pagination',
8      clickable: true,
9    },
10    slidesPerView: 3,
11    spaceBetween: 30,
12    autoplay: true
13  });
14
15  //注意:导航 依赖 element 模块,否则无法进行功能性操作
16  layui.use('element', function () {
17    var element = layui.element;
18  });
19  $(document).scroll(function () {
20    var scroH = $(document).scrollTop(); //滚动高度
21    if (scroH > $('#menu').offset().top) {
22      $('#menu-top').css('opacity', '1');
23      $('#menu-top').css('top', '0');
24    } else {
25      $('#menu-top').css('opacity', '0');
26      $('#menu-top').css('top', '-60px');
27    }
28  });
29
30  $('.go-top').click(function () {
31    $('html,body').animate({
32      scrollTop: '0px'
33    }, 800);
34  });
35  // 分页自定义
36  // layui.use(['laypage', 'layer'], function () {
37  //   var laypage = layui.laypage,
38  //     layer = layui.layer;
39  //   laypage.render({
40  //     elem: 'demo9',
41  //     count: 100
42  //     // , layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
43  //     ,
44  //     jump: function (obj) {
45  //       // console.log(obj)
46  //     }
47  //   });
48  // })
49  // 左侧导航切换
50  $('.content-left-ul-li').click(function () {
51    $(this).addClass('active-left').siblings().removeClass('active-left');
52    $(this).find('ul').slideDown(500)
53    $(this).siblings().find('ul').slideUp(500);
54  });
55  //左侧手风琴导航
56
57  var list = function (el, multiple) {
58    this.el = el || {};
59    this.multiple = multiple || false;
60
61    // Variables privadas
62    var links = this.el.find('.link');
63    // Evento
64    links.on('click', {
65      el: this.el,
66      multiple: this.multiple
67    }, this.dropdown)
68  }
69
70  list.prototype.dropdown = function (e) {
71    var $el = e.data.el;
72    $this = $(this),
73      $next = $this.next();
74
75    $next.stop().slideToggle();
76    $this.parent().toggleClass('open');
77
78    if (!e.data.multiple) {
79      //			$el.find('.submenu').not($next).parent().removeClass('open');
80    };
81  }
82
83  var list = new list($('#list'), false);
84
85  // 修改密码跳转
86
87  function getQueryVariable(variable) {
88    var query = window.location.search.substring(1);
89    var vars = query.split("&");
90    for (var i = 0; i < vars.length; i++) {
91      var pair = vars[i].split("=");
92      if (pair[0] == variable) {
93        return pair[1];
94      }
95    }
96    return (false);
97  }
98  getchangemima();
99  function getchangemima() {
100    if (getQueryVariable('name')=='changepwd') {
101      $('.content-right-title ul li').eq(2).addClass('right-active').siblings().removeClass('right-active')
102      $('.tab-content').eq(2).addClass('active').siblings('.tab-content').removeClass('active')
103    }else if(getQueryVariable('name')=='wxBind'){
104      $('.content-right-title ul li').eq(3).addClass('right-active').siblings().removeClass('right-active')
105      $('.tab-content').eq(3).addClass('active').siblings('.tab-content').removeClass('active')
106    }else if(getQueryVariable('name')=='apidoc'){
107      $('.content-right-title ul li').eq(5).addClass('right-active').siblings().removeClass('right-active')
108      $('.tab-content').eq(5).addClass('active').siblings('.tab-content').removeClass('active')
109    }
110  }
111})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.