PageSourceSearch

https://dwd-anime.com//assets/js/navi_170130_00.js

js dwd-anime.com collected 2026-10-02 18:23:39 UTC 7,968 bytes, 441 lines download raw bytes

1var Navi =(function(){
2	
3	var _currentNavi;
4	var _currentNum = -1;
5	
6	var _isInit = false;
7	var _isEnabled =false;
8	var _isSpecial =false;
9	
10	/*******************************************************
11	
12	@init
13	
14	********************************************************/
15	function init(__id){
16		
17		
18		var url = location.href;
19		if(url.indexOf("special") != -1){
20			_isSpecial = true;
21		}
22				
23		$("#navi li").each(function(i){
24			
25			var src;
26			var elem = $(this).children("p");
27			
28			if(i == __id){
29				_currentNum = __id;
30				_currentNavi = elem;
31				on(elem);
32				enableBtn(elem,false);
33			}
34			
35			
36			//on/off
37			elem.hover(function(){
38				if(i != _currentNum ){
39					on($(this));
40				}
41			}//off
42			,function(){
43				if(i != _currentNum){
44					off($(this));
45				}
46			});
47			
48			
49			/*-------------------------
50			click
51			-------------------------*/
52			elem.click(function(){
53				
54				if(i != _currentNum){
55					
56					var url = "";
57					var type;
58					switch(i){
59						case 0:
60							//news
61							url =BASE_DIR+"news/";
62							type ="_parent";
63						break;
64						case 1:
65							//onair
66							url = BASE_DIR+"onair/";
67							type ="_parent";
68						break;
69						case 2:
70							//story
71							url = BASE_DIR+"story/about.php";
72							type ="_parent";
73						break;
74						case 3:
75							//character
76							url =BASE_DIR+"character/";
77							type ="_parent";
78						break;
79						case 4:
80							//staffcast
81							url = BASE_DIR+"staffcast/";
82							type ="_parent";
83						break;
84						/*
85						case 5:
86							//movie
87							url = BASE_DIR+"movie/";
88							type ="_parent";
89						break;
90						*/
91						case 5:
92							//discography
93							url = BASE_DIR+"discography/";
94							type ="_parent";
95						break;
96						case 6:
97							//event
98							url = BASE_DIR+"event/";
99							type ="_parent";
100						break;
101						
102						case 7:
103							//goods
104							url = BASE_DIR+"goods";
105							type ="_parent";
106						break;
107						
108						case 8:
109							//trailer
110							url = BASE_DIR+"movie";
111							type ="_parent";
112						break;
113						case 9:
114							//game
115							url = "http://rejetweb.jp/dwd/";
116							type ="_blank";
117						break;
118						case 10:
119							//musical
120							url = "http://dwd-stage.com/";
121							type ="_blank";
122						break;
123						case 11:
124							//movie
125							url = "http://dwd-movie.com/";
126							type ="_blank";
127						break;
128						default:
129							return;
130						break;
131					}
132					
133					if(type=="_parent"){
134						location.href =url;
135					}else{
136						openWindow(url);
137					}
138					off($(this));
139				}//end if
140			});
141		});
142		
143		
144		
145		$("#contents-navi li").each(function(j){
146			
147			var src;
148			var elem = $(this).children("p");
149			
150			if(j == __id){
151				_currentNum = __id;
152				_currentNavi = elem;
153				on(elem);
154				enableBtn(elem,false);
155			}
156			
157			
158			//on/off
159			elem.hover(function(){
160				if(j != _currentNum){
161					on($(this));
162				}
163			}//off
164			,function(){
165				if(j != _currentNum){
166					off($(this));
167				}
168			});
169			
170			
171			/*-------------------------
172			click
173			-------------------------*/
174			elem.click(function(){
175				
176				if(j != _currentNum){
177					
178					var url = "";
179					var type;
180					switch(j){
181						case 0:
182							//news
183							url = BASE_DIR+"news/";
184							type ="_parent";
185						break;
186						case 1:
187							//onair
188							url = BASE_DIR +"onair/";
189							type ="_parent";
190						break;
191						
192						case 2:
193							//story
194							url = BASE_DIR+"story/about.php";
195							type ="_parent";
196						break;
197						
198						case 3:
199							//character
200							url =BASE_DIR+"character/";
201							type ="_parent";
202						break;
203						
204						case 4:
205							//staffcast
206							url = BASE_DIR+"staffcast/";
207							type ="_parent";
208						break;
209						
210						case 5:
211							//discography
212							url = BASE_DIR+"discography/";
213							type ="_parent";
214						break;
215						
216						case 6:
217							//event
218							url = BASE_DIR+"event/";
219							type ="_parent";
220						break;
221						
222						case 7:
223							//goods
224							url = BASE_DIR+"goods";
225							type ="_parent";
226						break;
227						
228						
229						case 8:
230							//movie
231							//url = BASE_DIR+"library/";
232							url = BASE_DIR +"movie";
233							type ="_parent";
234						break;
235						
236						case 9:
237							//game
238							url = "http://rejetweb.jp/dwd/";
239							type ="_blank";
240						break;
241						
242						case 10:
243							//musical
244							url = "http://dwd-stage.com/";
245							type ="_blank";
246						break;
247						
248						case 11:
249							//movie
250							url = "http://dwd-movie.com/";
251							type ="_blank";
252						break;
253						
254						default:
255							return;
256						break;
257					}
258					
259					if(type=="_parent"){
260						location.href =url;
261					}else{
262						openWindow(url);
263					}
264					off($(this));
265				}//end if
266				
267			});
268		});
269		
270		
271		
272		$("#footer-navi li").each(function(i){
273			
274			var src;
275			var elem = $(this).children("p");
276			
277			if(i == __id){
278				_currentNum = __id;
279				_currentNavi = elem;
280				on(elem);
281				enableBtn(elem,false);
282			}
283			
284			
285			//on/off
286			elem.hover(function(){
287				if(i != _currentNum && getIsEnabled()){
288					on($(this));
289				}
290			}//off
291			,function(){
292				if(i != _currentNum && getIsEnabled()){
293					off($(this));
294				}
295			});
296			
297			
298			/*-------------------------
299			click
300			-------------------------*/
301			elem.click(function(){
302				
303				if(i != _currentNum && getIsEnabled()){
304					var url = "";
305					var type
306					switch(i){
307						case 0:
308							//twitter
309							url = "https://twitter.com/";
310							type ="_blank";
311						break;
312						default:break;
313					}
314					
315					if(type=="_parent"){
316						location.href =url;
317					}else{
318						openWindow(url);
319					}
320					off($(this));
321				}//end if
322			});
323		});
324		
325		onNaviInit();	
326		
327	};
328	
329	
330	function onNaviInit(){
331		
332		WINDOW.trigger(Event.ON_NAVI_INIT);
333		_isInit =true;
334		_isEnabled =true;
335	}
336	
337	
338	/*-------------------------
339	
340	enableBtn
341	
342	-------------------------*/
343	function enableBtn(__obj,__flg){
344		
345		var img = __obj.children("img");
346		var src = __obj.children('img').attr('src');
347		
348		if( typeof src=="undefined"){return};
349		
350		if(__flg){
351			
352			img.removeClass("no-change");
353			__obj.css({"cursor":"pointer"});
354			off(img);
355			
356		}else{
357			
358			img.addClass("no-change");
359			__obj.css({"cursor":"auto"});
360			on(img);
361		}
362	};
363	
364	
365	/*---------------------------------------------
366	@on
367	---------------------------------------------*/
368	function on(__obj){
369		
370		if(__obj.hasClass("coming"))return;
371		__obj.animate({opacity:0.5},200,"easeOutQuad");
372		/*
373		__obj.children(".navi-on").animate({opacity:1},200,"easeOutQuad");
374		__obj.children(".navi-off").animate({opacity:0}
374,200,"easeOutQuad");
375		
376		__obj.children(".navi-arrow-top").animate({"top":24+"px",opacity:1},200,"easeOutQuad");
377		__obj.children(".navi-arrow-bottom").animate({"bottom":24+"px",opacity:1},200,"easeOutQuad");
378		*/
379	}
380	
381	/*---------------------------------------------
382	@off
383	---------------------------------------------*/
384	function off(__obj){
385		
386		if(__obj.hasClass("coming"))return;
387		__obj.animate({opacity:1},200,"easeOutQuad");
388		/*
389		__obj.children(".navi-on").animate({opacity:0},200,"easeOutQuad");
390		__obj.children(".navi-off").animate({opacity:1},200,"easeOutQuad");
391		__obj.children(".navi-arrow-top").animate({"top":0+"px",opacity:0},200,"easeOutQuad");
392		__obj.children(".navi-arrow-bottom").animate({"bottom":0+"px",opacity:0},200,"easeOutQuad");
393		*/
394	}
395	
396	
397	function show(){}
398	
399	function hide(){}
400	
401	
402	/*---------------------------------------------
403	@isEnabled
404	---------------------------------------------*/
405	function getIsEnabled(){
406		
407		if(!_isEnabled){
408			return false;
409		}else{
410			return true;
411		}
412	}
413	
414	
415	function setIsEnabled(__flg){
416		_isEnabled =__flg;
417	}
418	
419	
420	/*---------------------------------------------
421	@currentNum
422	---------------------------------------------*/
423	function getCurrentNum(){
424		return _currentNum;
425	}
426	
427	
428	function getIsInit(){
429		return _isInit;
430	}
431	
432	return{
433		init:init,
434		enableBtn:enableBtn,
435		show:show,
436		hide:hide,
437		getCurrentNum:getCurrentNum,
438		getIsInit:getIsInit,
439		setIsEnabled:setIsEnabled
440	};
441})();

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.