亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? logincomponent.js

?? 在流覽器上仿CS界面的JAVASCRIPT腳本
?? JS
字號:
// This component creates a login form. The email and password can be remembered// for future use using cookies. The actual login is done using a web service provided// by the RegistrationService class// requires CookieManager// requires RegistrationServicefunction LoginComponent(oStringBundle, oRegService) {	// call super()	BiComponent.call(this);	this.stringBundle = oStringBundle;	this.regService = oRegService;	// create the components	this.messageLabel = new BiLabel;	this.userLabel = new BiLabel;	this.userField = new BiTextField;	this.passwordLabel = new BiLabel;	this.passwordField = new BiPasswordField;	this.rememberCheck = new BiCheckBox;	this.loginButton = new BiButton;	this.cancelButton = new BiButton;	this.loginProgress = new BiUndeterminedProgressBar;	this.errorLabel = new BiLabel;	this.updateStrings();	// this assosciates the label with the field	this.userLabel.setLabelFor(this.userField);	this.passwordLabel.setLabelFor(this.passwordField);	// some other properties	this.errorLabel.setWrap(true);	this.errorLabel.setBorder( new BiBorder(1, "solid", "ThreeDDarkShadow") );	this.errorLabel.setBackColor("Window");	this.errorLabel.setForeColor("WindowText");	this.errorLabel.setPadding(5);	this.errorLabel.setIcon( new BiImage( application.getPath() + "images/exclamation.16.png", 16, 16 ) );	// set the fixed size and position values	// the dynamic position is done in layoutAllChildren*	this.messageLabel.setLeft(10);	this.messageLabel.setRight(10);	this.userLabel.setLeft(10);	this.userLabel.setWidth(105);	this.passwordLabel.setLeft(10);	this.passwordLabel.setWidth(105);	this.userField.setLeft(115);	this.passwordField.setLeft(115);	this.rememberCheck.setLeft(115);	this.userField.setRight(10);	this.passwordField.setRight(10);	this.rememberCheck.setRight(10);	this.loginProgress.setLeft(10);	this.loginProgress.setRight(10);	this.loginProgress.setVisible(false);	this.errorLabel.setLeft(10);	this.errorLabel.setRight(10);	this.errorLabel.setVisible(false);	this.loginButton.setBottom(10);	this.loginButton.setWidth(80);	this.loginButton.setRight(100);	this.cancelButton.setBottom(10);	this.cancelButton.setWidth(80);	this.cancelButton.setRight(10);	// add all the components	this.add(this.messageLabel);	this.add(this.userLabel);	this.add(this.userField);	this.add(this.passwordLabel);	this.add(this.passwordField);	this.add(this.rememberCheck);	this.add(this.loginButton);	this.add(this.cancelButton);	this.add(this.loginProgress);	this.add(this.errorLabel);	// check cookies	var cookieEmail = CookieManager.getCookie("email");	if (cookieEmail)		this.userField.setText(cookieEmail);	var cookiePassword = CookieManager.getCookie("password");	if (cookiePassword)		this.passwordField.setText(cookiePassword);	// event hookup	this.regService.addEventListener("login", this.onWsResult, this);	this.regService.addEventListener("loginerror", this.onWsResult, this);	this.loginButton.addEventListener("action", this.login, this);	this.cancelButton.addEventListener("action", this.close, this);	this.stringBundle.addEventListener("change", this.updateStrings, this);}// make LoginComponent extend BiComponentvar _p = LoginComponent.prototype = new BiComponent;_p._className = "LoginComponent";// override layoutAllChildrenY to calculate the position_p.layoutAllChildrenY = function () {	var y = 10;	this.messageLabel.setTop(y);	y += this.messageLabel.getHeight() + 30;	this.userLabel.setTop(y);	this.userField.setTop( y - 2);	y += this.userLabel.getHeight() + 15;	this.passwordLabel.setTop(y);	this.passwordField.setTop( y - 2 );	y += this.passwordLabel.getHeight() + 20;	this.rememberCheck.setTop(y);	y += this.rememberCheck.getHeight() + 10;	this.loginProgress.setTop(y);	this.errorLabel.setTop(y);	// call super.layoutAllChildrenY()	BiComponent.prototype.layoutAllChildrenY.call(this);};// if you override layoutAllChildrenY or layoutAllChildrenX you also need to// override layoutAllChildren. Otherwise your y (or x) changes will not be called// when both width and height are changed_p.layoutAllChildren = function () {	this.layoutAllChildrenY();	this.layoutAllChildrenX();};// this calls RegistrationService login and updates the UI to show some progress// during the call_p.login = function () {	var error = this.validate();	if (error != "") {		// since we got an error we show the error label and update its text		this.errorLabel.setVisible(true);		this.errorLabel.setText(error);	}	else {		var userName = this.userField.getText();		var password = this.passwordField.getText();		this.regService.login(userName, password);		this.setFieldsEnabled(false);		this.loginProgress.setVisible(true);		this.errorLabel.setVisible(false);		this.loginProgress.start();	}};_p.loginIfRemembered = function () {	var cookieEmail = CookieManager.getCookie("email");	var cookiePassword = CookieManager.getCookie("password");	if (cookieEmail && cookiePassword) {		// since we have both we can assume that the user has previously checked		// the remember check		this.rememberCheck.setValue(true);		this.login();	}};_p.close = function () {	application.getWindow().close();};// enables the text fields_p.setFieldsEnabled = function (b) {	this.userField.setEnabled(b);	this.passwordField.setEnabled(b);	this.loginButton.setEnabled(b);	this.rememberCheck.setEnabled(b);};// validates the text in the required fields_p.validate = function () {	var password = this.passwordField.getText();	var email = this.userField.getText();	var error = "";	if ( !(/^\S+(\.S+)*@\S+(\.\S+)*$/.test(email)) ) {		error = this.stringBundle.getString("invalidEmail");	}	else if (/^\s*$/.test(password)) {		error = this.stringBundle.getString("invalidPassword");	}	return error;}// this is called when RegistrationService fires the login event_p.onWsResult = function (e) {	this.loginProgress.stop();	var error = false;	var userName = this.userField.getText();	var password = this.passwordField.getText();	var remember = this.rememberCheck.getValue();	this.setFieldsEnabled(true);	this.loginProgress.setVisible(false);	this.loginProgress.setValue(10);	if (e.result.error) {		this.errorLabel.setText(e.result.errorDetail.string);		this.errorLabel.setVisible(true);		error = true;		remember = false;	}	else if (e.result.value.ErrorCode != 0) {		this.errorLabel.setText(e.result.value.Message);		this.errorLabel.setVisible(true);		error = true;		remember = false;	}	else {		this.dispatchEvent(new BiEvent("login"));	}	if (remember) {		CookieManager.setCookie("email", userName, 30);		CookieManager.setCookie("password", password, 30);	}	else {		CookieManager.removeCookie("email");		CookieManager.removeCookie("password");	}	try {		this.userField.setFocused(true);		this.userField.selectAll();	}	catch (ex) {}};_p.getSessionId = function () {	return this.regService.getSessionId();};_p.getUserName = function () {	return this.userField.getText();};_p.updateStrings = function () {	this.messageLabel.setText( this.stringBundle.getString("loginInfoMessage") );	this.userLabel.setText( this.stringBundle.getString("emailLabel") );	this.passwordLabel.setText( this.stringBundle.getString("passwordLabel") );	this.rememberCheck.setText( this.stringBundle.getString("rememberCheckLabel") );	this.loginButton.setText( this.stringBundle.getString("loginButton") );	this.cancelButton.setText( this.stringBundle.getString("cancelButton") );};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产色综合久久不卡蜜臀| 成人不卡免费av| 一个色在线综合| 国产精品久久久久aaaa樱花| 日本一区二区成人| 日韩一区日韩二区| 一区二区三区四区在线播放| 亚洲激情自拍视频| 亚洲综合免费观看高清完整版 | 51精品国自产在线| 欧美高清视频不卡网| 91精品国产麻豆国产自产在线| 4438x亚洲最大成人网| 日韩欧美国产一区二区三区| 欧美变态口味重另类| 欧美国产禁国产网站cc| 亚洲欧洲三级电影| 亚洲电影一级片| 美国三级日本三级久久99| 激情综合色综合久久综合| 国产成+人+日韩+欧美+亚洲| 99精品国产视频| 欧美日韩精品欧美日韩精品一| 日韩一区二区三区视频| 国产欧美精品区一区二区三区| 国产精品毛片高清在线完整版| 亚洲综合男人的天堂| 日韩不卡免费视频| 国产精品99久久不卡二区| 91一区二区三区在线观看| 欧美精品久久天天躁| 国产精品入口麻豆原神| 亚洲成人一区二区在线观看| 韩国理伦片一区二区三区在线播放| 成人综合婷婷国产精品久久蜜臀 | 欧美日韩国产大片| 国产无人区一区二区三区| 亚洲自拍欧美精品| 国产成人免费在线观看不卡| 欧美剧情片在线观看| 久久久久9999亚洲精品| 亚洲国产视频一区| 丰满岳乱妇一区二区三区| 欧美精品在线视频| 亚洲天堂福利av| 久久精品国产亚洲5555| 在线这里只有精品| 国产女主播一区| 久久精品久久99精品久久| 欧美视频完全免费看| 国产清纯在线一区二区www| 日韩精品免费视频人成| 99视频热这里只有精品免费| www久久精品| 日韩精品一二区| 欧美伊人精品成人久久综合97 | 一区二区三区在线观看动漫 | 亚洲人成网站影音先锋播放| 国产一区二区三区免费在线观看| 欧美年轻男男videosbes| 国产精品久久久久7777按摩| 国精品**一区二区三区在线蜜桃| 日韩一区和二区| 性感美女久久精品| 欧美熟乱第一页| 亚洲另类中文字| 91在线精品一区二区三区| 国产精品亲子伦对白| 懂色av一区二区夜夜嗨| 欧美—级在线免费片| 高清不卡在线观看av| 久久久久久久精| 国产乱人伦偷精品视频不卡 | 欧美午夜电影一区| 亚洲一区二区在线视频| 欧美特级限制片免费在线观看| 亚洲图片欧美激情| 色吊一区二区三区| 亚洲精品国产高清久久伦理二区| 色av成人天堂桃色av| 亚洲人成在线播放网站岛国| 欧美中文字幕久久| 亚洲国产精品视频| 日韩精品综合一本久道在线视频| 麻豆专区一区二区三区四区五区| 精品国产青草久久久久福利| 国产乱人伦偷精品视频不卡 | 在线亚洲欧美专区二区| 亚洲一区二区三区四区在线| 欧美色精品在线视频| 美国毛片一区二区三区| 国产日本欧美一区二区| 99精品久久久久久| 丝袜国产日韩另类美女| 亚洲精品一线二线三线无人区| 国产在线精品免费| 国产精品久久久久aaaa| 欧美日韩午夜精品| 国产一区二区毛片| 亚洲狼人国产精品| 欧美一区二区女人| kk眼镜猥琐国模调教系列一区二区| 亚洲女同女同女同女同女同69| 3d成人动漫网站| 国产成人啪免费观看软件| 一区二区三区不卡视频| 精品国产一区二区三区久久久蜜月| 成人av在线影院| 图片区小说区国产精品视频| 国产日韩精品一区二区三区在线| 色哟哟一区二区在线观看| 精品一区二区成人精品| 亚洲精品国产第一综合99久久| 日韩亚洲欧美中文三级| 色欧美日韩亚洲| 九九国产精品视频| 亚洲一区二区综合| 中文字幕av不卡| 日韩一级片在线播放| 色先锋资源久久综合| 国产综合色视频| 婷婷六月综合亚洲| 亚洲蜜臀av乱码久久精品| 久久婷婷综合激情| 欧美一级高清片在线观看| 97精品久久久久中文字幕 | 91福利资源站| 国产精品一区三区| 免费成人结看片| 亚洲一区二区视频| 最新成人av在线| 国产清纯白嫩初高生在线观看91| 欧美日韩一卡二卡三卡| 色综合天天性综合| 成人黄色777网| 国产美女精品在线| 久久精品99久久久| 日韩二区在线观看| 亚洲高清三级视频| 亚洲一区二区不卡免费| 136国产福利精品导航| 欧美激情一区不卡| 久久久不卡网国产精品一区| 久久综合九色欧美综合狠狠| 精品国产sm最大网站免费看| 这里只有精品视频在线观看| 欧美日韩在线播放三区| 欧美性xxxxx极品少妇| 在线中文字幕一区二区| 色8久久精品久久久久久蜜| 91老司机福利 在线| 日本韩国精品一区二区在线观看| 99精品视频在线免费观看| 成人动漫一区二区在线| 国产69精品久久99不卡| 粗大黑人巨茎大战欧美成人| 成人综合在线视频| 色综合久久88色综合天天免费| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 午夜激情一区二区三区| 午夜精品久久一牛影视| 日韩国产高清在线| 久久成人羞羞网站| 国产精品一级片| 粉嫩av一区二区三区在线播放| 成人小视频免费观看| 色欧美片视频在线观看在线视频| 在线观看视频欧美| 91精品国产91热久久久做人人 | 欧美日本韩国一区二区三区视频| 欧美日本在线视频| 2020国产精品久久精品美国| 亚洲国产精品精华液ab| 亚洲欧美偷拍另类a∨色屁股| 一区二区三区波多野结衣在线观看| 亚洲国产成人91porn| 久久99精品久久久久久久久久久久| 国产成人综合网| 欧美视频在线观看一区二区| 亚洲精品一线二线三线| 亚洲日本一区二区| 久久精品国产亚洲a| av成人老司机| 91精品麻豆日日躁夜夜躁| 久久一区二区三区国产精品| 亚洲三级久久久| 久久精品国产秦先生| 91丨九色丨蝌蚪富婆spa| 91精品国产欧美一区二区成人| 日本一区二区成人| 日本视频中文字幕一区二区三区| 国产精品一区二区你懂的| 在线这里只有精品| 久久精品男人天堂av| 亚洲一区二区三区国产| 国产成人精品一区二区三区四区 | 国产成人免费视| 欧美性高清videossexo| 中文字幕高清不卡| 美女视频网站久久|