PageSourceSearch

https://ytc.cn/js/public.js

js ytc.cn collected 2026-10-07 19:43:12 UTC 4,596 bytes, 169 lines download raw bytes

1
2
3  if(navigator.appName == "Microsoft Internet Explorer"&&parseInt(navigator.appVersion.split(";")[1].replace(/[ ]/g, "").replace("MSIE",""))<=9){
4      //document.getElementById('browser-modal').style.display='block';
5      $('body').append('<div id="browser-modal"><div class="browser-modal-cover"></div><div class="browser-content"><div class="browser-text"><h3 class="browser-text-title">请升级浏览器版本</h3><p class="browser-text-desc">你正在使用旧版本浏览器。请升级浏览器以获得更好的体验。</p></div><div class="browser-list"><div class="browser-item"><a href="https://www.google.cn/chrome/" target="_blank"><div class="iconfont iconchrome"></div><h4>Chrome</h4></a></div><div class="browser-item"><a href="http://www.firefox.com.cn/" target="_blank"><div class="iconfont iconfirefox"></div><h4>Firefox</h4></a></div><div class="browser-item"><a href="https://www.opera.com/zh-cn" target="_blank"><div class="iconfont iconopera"></div><h4>Opera</h4></a></div><div class="browser-item"><a href="https://www.microsoft.com/zh-cn/edge" target="_blank"><div class="iconfont iconEdge"></div><h4>Edge</h4></a></div></div></div></div>')
6      //console.log("您的浏览器版本过低,请使用IE9以上版本");
7  }
8
9
10 $(".changeT").click(function(){
11  var s=$(this).find('span').text();
12  var a= $(this).attr('data-a');
13  var b= $(this).attr('data-b');
14  if(s==b)
15   {$(this).find('span').text(a)}
16  else{
17   $(this).find('span').text(b);
18  };
19  $(this).find('i').toggleClass('iconart');
20  $(this).prev('.infoall').slideToggle();
21  $(this).siblings('.infodesc').slideToggle();
22 })
23
24$(window).scroll(function(){  
25var scrollPos=$(window).scrollTop();  
26if(scrollPos >0){  
27$("body").addClass("scrolling"); 
28}else{  
29$("body").removeClass("scrolling"); 
30
31} 
32if(scrollPos >600){
33  $(".rightFix").fadeIn();
34}else{
35  $(".rightFix").fadeOut(); 
36}
37
38
39}); 
40$(function(){
41var scrollPos=$(window).scrollTop();  
42if(scrollPos >0){  
43$("body").addClass("scrolling");
44}else{  
45$("body").removeClass("scrolling");  
46} 
47if(scrollPos >600){
48  $(".rightFix").fadeIn();
49}else{
50  $(".rightFix").fadeOut(); 
51}
52
53
54})
55
56
57$(".left_menus").click(function(e){
58$(this).next('ul').slideToggle();
59$(this).toggleClass('on');
60$(document).one("click", function(){
61$(".nysubnav ul").slideUp();
62$(".left_menus").removeClass('on') 
63});
64e.stopPropagation();
65})
66 $('.nysubnav a').each(function(){
67  var ons = $(this).attr('class');
68  if(ons=='on'){
69    $(this).parent().parent().addClass('cur noarr')
70    $(this).parent().show()
71  }
72})
73
74
75$(".navp").each(function(){
76  $(this).click(function(){
77       $(this).parent().siblings().find('.subNavm').slideUp();
78     $(this).parent().siblings().removeClass('on');
79    $(this).parent().toggleClass('on');
80    $(this).next().slideToggle();
81
82  })
83})
84
85
86
87
88$(".menu-btn").click(function(){
89$('html').toggleClass('drawerMenu-open');
90 $(".subNav").toggleClass('on');
91// $("body").toggleClass('fixdbody');
92})
93
94
95
96$('.toSearch').click(function(){
97$(".cd-popup").addClass('is-visible')
98});
99$('.close_btn').click(function(){
100$(".cd-popup").removeClass('is-visible')
101}) 
102
103$(function(){
104
105  if($(window).width()>1200){
106 $(".navbtn .open").mouseover(function(){
107
108  $(this).hide().next('.close').show();
109
110  $('.topFix').addClass('black')
111
112  $('.rightNav').addClass('show')
113
114  $(".rightNavbg").fadeIn()
115
116 }) 
117
118 $(".rightNavbg").click(function(){
119
120
121
122 })
123
124  $(".rightNav").mouseleave(function(){
125
126  $('.open').show().next('.close').hide();
127
128  $('.topFix').removeClass('black')
129
130  $(this).removeClass('show')
131
132  $(".rightNavbg").fadeOut()
133
134 }) 
135}
136if($(window).width()<=1200){
137   $(".navbtn .open").click(function(){
138  $(this).hide().next('.close').show();
139  $('.rightNav').addClass('show')
140
141  $(".rightNavbg").fadeIn()
142
143 }) 
144$(".navbtn .close").click(function(){    
145  $('.navbtn .open').show().next('.close').hide();
146 $('.rightNav').removeClass('show')
147  $(".rightNavbg").fadeOut()      
148}) 
149
150$(".logo img").attr('src','/images/logo4.png');
151$(".topFix").addClass('black');
152$(".navbtn .open img").attr('src','/images/navbon.png');
153$(".navbtn .close img").attr('src','/images/navbonm.png');
154
155 $(".rightNavbg").click(function(){
156  $('.navbtn .open').show().next('.close').hide();
157 $('.rightNav').removeClass('show')
158  $(".rightNavbg").fadeOut()   
159
160
161 })
162}
163
164   var n=new WOW({boxClass:"uani",animateClass:"animated",offset:0,mobile:!1,live:!0});/msie [6|7|8|9]/i.test(navigator.userAgent)||n.init()
165 
166
167
168})
169

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.