1 2var en = 'zh-cn'; 3var isen = false; 4$(function () { 5 en = $('#hiden_local').val(); 6 isen = en == 'en'; 7 if ($('#UpdateProgress_load').length > 0) { 8 $('#UpdateProgress_load').html(en == 'en' ? 'Loading...':'æ°æ®æ£å¨åªåå è½½ï¼ï¼ï¼'); 9 } 10}) 11 12function changeLocal() { 13 $('#btn_close').attr('value', isen ? 'Close' : 'å ³ é'); 14 if ($('#txtPwd').length > 0) { 15 var msg = isen ? 'At least 8 character;case sensitive.' : ' 8ä½ä»¥ä¸åæ¯ãæ°åæç¬¦å·'; 16 $('#txtPwd').html('<font color="red">*</font> ' + msg); 17 } 18 if ($('#txtDpwd').length > 0) { 19 var msg = isen ? 'The password you enter twice must be same.' : ' 两次å¯ç è¦ä¸è´'; 20 $('#txtDpwd').html('<font color="red">*</font> ' + msg); 21 } 22} 23 24var isIE = false; 25if (window.navigator.userAgent.indexOf("MSIE") >= 0) { 26 isIE = true; 27} 28else if (window.navigator.userAgent.indexOf('Trident/7.0') >= 0 && window.navigator.userAgent.indexOf('rv:11.0') >= 0) { 29 isIE = true; 30} 31 32var aID = 1; 33function ShowTabs1(ID) { 34 if (ID != aID) { 35 36 $("#table1").attr('class','main_menu_title'+ ID); 37 $("#Tabs" + ID).css('display',''); 38 $("#Tabs" + aID).hide(); 39 aID = ID; 40 } 41} 42 43 44var LayerStyle = function () { } 45LayerStyle.top = ''; 46LayerStyle.left = ''; 47 48 49 50 51var Drag = function (id, str) { 52 this.el = document.getElementById(id); 53 this.pa = document.getElementById(str); 54 // this.el.style.position = "absolute" 55 this.el.me = this; //ä¿åèªèº«çå¼ç¨ 56 this.el.onmousedown = this.dragstart; //çå¬mousedownäºä»¶ 57} 58Drag.prototype = { 59 constructor: Drag, 60 dragstart: function (e, self, el) {//äºä»¶å¨æ åæµè§å¨ä¸è¢«å½ä½ç¬¬ä¸ä¸ªåæ°ä¼ å ¥ 61 e = e || event; //è·å¾äºä»¶å¯¹è±¡ 62 self = this.me; //è·å¾æå¨å¯¹è±¡ 63 el = self.pa; //è·å¾æå¨å ç´ 64 el.offset_x = e.clientX - el.offsetLeft; 65 el.offset_y = e.clientY - el.offsetTop; 66 document.onmousemove = function (e) { 67 self.drag(e, el) 68 } 69 document.onmouseup = function () { 70 self.dragend(el) 71 } 72 }, 73 drag: function (e, el) { 74 e = e || event; //è·å¾äºä»¶å¯¹è±¡ 75 with (el.style) { 76 cursor = "pointer"; 77 var py = Math.max(document.body.scrollHeight, document.body.parentNode.clientHeight); //el.parentNode.offsetHeight; 78 var px = Math.max(document.body.scrollWidth, document.body.parentNode.clientWidth); //el.parentNode.offsetWidth; 79 var l = e.clientX - el.offset_x; 80 var t = e.clientY - el.offset_y; 81 l = l < 0 ? 0 : (l > px - el.offsetWidth ? px - el.offsetWidth : l); 82 t = t < 0 ? 0 : (t > py - el.offsetHeight ? py - el.offsetHeight : t); 83 left = l + "px"; 84 top = t + "px"; 85 } 86 ! +"\v1" ? document.selection.empty() : window.getSelection().removeAllRanges(); 87 }, 88 dragend: function (el) { 89 document.onmouseup = document.onmousemove = null; 90 LayerStyle.left = el.style.left; 91 LayerStyle.top = el.style.top; 92 } 93} 94 95function ChangeLayer(drag, drag1, layer, isjx) { 96 if ($('#'+drag).length>0) { 97 new Drag(drag, layer); 98 } 99 if ($('#' + drag1).length > 0) { 100 new Drag(drag1, layer); 101 } 102 var lay =document.getElementById(layer); 103 var blay =document.getElementById('mapBgLayer'); 104 if (isjx) { 105 lay.style.opacity = (1 / 100); 106 lay.style.filter = 'alpha(opacity=1)'; 107 //blay.style.opacity = (1 / 100); 108 //blay.style.filter = 'alpha(opacity=1)'; 109 } 110 blay.style.display = ""; 111 lay.style.display = ""; 112 var px = Math.max(document.body.scrollWidth, document.body.parentNode.offsetWidth); 113 var py =Math.max(document.body.scrollHeight, document.body.parentNode.scrollHeight); 114 var layw = Math.max(lay.offsetWidth, lay.style.width.replace('px', '')); 115 var layh = Math.max(lay.offsetHeight, lay.style.height.replace('px', '')); 116 var left = (px - layw) / 2 + 'px'; 117 var top = (py - layh) / 2 + 'px'; 118 if ($('#ivalue').length>0) { 119 $('#ivalue').val('1'); 120 } 121 if (LayerStyle.left != '') { 122 left = LayerStyle.left; 123 top = LayerStyle.top; 124 } 125 lay.style.left = left; 126 lay.style.top = top; 127 128 if (isjx) { 129 var alpah = 20; 130 var alp = 0.08; 131 (function () { 132 setTimeout(function () { 133 if (alpah <= 100) { 134 lay.style.opacity = (alpah / 100); 135 lay.style.filter = 'alpha(opacity=' + alpah + ')'; 136 // blay.style.opacity = alp; 137 //blay.style.filter = 'alpha(opacity=' + alp * 100 + ')'; 138 alpah += 20;
139 alp += 0.08; 140 setTimeout(arguments.callee, 2); //æ¯ç§»å¨ä¸æ¬¡åç25æ¯«ç§ 141 } 142 }, 2) 143 })() 144 } 145} 146 147function ColorGet(str) { 148 if (str) { 149 if (str.style.borderColor == 'rgb(119, 119, 119)' || str.style.borderColor == 'rgb(119,119,119)') { 150 str.style.borderColor = ''; 151 } 152 else { 153 str.style.borderColor = 'rgb(119, 119, 119)'; 154 } 155 } 156} 157 158var pbKey = ""; 159var ts = ""; 160 161function CheckPwd() { 162 var lmode = $('input[name="rbDl"][checked]').val(); 163 if (lmode == undefined) { 164 lmode = '0'; 165 } 166 if ($('#txt_pwd').val().length == 0) { 167 var amsg = ''; 168 if (lmode == '0') { 169 amsg = en == 'en' ? 'The password is empty.' : 'æªè¾å ¥å¯ç '; 170 } 171 else { 172 amsg = en == 'en' ? 'The name is empty.' : 'æªè¾å ¥å§å' 173 } 174 alert(amsg); 175 return false; 176 } 177 if ($('#pbk').length > 0 && lmode=='0'){ 178 pbKey = $('#pbk').val(); 179 ts = $('#ts').val(); 180 181 if (pbKey.length > 0) { 182 try { 183 var rsa = new RSAKey(); 184 rsa.setPublic(pbKey, '10001'); 185 var res = rsa.encrypt($('#txt_pwd').val() + ts); 186 if (res) { 187 $('#txt_pwd').val('') 188 $('#p1').val(hex2b64(res)); 189 } 190 } 191 finally { return true;} 192 } 193 } 194} 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228///ç»å½é¡µä¸å¡ 229 230function getAnotherUrl() { 231 $("#Image1").attr('src', 'validate.aspx?' + Math.random()); 232} 233 234function getAnotherUrl1() { 235 $("#img_reset").attr('src', 'vaall.aspx?code=RESET&v=' + Math.random()); 236} 237 238function check() { 239 var isCheck = false; 240 var trybh = $("#t_rybh"); 241 if (!($("#div_mb").length > 0) && !($("#div_mm").length > 0)) { 242 if (trybh.val() == "") { 243 alert(en == 'en' ? 'The username is empty.' : 'æªè¾å ¥è¦æ¥æ¾ç人åç¼å·ï¼'); 244 trybh.focus(); 245 isCheck=false; 246 } 247 isCheck= true; 248 } 249 else { 250 if (trybh.val().length > 0 && trybh.val() != $('#l_rybh').val()) { 251 isCheck=true; 252 } 253 else { 254 isCheck=false; 255 } 256 } 257 if (isCheck) { 258 if ($('#pbk').length > 0) { 259 pbKey = $('#pbk').val(); 260 ts = $('#ts').val(); 261 var rsa = new RSAKey(); 262 rsa.setPublic(pbKey, '10001'); 263 var res = rsa.encrypt(trybh.val() + ts); 264 if (res) { 265 trybh.val(''); 266 $('#p3').val(hex2b64(res)); 267 } 268 } 269 } 270 return isCheck; 271} 272function showMap(bl) { 273 if (bl) { 274 var bh =$('#txt_yhm').val() 275 // if (bh != "") { 276 var ss = $("#t_rybh").val(bh); 277 //if (document.all) { 278 // ss.innerText = bh; 279 //} else { 280 // ss.innerHTML = bh; 281 //} 282 //ss.value = bh; 283 //} 284 $("#L_message").html(en == 'en' ?"Please enter your username,answer these security questions.": '请è¾å ¥äººåç¼å·ï¼éªè¯å¯ä¿ï¼é设å¯ç '); 285 } 286 ChangeLayer("drag", "drag1", "mapLayer", bl); 287 $("#ImageButton1").attr('disabled', 'disabled') 288 $("#ImageButton2").attr('disabled', 'disabled') 289 $("#t_rybh").focus(); 290 changeLocal(); 291} 292function closeMap() { 293 $("#mapBgLayer").hide(); 294 $("#mapLayer").hide(); 295 296 $("#ivalue").val('0'); 297 $("#ImageButton1").removeAttr('disabled'); 298 $("ImageButton2").removeAttr('disabled'); 299 $("#btn_cc").click(); 300} 301 302function checkPwd(str) { 303 if (str == "" || str.length < 8 ) { 304 txtPwd.innerHTML = en == 'en' ? '<font class=checkText>* 8-character minimum;case sensitive.</font>' : '<font class=checkText>* å¯ç æ ¼å¼é误</font>'; 305 $('#t_mm').focus(); 306 return false; 307 } 308 txtPwd.innerHTML = en == 'en' ? '<font> 8-character minimum</font>' : '<font> 8ä½ä»¥ä¸åæ¯ãæ°åæç¬¦å·</font>'; 309 if (str == $('#t_qm').val()) 310 txtDpwd.innerHTML = "<font class=checkText></font>"; 311} 312//éå¤å¯ç 313function checkDpwd(str) { 314 if ($('#t_mm').val() != str) { 315 var msg = en=='en' ? 'These password don\'t match.' : 'å¯ç ä¸ä¸è´'; 316 $('#txtDpwd').html('<font class=checkText>* '+msg+'</font>'); 317 $('#t_qm').focus(); 318 return false; 319 } 320 txtDpwd.innerHTML = "<font class=checkText></font>"; 321} 322 323function checkAll() { 324 var v_check = true; 325 var txtPwd = $("#txtPwd"); 326 var txtDpwd =$("#txtDpwd"); 327 if ($('#t_mm').val().length<8) { 328 329 txtPwd.innerHTML = "<font class=checkText>*8ä½ä»¥ä¸åæ¯ãæ°åæç¬¦å·</font>"; 330 v_check = false; 331 } 332 if ($('#t_qm').val() != $('#t_mm').val()) { 333 txtDpwd.innerHTML = "<font class=checkText>*两次è¾å ¥å¯ç ä¸ä¸è´</font>"; 334 v_check = false; 335 } 336 else { 337 txtDpwd.innerHTML = "<font class=checkText></font>" 338 }
339 if (v_check == true) { 340 if ($('#pbk').length>0) { 341 pbKey = $('#pbk').val(); 342 ts = $('#ts').val(); 343 var rsa = new RSAKey(); 344 rsa.setPublic(pbKey, '10001'); 345 var res = rsa.encrypt($('#t_mm').val() + ts); 346 if (res) { 347 $('#t_mm').val(''); 348 $('#t_qm').val(''); 349 $('#p2').val(hex2b64(res)); 350 } 351 } 352 return true; 353 } 354 else { 355 return false; 356 } 357} 358 359 360 361document.onkeydown = function (event) { 362 e = event ? event : window.event; 363 if (e.keyCode == 13) { 364 if ($("#ivalue").val() == "0") { 365 // $("ImageButton1").click(); 366 } 367 else { 368 if (!($("#div_mb").length>0) && !($("#div_mm").length>0)) { 369 if (!isIE) { 370 $("#btn_sure").click(); 371 } 372 } 373 else if ($("#div_mb").length>0) { 374 if (!isIE && $('#t_rybh').val() != "") 375 { 376 $("#btn_sure").click(); 377 } 378 else 379 $("#btn_zh").click(); 380 } 381 else { 382 $("#btn_pwd").click(); 383 } 384 } 385 } 386} 387
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.