PageSourceSearch

https://www.imu.edu.cn/index/js/winscreen.js

js imu.edu.cn collected 2026-10-02 04:54:55 UTC 5,384 bytes, 230 lines download raw bytes

1// JavaScript Document
2var sw=1,ww,wh,step=0;
3var dst=-1,dst1=-1;
4
5
6function autowindow(){
7	ww=$(window).width();
8	wh=$(window).height();
9	//$("body").height(wh);
10	if($(window).width()>=850){		
11		$(".screen").height("100%");
12		$(".screen").width(ww);
13		$(".body_scroll").width(ww*$(".screen").length);
14		$(".body_r").scrollTop(0);
15		$(".body_scroll").css({left:step*ww*-1});
16	}
17	else{
18		$(".screen").height("auto");
19		$(".screen").width("auto");
20		$(".body_scroll").width("auto");
21		$(".body_scroll").css({left:0});
22	}
23	
24	
25	$(".screen").eq(step).addClass("showdiv");
26	$(".nav_b .item").eq(step).addClass("now");
27	
28	if(sw && $(".screen").length>0 && $(window).width()>=1000){
29		$(".body_scroll").stop().animate({left:step*ww*-1},1300,"easeInOutQuart",function(){
30			sw=1;
31		});
32	}
33	/*$(".autodiv").each(function(){
34		autodiv($(this));
35	});*/
36}
37
38/*
39$(".gotop").click(function(){
40	sw=0;
41	$(".body_scroll").stop().animate({left:0},1000,"easeInOutQuart",function(){
42		sw=1;
43	});
44	step=0;
45	$(".nav_b .item").removeClass("now");
46	$(".nav_b .item").eq(step).addClass("now");
47});
48*/
49
50$(window).scroll(function(){
51	$(".screen,.special").each(function(index, element) {
52  	if($(window).scrollLeft()>=$(this).offset().left){
53			step=index;
54			$(".nav_b .item").removeClass("now");
55			$(".nav_b .item").eq(step).addClass("now");
56			}
57  });
58});
59
60/*function autodiv(e){
61	$(e).css({width:ww/$(e).attr("h")*$(e).attr("w"),height:"100%"});
62}*/
63
64$(function(){
65	autowindow();
66	$(window).resize();
67	
68	$(".home2 .list").mousewheel(function(event, delta, deltaX, deltaY){
69		event.stopPropagation();
70	});
71	
72	$(".body_r").mousewheel(function(event, delta, deltaX, deltaY){
73		if($(window).width()>=1000){
74			gowheel(delta);
75		}
76		//event.stopPropagation();
77		//event.preventDefault();
78	});
79	
80	$(".nav_b .item").click(function(){
81		sw=0;
82		step=$(this).index();		
83		$(".body_scroll").stop().animate({left:ww*step*-1},1300,"easeInOutQuart",function(){
84			showscreen(step);
85			sw=1;
86		});
87		$(".nav_b .item").removeClass("now");
88		$(".nav_b .item").eq(step).addClass("now");
89		if(step==2){
90			$(".nav_b").addClass("w");
91			$(".ll").addClass("w");
92		}
93		else{
94			$(".nav_b").removeClass("w");
95			$(".ll").removeClass("w");
96		}
97		if((step+1)==$(".screen").length){
98			$(".body_r .arr").addClass("h");
99		}
100		else{
101			$(".body_r .arr").removeClass("h");
102		}
103		
104	});
105	$(".body_r .arr").click(function(){
106		$(".nav_b .list .item.now").next().click();
107	});
108});
109
110$(window).resize(function(){
111	autowindow();
112});
113
114function gowheel(delta){
115	if(sw && $(".screen").length>0){
116		var sch=0;
117		var isgo=0;
118		/*$(".screen").eq(step).children().each(function(){
119			if($(this).css("position")!="absolute"){
120				sch+=$(this).outerWidth();
121			}
122		});
123		if(sch>$(".screen").eq(step).outerWidth()){
124			$(".screen").eq(step).attr("unlock",0);
125			if(dst<0){
126				dst=$(".screen").eq(step).scrollLeft();
127			}			
128			if(delta<0){
129				dst=dst+delta*80*-1;
130			}
131			else{
132				dst=dst+delta*90*-1;
133			}
134			
135			if(sch==$(".screen").eq(step).outerWidth()+$(".screen").eq(step).scrollLeft() && delta<0){
136				$(".screen").eq(step).attr("unlock",1);
137			}
138			if($(".screen").eq(step).scrollLeft()==0 && delta>0){
139				$(".screen").eq(step).attr("unlock",1);
140			}
141			if(dst!==$(".screen").eq(step).scrollLeft()){
142				$(".screen").eq(step).stop().animate({scrollLeft:dst},500,"easeOutQuad",function(){dst=$(".screen").eq(step).scrollLeft();});
143			}
144		}*/
145		
146		if($(".screen").eq(step).attr("unlock")!="0"){
147			dst=-1;
148			if(delta<0){
149				if($(".screen").eq(step+1).length>0){
150					sw=0;
151					step++;
152					isgo=1;					
153				}
154				else{					
155					//sw=0;
156					//$(".ll").click();
157					/*if($(".body_b").hasClass("showdiv")){
158						$(".body_r").removeClass("showdiv");						
159					}
160					else{
161						$(".ll").click();
162						//$(".body_b").css("z-index",2);
163						//$(".body_r").css("z-index",1);
164					}*/
165					//setTimeout(function(){
166						//$(".bb").click();
167						//$(".ll").click();
168						//sw=1;
169					//},1400);
170				}
171			}
172			else{
173				if($(".screen").eq(step-1).length>0 && step>0){
174					sw=0;
175					step--;
176					isgo=1;
177				}
178				else{
179					//sw=0;
180					//$(".body_r").removeClass("showdiv");
181					//$(".rr").addClass("showdiv");
182					//$(".ll").click();
183					//setTimeout(function(){
184						//$(".home").addClass("showdiv");
185						//sw=1;
186					//},1400);
187				}
188			}
189			
190			if(isgo==1){
191				$(".body_scroll").stop().animate({left:ww*step*-1},1300,"easeInOutQuart",function(){
192					showscreen(step);
193					sw=1;
194				});
195				$(".nav_b .item").removeClass("now");
196				$(".nav_b .item").eq(step).addClass("now");
197				if(step==2){
198					$(".nav_b").addClass("w");
199					$(".ll").addClass("w");
200				}
201				else{
202					$(".nav_b").removeClass("w");
203					$(".ll").removeClass("w");
204				}
205				
206				if(step+1==$(".screen").length){
207					$(".body_r .arr").hide();
208				}
209				else{
210					$(".body_r .arr").show();
211				}
212			}
213		}
214	}
215}
216function showscreen(i){
217	$(".screen").removeClass("showdiv");
218	$(".screen").eq(i).addClass("showdiv");
219	
220	if(i==0){
221		//$(".home1 .td strong").each(function(index, element) {
222			//shownum($(this),3000);
223		//});
224	}
225	
226	//$(".nav_b .item").removeClass("now");
227	//$(".nav_b .item").eq(i-1).addClass("now");
228	
229	
230}

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.