PageSourceSearch

https://dongning.gov.cn/mdjdnsrmzf/xhtml/pc2023/js/common.js

js dongning.gov.cn collected 2026-10-02 16:47:45 UTC 1,972 bytes, 72 lines download raw bytes

1$(document).ready(function () {
2  //选项卡
3  if ($(".js-tab").length > 0) {
4      jQuery(".js-tab").slide({
5          delayTime: 0,
6          triggerTime: 0,
7          targetCell: ".more a"
8      });
9  }
10  if ($(".js-switch").length > 0) {
11      jQuery(".js-switch").slide({
12          titCell: ".js-hd li:not('.islink')",
13    mainCell: ".js-bd",
14          delayTime: 0,
15          triggerTime: 0,
16          targetCell: ".more a"
17      });
18  }
19
20  // 返回顶部
21  $("#quickFun-totop").click(function() {
22      $("body,html").animate({
23          scrollTop: 0
24      }, 1000);
25  });
26  isShowQuickFunTotop(window.pageYOffset);
27  // 页面滚动,判断是否显示返回顶部按钮,左侧显示对应导航
28  $(window).on("scroll", function () {
29      isShowQuickFunTotop($(this).scrollTop());
30  });
31  // 是否显示返回顶部按钮 S
32  function isShowQuickFunTotop(top){
33    if(top > 600) {
34        $("#quickFun-totop").fadeIn();
35    } else {
36        $("#quickFun-totop").fadeOut();
37    }
38  }
39
40
41
42});
43
44function isMobile() {
45  return "ontouchstart" in document.documentElement && "ontouchmove" in document.documentElement
46}
47
48//cookies设置
49function setCookie(name, value) {
50  var argv = setCookie.arguments;
51  var argc = setCookie.arguments.length;
52  var expires = (argc > 2) ? argv[2] : null;
53  if (expires != null) {
54    var LargeExpDate = new Date();
55    LargeExpDate.setTime(LargeExpDate.getTime() + (expires * 1000 * 3600 * 24));
56  }
57  document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + LargeExpDate.toGMTString())) + ";path=/";
58}
59
60//cookies读取
61function getCookie(Name) {
62  var search = Name + "="
63  if (document.cookie.length > 0) {
64    offset = document.cookie.indexOf(search)
65    if (offset != -1) {
66      offset += search.length
67      end = document.cookie.indexOf(";", offset)
68      if (end == -1) end = document.cookie.length
69      return unescape(document.cookie.substring(offset, end))
70    } else return ""
71  }
72}

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.