PageSourceSearch

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

js tanida.org.tw collected 2026-10-08 03:59:14 UTC 1,744 bytes, 70 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	$('.iframe').colorbox({
35		iframe: true
36		,width: "80%"
37		,height: "80%"
38	});
39
40	//backTop 回到最上方 =============================
41	$('#backTop').backTop({
42		position: 400	// the scroll position in px from the top
43		,speed: 500	// scroll animation speed
44		,color: 'black'	// red, white, black or green
45	});
46
47	$('#Tab').tab();
48
49	$('#epaperTab').tab();
50
51});
52
53//masonry 瀑布流 =============================
54window.onload = function(e) {
55	$('.masonryItem').masonry({
56		itemSelector:'.item'
57		,isAnimated: true
58		,percentPosition: true
59	});
60};	
61
62/*$(function(){
63	var $container = $('.masonryItem');
64	$container.imagesLoaded(function(){ //圖片讀取完成才執行排序
65		$container.masonry({
66			itemSelector : '.item',
67			columnWidth : 240
68		});
69	});
70});*/

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.