PageSourceSearch

https://room535.org/zb_users/theme/FY_Uo/style/js/functions.js

js room535.org collected 2026-10-06 18:56:44 UTC 3,212 bytes, 110 lines download raw bytes

1
2$(document).ready(function(){
3    $("#btn-bars").click(function(){
4	$(".navbar").slideToggle(500);
5    });
6});
7$(function(){
8    $('#monavber li').hover(function(){
9       $(this).addClass('on');
10    },function(){
11       $(this).removeClass('on');
12    });
13});
14
15$(".asaoma,.paybtm-erweima").hover(
16  function () {
17    $(".mall-ma").show();
18  },
19  function () {
20    $(".mall-ma").hide();
21}
22);
23//导航高亮
24jQuery(document).ready(function($){
25var datatype=$("#monavber").attr("data-type");
26    $(".navbar>li ").each(function(){
27        try{
28            var myid=$(this).attr("id");
29            if("index"==datatype){
30                if(myid=="nvabar-item-index"){
31                    $("#nvabar-item-index").addClass("active");
32                }
33            }else if("category"==datatype){
34                var infoid=$("#monavber").attr("data-infoid");
35                if(infoid!=null){
36                    var b=infoid.split(' ');
37                    for(var i=0;i<b.length;i++){
38                        if(myid=="navbar-category-"+b[i]){
39                            $("#navbar-category-"+b[i]+"").addClass("active");
40                        }
41                    }
42                }
43            }else if("article"==datatype){
44                var infoid=$("#monavber").attr("data-infoid");
45                if(infoid!=null){
46                    var b=infoid.split(' ');
47                    for(var i=0;i<b.length;i++){
48                        if(myid=="navbar-category-"+b[i]){
49                            $("#navbar-category-"+b[i]+"").addClass("active");
50                        }
51                    }
52                }
53            }else if("page"==datatype){
54                var infoid=$("#monavber").attr("data-infoid");
55                if(infoid!=null){
56                    if(myid=="navbar-page-"+infoid){
57                        $("#navbar-page-"+infoid+"").addClass("active");
58                    }
59                }
60            }else if("tag"==datatype){
61                var infoid=$("#monavber").attr("data-infoid");
62                if(infoid!=null){
63                    if(myid=="navbar-tag-"+infoid){
64                        $("#navbar-tag-"+infoid+"").addClass("active");
65                    }
66                }
67            }
68        }catch(E){}
69    });
70	$("#monavber").delegate("a","click",function(){
71		$(".navbar>li").each(function(){
72			$(this).removeClass("active");
73		});
74		if($(this).closest("ul")!=null && $(this).closest("ul").length!=0){
75			if($(this).closest("ul").attr("id")=="munavber"){
76				$(this).addClass("active");
77			}else{
78				$(this).closest("ul").closest("li").addClass("active");
79			}
80		}
81	});
82});
83//
84$(function() {
85	    $(window).scroll(function(){
86		    if($(window).scrollTop()>500){
87			    $("#gttop").show();
88		    }else{
89			    $("#gttop").hide();
90		    }
91	    });
92	    $("#gttop").click(function(){
93		    $("body,html").animate({scrollTop:0},1500);
94		    return false;
95	    });
96    });
97
98
99
100
101
102$(document).ready(function() {
103			$(".nav-search").click(function() {
104				$(".site-search").toggle();
105				$(".nav-search").toggleClass("searchshows");
106			});
107
108		});
109
110

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.