PageSourceSearch

https://www.excelsecu.com/PC/js/js.js

js excelsecu.com collected 2026-10-04 13:25:40 UTC 10,920 bytes, 218 lines download raw bytes

1$(function(){
2	function rem(){
3        var w=window.innerWidth; 
4        if(w>640){
5            document.querySelector('html').style.fontSize=100+'px';
6        }else{
7            document.querySelector('html').style.fontSize=w/320*50+'px'; 
8        }
9    }
10    rem();
11    $(window).on("resize",function(){
12        rem();
13    });
14    $(".pc-search").on("click",function(){
15		if(!$(".header").hasClass('searchopen')){
16			$(".header").addClass('searchshow')
17			$(".navbar").on("animationend webkitAnimationEnd", function(){
18				$(".header").removeClass('searchshow').addClass('searchopen')
19			})
20		}else{
21			$(".header").removeClass('searchopen')
22		}
23		$(".mask").toggle()
24	});
25	$(".search-pclose").on("click",function(){
26		$(".header").removeClass('searchopen')
27		$(".mask").hide()
28	});
29    /*! http://mths.be/placeholder v2.0.8 */
30!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(this);if(d.value===f.attr(h?"placeholder-x":"placeholder")&&f.hasClass(n.customClass))if(d.value="",f.removeClass(n.customClass),f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c,c;f.focus()}else d==e()&&d.select()}function d(d){var e,f=this,g=a(this),i=f.id;if(!d||"blur"!==d.type||!g.hasClass(n.customClass))if(""===f.value){if("password"===f.type){if(!g.data("placeholder-textinput")){try{e=g.clone().prop({type:"text"})}catch(j){e=a("<input>").attr(a.extend(b(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":g,"placeholder-id":i}).bind("focus.placeholder",c),g.data({"placeholder-textinput":e,"placeholder-id":i}).before(e)}f.value="",g=g.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g.data("placeholder-id")).show()}else{var k=g.data("placeholder-password");k&&(k[0].value="",g.attr("id",g.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}g.addClass(n.customClass),g[0].value=g.attr(h?"placeholder-x":"placeholder")}else g.removeClass(n.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h=!1,i="[object OperaMini]"===Object.prototype.toString.call(window.operamini),j="placeholder"in document.createElement("input")&&!i&&!h,k="placeholder"in document.createElement("textarea")&&!i&&!h,l=a.valHooks,m=a.propHooks,n={};j&&k?(g=a.fn.placeholder=function(){return this},g.input=!0,g.textarea=!0):(g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};return n=a.extend({},e,b),this.filter((j?"textarea":":input")+"["+(h?"placeholder-x":"placeholder")+"]").not("."+n.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder")},g.input=j,g.textarea=k,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(n.customClass)?"":b.value},set:function(b,f){var g,h,i=a(b);return""!==f&&(g=i.data("placeholder-textinput"),h=i.data("placeholder-password"),g?(c.call(g[0],!0,f)||(b.value=f),g[0].value=f):h&&(c.call(b,!0,f)||(h[0].value=f),b.value=f)),i.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):(i.hasClass(n.customClass)&&c.call(b),b.value=f),i):(b.value=f,i)}},j||(l.input=f,m.value=f),k||(l.textarea=f,m.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+n.customClass,this).each(function(){c.call(this,!0,"")});setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){var b=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(b=!1)}catch(c){}b&&a("."+n.customClass).each(function(){this.value=""})}))});
31
32	//header
33//  var e = this,
34//      a = $(".header"),
35//      t = a.find(".category-item");
36//  t.hover(function() {
37//      var t = $(this),
38//          n = t.find(".dropdown-menu");
39//      if(n.length <= 0) return a.find(".opened").removeClass("opened"), void a.find(".dropdown-menu").css("height", "");
40//      if(!t.hasClass("opened")) {
41//          var r = t.find(".dropdown-container").height(),
42//              i = a.find(".opened");
43//          i.length > 0 ? (a.find(".dropdown-menu").css("height", ""), a.find(".opened").removeClass("opened"), n.css("height", r)) : (n.stop().css("height", 0), e.animateFinish = !1, n.animate({
44//              height: r
45//          }, 300, function() {
46//              e.animateFinish = !0
47//          })), t.addClass("opened")
48//      }
49//
50//  }), a.on("mouseleave", function() {
51//      a.find(".opened").removeClass("opened"), a.find(".dropdown-menu").stop().css("height", "")
52//  });
53	//app-header
54    var Accordion = function (el, multiple) {
55        this.el = el || {};
56        this.multiple = multiple || false;
57        var links = this.el.find('.P_tig');
58        links.on('click', { el: this.el, multiple: this.multiple }, this.dropdown)
59    }
60    Accordion.prototype.dropdown = function (e) {
61        var $el = e.data.el;
62        $this =$(this),
63        $next = $this.parents('.P_parent').find(".P_slide");
64
65        $next.slideToggle();
66        $this.parents('.P_parent').toggleClass('open');
67
68        if (!e.data.multiple) {
69            $el.find('.P_slide').not($next).slideUp().parent().removeClass('open');
70        };
71    }
72    var accordion_header = new Accordion($('.nav-list'), false);
73    //footer
74    var accordion_footer = new Accordion($('.footer-menu'), false);
75    
76    var Accordion = function (el, multiple) {
77        this.el = el || {};
78        this.multiple = multiple || false;
79        var links = this.el.find('.P_tig1');
80        links.on('click', { el: this.el, multiple: this.multiple }, this.dropdown)
81    }
82    Accordion.prototype.dropdown = function (e) {
83        var $el = e.data.el;
84        $this =$(this),
85        $next = $this.parents('.P_parent1').find(".P_slide1");
86
87        $next.slideToggle();
88        $this.parents('.P_parent1').toggleClass('open');
89
90        if (!e.data.multiple) {
91            $el.find('.P_slide1').not($next).slideUp().parent().removeClass('open');
92        };
93    }
94    var accordion_header = new Accordion($('.category-cont'), false);
95    
96    
97    var navHear=$(".header-app");
98    $(".navbar-togger").on("click",function(){
99        var open=navHear.hasClass("open-menu");
100        if(open){
101            navHear.removeClass("open-menu");
102            $(".navbar-togger").removeClass('on')
103			 $('.nav-menu').hide();
104        }else{
105            navHear.addClass("open-menu");
106            $('.nav-menu').show();
107        }
108    });
109    
110    
111    
112    //appsecond-nav
113
114	$(".se-top").click(function() {
115			$(this).next('.se-bot').slideToggle();
116			$(this).parents('.seb-list').siblings('.seb-list').find('.se-bot').slideUp();
117			//			$(this).find('.P_tig').addClass('open')
118			var tig = $(this).find('.P_tig');
119			if(tig.hasClass('open')) {
120				$(this).find('.P_tig').removeClass('open')
121				$(this).next('.se-bot').slideUp();
122			} else {
123				$(this).find('.P_tig').addClass('open');
124				$(this).next('.se-bot').slideDown();
125				$(this).parents('.seb-list').siblings('.seb-list').find('.P_tig').removeClass('open');;
126			}
127		})
128	
129		$(".kf span").hover(function(){
130	        $(this).find("div").show();
131	    },function(){
132	        $(this).find("div").hide();
133	    });
134	    $(".kf span div").hover(function(){
135	        $(this).show();
136	    },function(){
137	        $(this).hide();
138	    });
139	    $(".kf .back_top").click(function(){
140	        $("html,body").animate({"scrollTop":0}, 1000);
141	    });
142	    var i=0;
143	    $(".shou").click("fast", function(){
144	        i++;
145	        if(i%2==0){
146	            $(this).removeClass('on');
147	            $(".kf").css({"right":"20px"});
148	        }else{
149	            $(this).addClass('on');
150	            $(".kf").css({"right":"-67px"});
151	        }
152	        $(".zhan").click(function(){
153	            $(this).delay(10000).stop().fadeOut();
154	            $(".kf").css({"right":"30px"});
155	            $(".shou").css({"right":"92px"});
156	        });
157	    });
158		    
159		//app]
160		
161		$(function () {
162            $(".menu1").click(function () {
163                var span = $(this).find("span");
164                if (span.hasClass("open1")) {
165                    span.removeClass("open1").addClass("close1");
166                    $(".btnss").removeClass("open1").addClass("close1");
167                    $(this).find(".icon_menu").addClass("icon_menu2");
168                } else {
169                    span.removeClass("close1").addClass("open1");
170                    $(".btnss").removeClass("close1").addClass("open1");
171                    $(this).find(".icon_menu").removeClass("icon_menu2");
172                }
173            });
174        });
175        
176        $('.app-sousuo').click(function(){
177        	$('.alert-search').fadeIn()
178        	$('body').css({'position':'fixed',"width":"100%","height":"100%"});
179        })
180    	$('.search-close').click(function(){
181        	$('.alert-search').fadeOut()
182        	$("body").css({"position":"initial","height":"auto"});   
183        })
184//  	$(document).click(function(event){
185//  	 	$('.alert-search').fadeOut()
186//  	})
187//  	$('.app-sousuo').click(function (event) {  
188//	         //取消事件冒泡  
189//	         event.stopPropagation();  
190//	         //按钮的toggle,如果div是可见的,点击按钮切换为隐藏的;如果是隐藏的,切换为可见的。  
191//	         $('.alert-search').fadeIn();  
192//	         return false;
193//	    });  
194//   //点击空白处隐藏弹出层,下面为滑动消失效果和淡出消失效果。
195//   $(document).click(function(event){
196//        var _con = $('.alert-search');   // 设置目标区域
197//        if(!_con.is(event.target) && _con.has(event.target).length === 0){ // Mark 1
198//          //$('#divTop').slideUp('slow');   //滑动消失
199//          $('.alert-search').hide(1000);          //淡出消失
200//        }
201//  });
202
203	
204//		$('.pc-search').hover(function(){
205//			$(this).addClass('hover')
206//		})
207		
208//		document.onclick=function()
209//			{
210//			$('.pc-search').removeClass('hover');
211//			}
212
213		
214    
215    // 百度分享
216window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"2","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
217  
218})

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.