PageSourceSearch

https://tscstudy.com/js/lib.js

js tscstudy.com collected 2026-10-07 13:06:40 UTC 4,345 bytes, 158 lines download raw bytes

1
2$(document).ready(function($) {
3	
4	$('html head link:eq(2)').after('<link rel="stylesheet" href="css/pt.css">');
5
6	
7	// 手机导航
8	$('.menuBtn').append('<b></b><b></b><b></b>');
9	$('.menuBtn').click(function(event) {
10		$(this).toggleClass('open');
11		var _winw = $(window).width();
12		var _winh = $(window).height();
13		if( $(this).hasClass('open') ){
14			$('body').addClass('open');
15			if( _winw<=767 ){
16				$('#nv .wrap').stop().slideDown();
17			}
18		}else{
19			$('body').removeClass('open');
20			if( _winw<=767 ){
21				$('#nv .wrap').stop().slideUp();
22			}
23		}
24	});
25    //QA下拉收起
26    $(".box-faq .m1").click(function() {
27        $(this).parents("li").toggleClass("on").siblings('li').removeClass('on').find('.m1').siblings('.m2').stop().slideUp();
28    if($(this).parents('li').hasClass('on')) {
29        $(this).next(".m2").stop().slideDown();
30    }else{
31        $(this).next(".m2").stop().slideUp();
32    }
33    //图标
34    $(".box-faq").find(".m1").find('h3').removeClass('dc15');
35    $(".box-faq").find('.on').find(".m1").find('h3').addClass('dc15');
36    });
37    //加减插件
38    $(".num-link").each(function(index, el) {
39            var _this = $(this);
40            var t = _this.find(".val");  
41            _this.find(".a2").click(function(event){       
42                t.val(parseInt(t.val())+1)  
43            });  
44            _this.find(".a1").click(function(event){  
45                if(t.val()>1){
46                    t.val(parseInt(t.val())-1)  
47                }
48            });  
49        });
50
51
52    //底部
53    $('.fnav dt').click(function(){
54        $(this).parent('dl').find('dd').stop().slideToggle();
55    });
56
57    // $('.nav li > a').hover(function(){
58    //     var sub = $(this).siblings('.sub');
59    //     if( !sub.length > 0){
60    //         return true;
61    //     }
62    //     if(sub.is(':visible')){
63    //         sub.hide();
64    //         $(this).parent('li').removeClass('on');
65    //     }else{
66    //         $('.sub').hide();
67    //         $('.nav li .on').parent('li').removeClass('on');
68    //         $(this).parent('li').addClass('on');
69    //         sub.show();
70    //     }
71    //     return false;
72    // });
73
74    $('.nav li').mouseenter(function(){
75        $(this).find('.sub').stop().slideDown();
76    });
77
78    $('.nav li').mouseleave(function(){
79        $(this).find('.sub').stop().slideUp();
80    });
81
82    $('.snav li > a').click(function(){
83        var sub = $(this).siblings('.snav .sub');
84        if( !sub.length > 0){
85            return true;
86        }
87        if(sub.is(':visible')){
88            sub.hide();
89            $(this).parent('li').removeClass('on');
90        }else{
91            $('.snav .sub').hide();
92            $('.snav li .on').parent('li').removeClass('on');
93            $(this).parent('li').addClass('on');
94            sub.show();
95        }
96        return false;
97    });
98
99
100
101    $('.snav .sub h4 > a').click(function(){
102        var sub = $(this).parent('h4').next('dl');
103        if( !sub.length > 0){
104            return true;
105        }
106        if(sub.is(':visible')){
107            sub.hide();
108            $(this).parent('h4').removeClass('ok');
109        }else{
110            $('dl').hide();
111            $('.snav .sub h4 .ok').parent('h4').removeClass('ok');
112            $(this).parent('h4').addClass('ok');
113            sub.show();
114        }
115        return false;
116    });
117
118    // 服务网络
119    $('#sy').hover(function() {
120        $('.f-sy').fadeIn();
121    });
122    $('#bj').hover(function() {
123        $('.f-bj').fadeIn();
124    });
125    $('#qd').hover(function() {
126        $('.f-qd').fadeIn();
127    });
128    $('#sz').hover(function() {
129        $('.f-sz').fadeIn();
130    });
131    $('#xa').hover(function() {
132        $('.f-xa').fadeIn();
133    });
134    $('#cq').hover(function() {
135        $('.f-cq').fadeIn();
136    });
137    $('#wh').hover(function() {
138        $('.f-wh').fadeIn();
139    });
140    $('#gz').hover(function() {
141        $('.f-gz').fadeIn();
142    });
143    $('#shz').hover(function() {
144        $('.f-shz').fadeIn();
145    });
146
147    $('.btn-close').click(function() {
148        $(this).parents('.f-map').fadeOut();
149    });
150
151    $('.lm-map em').hover(function() {
152        $(this).siblings('em').next('.f-map').fadeOut();
153    });
154
155
156
157	
158});

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.