PageSourceSearch

https://theonlyarticle.com/skin/js/common.js

js theonlyarticle.com collected 2026-10-07 16:15:04 UTC 2,083 bytes, 60 lines download raw bytes

1/*蓝科企业网站系统PHP版
2http://www.lankecms.com*/
3
4$(document).ready(function(){
5      //返回顶部
6      $("#gototop").click(function(){
7          $("html,body").animate({scrollTop :0}, 800);return false;
8      });
9      $("#gotocate").click(function(){
10           $("html,body").animate({scrollTop:$("#categories").offset().top},800);return false;
11      });
12
13
14      // 搜索
15      $("#small_search").click(function(){
16          $("#topsearch").slideToggle();
17      });
18
19      if($(window).width()>768){
20          //鼠标划过就展开子菜单
21          $('ul.nav li.dropdown').hover(function() {
22            $(this).find('.dropdown-menu').stop(true, true).slideDown();
23          }, function() {
24            $(this).find('.dropdown-menu').stop(true, true).slideUp();
25          });
26
27          //scrollTop
28          // $(window).scroll(function(){
29          //     var scrolls = $(window).scrollTop()
30          //     if (scrolls > 10) {
31          //       $(".navbar").addClass("small-nav")
32          //     }else{
33          //       $(".navbar").removeClass("small-nav")
34          //     }
35          // });
36          
37      }
38
39      //左侧导航菜单
40      // if ($("#firstpane .menu_body:eq(0)").text().replace(/[\r\n ]/g,"").length>0) {
41      //   $("#firstpane .menu_body:eq(0)").show().prev().html("-").prev().addClass("left_active");
42      // };
43      $("ul.menu_body").each(function(){
44       if ($(this).text().replace(/[\r\n ]/g,"").length<=0) {$(this).prev().remove();} //去掉span
45      });
46
47      $("#firstpane span.menu_head").click(function(){
48          var spanatt = $(this).next("ul.menu_body").css('display');
49          if (spanatt == "block"){
50              var spantext = "+";
51               $(this).prev().removeClass("left_active");
52          }else{
53              var spantext = "-";
54              $(this).prev().addClass("left_active");
55          }
56          $(this).html(spantext).addClass("current").next("ul.menu_body").slideToggle(300).siblings("ul.menu_body");
57      });
58
59  
60});

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.