PageSourceSearch

https://netbank.hncb.com.tw/netbank/pages/jsp/Login/html/js/Login.js?v3

js hncb.com.tw collected 2026-10-04 21:22:18 UTC 1,885 bytes, 84 lines download raw bytes

1
2//hb13363 add on 20160311 �K�X����
3function setPwdInfo(targetID, lang, iconPos, blockPos) {
4	
5	var $target = $(targetID);
6	
7	$.ajax({
8		type: "POST",
9		url: "/netbank/pages/jsp/Login/html/Login.json",
10		contentType: "application/json; charset=utf-8",
11		dataType: "json", 
12		cache: false
13	}).done(function (json) {
14		
15		var pwdInfo = json.pwdInfo;
16		var $icon	= $(pwdInfo.icon || "#pwdInfo");
17		var $block	= $(pwdInfo.block || "#pwdInfoContent");
18		var title 	= pwdInfo.title[lang];
19		var contents= pwdInfo.content[lang];
20		var items 	= [];
21		
22		items.push('<p>' + title + '</p>');
23		items.push('<hr />');
24		items.push('<ol>');
25		
26		$.each(contents, function(key, val) {
27			items.push('<li>' + val + '</li>');
28		});
29		
30		items.push('</ol>');
31		
32		//set content
33		$block.html(items.join(""));
34		
35		setPosition($target, $icon, iconPos.left, iconPos.top);
36		setPosition($target, $block, blockPos.left, blockPos.top);
37
38		//To show the instruction of password
39		$icon.hover(function() {
40			$block.fadeIn(500, function() {
41				setPosition($target, $block, blockPos.left, blockPos.top);
42			});
43		}, function() {
44			$block.fadeOut(800);
45		});
46		
47	}).fail(function( xhr, status, errorThrown ) {
48		alert( "Sorry, there was a problem!" );
49	}).always(function( xhr, status ) {
50		//console.log( "The request is complete!" );
51	});
52	
53}
54
55
56function setPosition($attachObj, $targetObj, left, top) {
57	var offset = $attachObj.offset();
58	
59	$targetObj.offset({
60		left: offset.left + left, 
61		top: offset.top + top
62	});
63}
64
65function encryptNickName(pubkey,nickname){
66	try{
67		var encrypt = new JSEncrypt();
68		if(pubkey){
69			encrypt.setPublicKey(pubkey);
70			var result = encrypt.encrypt(nickname);
71			console.log(result);
72			if(result){
73				return 'ENC('+result+')';
74			}else{
75				return nickname;
76			}
77		}else{
78			return nickname;
79		}
80	}catch(error){
81		console.error(error);
82		return nickname;
83	}
84}

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.