PageSourceSearch

https://www.post.gov.tw/post/internet/js/SetFont.js

js post.gov.tw collected 2026-09-24 08:37:25 UTC 2,749 bytes, 83 lines download raw bytes

1function SetFont(size, Orj) {
2	//alert(size);
3	$("#FontSizeContainer_L").removeClass("Icon Icon_L current"); 
4	$("#FontSizeContainer_M").removeClass("Icon Icon_M current");
5	$("#FontSizeContainer_S").removeClass("Icon Icon_S current");
6	
7	// 重置所有按鈕的 aria-pressed 狀態
8	$("#FontSizeContainer_L").attr("aria-pressed", "false");
9	$("#FontSizeContainer_M").attr("aria-pressed", "false");
10	$("#FontSizeContainer_S").attr("aria-pressed", "false");
11	
12    if (size == '0.8em' ) {
13		//alert("0.8");
14		$("#FontSizeContainer_L").addClass("Icon Icon_L");
15		$("#FontSizeContainer_M").addClass("Icon Icon_M");
16		$("#FontSizeContainer_S").addClass("Icon Icon_S current");
17		// 設定小字型按鈕為按下狀態
18		$("#FontSizeContainer_S").attr("aria-pressed", "true");
19		
20		$.ajax({	
21			type: "get",
22			url: "/post/internet/Templates/SetFont_templates/SetFontSize.jsp",
23			data : { Font_size : "S" , rand : new Date().getTime() },
24			dataType: "json",
25			contentType: "application/json;charset=UTF-8",			
26			success:function(data){
27				//alert(data);
28			},error:function(xhr, ajaxOptions, thrownError){
29				//alert(thrownError);
30			}			
31		});
32
33	}else if ( size == '1em' ) {
34		$("#FontSizeContainer_L").addClass("Icon Icon_L");
35		$("#FontSizeContainer_M").addClass("Icon Icon_M current");
36		$("#FontSizeContainer_S").addClass("Icon Icon_S");
37		// 設定中字型按鈕為按下狀態
38		$("#FontSizeContainer_M").attr("aria-pressed", "true");
39		
40		$.ajax({	
41			type: "get",
42			url: "/post/internet/Templates/SetFont_templates/SetFontSize.jsp",
43			data : { Font_size : "M" , rand : new Date().getTime()  },
44			dataType: "json",
45			contentType: "application/json;charset=UTF-8",			
46			success:function(data){
47				//alert(data);
48			},error:function(xhr, ajaxOptions, thrownError){
49				//alert(thrownError);
50			}			
51		});		
52		
53	}else if ( size == '1.2em' ) {		
54		$("#FontSizeContainer_L").addClass("Icon Icon_L current");
55		$("#FontSizeContainer_M").addClass("Icon Icon_M");
56		$("#FontSizeContainer_S").addClass("Icon Icon_S");
57		// 設定大字型按鈕為按下狀態
58		$("#FontSizeContainer_L").attr("aria-pressed", "true");
59
60		$.ajax({	
61			type: "get",
62			url: "/post/internet/Templates/SetFont_templates/SetFontSize.jsp",
63			data : { Font_size : "L" , rand : new Date().getTime() },
64			dataType: "json",
65			contentType: "application/json;charset=UTF-8",			
66			success:function(data){
67				//alert(data);
68			},error:function(xhr, ajaxOptions, thrownError){
69				//alert(thrownError);
70			}			
71		});			
72		
73	}
74	
75	var vOrj = document.getElementById(Orj);
76
77	//alert(html_head);
78	if(vOrj != null){
79		vOrj.style.fontSize=size;	
80	}	
81
82    //createCookie('fontsize',size,30);
83}

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.