PageSourceSearch

https://www.sg.gov.cn/2021js/header.js

js sg.gov.cn collected 2026-10-02 14:38:43 UTC 942 bytes, 33 lines download raw bytes

1$(function () {
2  //头部下拉二维码
3  $(".header-menu li").hover(function () {
4    $(this).find(".drop").stop().slideDown("fast");
5  }, function () {
6    $(this).find(".drop").stop().slideUp("fast");
7  })
8
9  //导航选中效果
10  try {
11    var str = $(".crumb").text();
12    var str1 = str.split(">")[1];
13    if ($.trim(str1) != '') {
14      $(".mainNav li").each(function () {
15        if ($.trim($(this).find("a").text()).search($.trim(str1)) > -1) {
16          $(this).addClass("on");
17        }
18      })
19    }
20  } catch (e) { }
21
22  $(".header-ban").slide({ mainCell: ".header-ban-bd ul", effect: "fold", autoPlay: true });
23})
24
25// 头部搜索
26function headerSearch() {
27  if (document.getElementById("sstitle").value == "") {
28    alert("请输入关键字");
29  } else {
30    document.searchForm.searchword.value = document.searchForm.keywords.value;
31    document.getElementById("searchForm").submit();
32  }
33}

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.