PageSourceSearch

https://ao.smmu.edu.cn/_upload/tpl/00/1e/30/template30/js/common.js

js smmu.edu.cn collected 2026-10-02 06:46:25 UTC 2,915 bytes, 115 lines download raw bytes

1$(function(){
2	
3	$(".search-submit").click(function(event){
4		$(this).removeAttr("name");
5		/* Act on the event */
6		event.preventDefault();
7		var val = $.trim($(".search-title").val());
8		if(val!==""){
9			$(".search").find("form").submit();
10		}else{
11			alert("请输入关键词");
12		}
13		return false;
14	});
15	
16	/*$("body,html").click(function(){
17			$(".search-window").animate({"width":"42px"});
18			$(".searchbtn").stop(true,true).fadeIn();
19			$(".navlist").slideUp();
20				
21	});*/
22	
23	/*$(".searchbtn").click(function(){
24		$(this).stop(true,true).fadeOut();
25		$(".search-window").stop(true,true).animate({"width":"255px"});
26		return false;
27	});	
28	$(".search-title").click(function(){
29		return false;
30	});*/
31	
32	/*$(".shares li").each(function(){
33		$(this).children("a").hover(function(){
34			$(this).parent().find(".con").stop(true,true).fadeIn();			
35		},function(){
36			$(this).parent().find(".con").stop(true,true).fadeOut();
37		});
38	});*/
39	
40	if($(".wp_articlecontent").length > 0 ){
41		$(".wp_articlecontent img").each(function(){
42			var imgUrl = $(this).attr("src");
43			if(/_ueditor/.test(imgUrl)){
44				$(this).css("display","inline");
45			}
46		});
47	}
48	
49	/*document.onkeydown=function(){
50		var e = window.event||arguments[0];
51		if(e.keyCode==123){
52			//F12的键码值
53			return false;
54		}else if((e.ctrlKey)&&(e.shiftKey)&&(e.keyCode==73)){
55			//Ctrl+Shift+I的键码值
56			return false;
57		}else if((e.ctrlKey)&&(e.keyCode==85)){
58			//Ctrl+U的键码值
59			return false;
60		}else if((e.ctrlKey)&&(e.keyCode==83)){
61			//Ctrl+S的键码值
62			return false;
63		}
64		else if((e.ctrlKey)&&(e.keyCode==67)){
65			//Ctrl+C的键码值
66			return false;
67		}
68	}
69	document.oncontextmenu=function(){
70		//禁用右键
71    	return false;
72	}*/
73	
74	//保护页面无法被选中
75	/*$(document).ready(function(){
76		$('body').width("100%");
77		$('body').height("100%");
78		$('body').bind('contextmenu', function(){
79			return false;
80		});
81		$('body').bind("selectstart", function(){
82			return false;
83		});
84		$('body').bind("keydown", function(){
85			return false;
86		});
87	});*/
88	
89	/*window.onscroll = function(){ 
90	  	var sTop = $(document).scrollTop();
91	 		if( parseInt(sTop) > 163){
92		  $('.head-roll').addClass('roll');
93	  		  }else {
94		  $('.head-roll').removeClass('roll');
95	  	}
96	}*/
97	
98	/*$(".botlinks .links-wrap").each(function(index, el) {
99		$(el).hover(function() {
100			$(this).addClass('wrap-open').children('.link-items').stop(true,true).slideDown(300);
101		}, function() {
102			$(this).removeClass('wrap-open').children('.link-items').stop(true,true).slideUp(300);
103		});
104	});*/
105	
106	/*$(".goTop").on("click",function(){
107		$("body,html").stop().animate({scrollTop:0}, 500);
108	});*/
109	
110	/*$(document).ready(function(){
111		var hei = $('.content_left').outerHeight(true);
112		$('.content_center .content-logo').height(hei);
113	});*/
114	
115});

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.