PageSourceSearch

https://tanida.org.tw/js/index.js

js tanida.org.tw collected 2026-10-08 03:59:12 UTC 1,728 bytes, 73 lines download raw bytes

1// JavaScript Document
2$( document ).ready(function() {
3
4	var pageNo = $('#pageNo').text(); 
5	$('#globalNav>div').eq(pageNo).addClass('navCurrent');
6	$('#globalNav>div').hover(function(){
7				$(this).children('ul').stop(true,true).slideToggle(500);
8	});
9
10
11	$('#nanomarkBtn').hover( 
12				function(){	$(this).children('#nanomarkBtnItem').stop().animate({height:150});} 
13				,function(){ $(this).children('#nanomarkBtnItem').stop().animate({height:0});}
14	);	
15	
16
17	var currentOpen = -1;
18	$('#nav4mobile #mobileNav>li>a.noLink').click(function() {
19		//判斷按到的是已開啟的嗎?
20		//alert($(this).parent().index());
21		$('#nav4mobile #mobileNav ul').slideUp(500);
22		if($(this).parent().index() != currentOpen){
23			//$('#nav ul').slideUp(500);
24			$(this).next().stop(true,true).slideDown(500);
25			currentOpen = $(this).parent().index();
26		}else{
27			//$('#nav ul').slideUp(500);
28			currentOpen = -1;
29		}
30		return false; //解決點選第一層li按鈕時連結至其他頁面
31	});
32
33	
34	$('.bxslider').bxSlider({
35		auto: true
36		,controls: true /*左/右切換箭頭*/
37		/*,autoControls: true 播放/停止 按鈕*/
38		,captions: true
39	});
40
41
42	$('.pgwSlider').pgwSlider({
43		displayControls: true
44	});
45			
46	$('.iframe').colorbox({
47		iframe: true
48		,width: "80%"
49		,height: "80%"
50	});
51	 
52
53	//backTop 回到最上方 =============================
54	$('#backTop').backTop({
55		position: 400	// the scroll position in px from the top
56		,speed: 500	// scroll animation speed
57		,color: 'black'	// red, white, black or green
58	});
59
60	$('#Tab').tab();
61	
62
63});
64
65//masonry 瀑布流 =============================
66window.onload = function(e) {
67	$('.masonryItem').masonry({
68		itemSelector:'.item'
69		,isAnimated: true
70		,percentPosition: true
71	});
72};	
73

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.