會員登入
(function(w,d,s,l,i))(window,document,'script','dataLayer','GTM-KDKMGT');
(function(window, $, undefined)
"use strict";
var needAdditionCheck = 0;
var showid = "";
var checkIfRequireNextStep = function()
$.ajax(
url: "/ajax/login_precheck.php",
data: uid: document.getElementById('uidh').value,
dataType: "json"
).done(function(data)
if (data.status)
window.location.href = 'loginErr.php?e=1';
return;
switch (data.type)
case 1:
$("#checkb1").hide();
$("#checkb3").show();
$("input[name=twoStepAuth]").focus();
needAdditionCheck = 1;
break;
case 2:
$("#checkb1").hide();
$("#checkb2").show();
needAdditionCheck = 2;
break;
default:
window.document.loginform.submit();
break;
document.loginform.hasCheck.value = 1;
).fail(function()
alert("系統忙碌中,請重新整理後再試");
);
;
var chkLogin = function(e)
if (this.uidh.value == '')
alert('請輸入您的帳號');
this.uidh.focus();
return false;
if (this.passwdh.value == '')
alert('請輸入您的密碼');
this.passwdh.focus();
return false;
if (this.onlogin.value == 1)
alert('處理中,請稍候');
this.onlogin.value = 0;
return false;
if (needAdditionCheck == 2 && this.rnb.value == '')
alert('請輸入您的生日');
return false;
if (needAdditionCheck == 1 && this.twoStepAuth.value == '')
alert('請輸入 Google Authenticator 產生的六位數驗證碼。');
return false;
if (!grecaptcha.getResponse())
alert('請勾選「我不是機器人」');
return false;
if (this.hasCheck.value == 1)
this.onlogin.value = 1;
return true;
else
checkIfRequireNextStep();
return false;
;
var bb = function ()
document.cookie="ckFrom=0;expires=Tue, 01-01-1980 00:00:00 GMT;path=/;domain=gamer.com.tw";
window.history.back();
return false;
;
var clearInputValue = function()
$(this).parent().children("input").val("");
$(this).parents('.form__input').removeClass('has-value');
$(this).removeClass('is-active');
document.loginform.rnb.value = "";
return false;
$(function()
var $txt = $(':text,:password').on('keyup input mouseup', function()
$(this).toggleClass('hasValue', this.value!='');
$('.submask').toggleClass('allow', $('.hasValue').length == $txt.length);
if($(this).val().length)
$(this).next().next().show();
);
$('input').on('keypress', function()
if ($(this).value !== "")
$(this).parents('.form__input').addClass('has-value');
$(this).siblings('.clearall').addClass('is-active');
);
$("form[name=loginform]").on("submit", chkLogin);
$(".js-btn-cancel").on("click", bb);
$(".clearall").on("click", clearInputValue);
$("input[name=passwdh]")
.on("focus", function()
$("#tips").html("巴哈姆特不會主動要求會員提供密碼。").css("display", "block");
)
.on("blur", function()
if ($("#autoLogin").prop("checked"))
$("#tips").html('公用電腦請記得登出,或開啟無痕模式').css("display", "block");
else
$("#tips").css("display", "none");
)
.on("keypress", function(e)
var valueCapsLock = e.which;
var valueShift = e.shiftKey ? e.shiftKey : ((valueCapsLock == 16 ) ? true : false );
if ( (/[A-Z]/.test(String.fromCharCode(valueCapsLock)) && !valueShift)
);
$("#autoLogin").on("click", function()
if (this.checked)
$("#tips").html('公用電腦請記得登出,或開啟無痕模式').css("display", "block");
else
$("#tips").css("display", "none");
);
$(".js-btn-birthday").on("click", function()
var num = $(this).data("birthkey");
if (document.loginform.rnb.value.length < 4)
document.loginform.rnb.value = document.loginform.rnb.value+num;
document.loginform.show_rnb.value = document.loginform.rnb.value;
$('input[name="show_rnb"]').parents('.form__input').addClass('has-value');
$('input[name="show_rnb"]').siblings('.clearall').addClass('is-active');
);
if (showid)
document.loginform.passwdh.focus();
$('#uidh').parents('.form__input').addClass('has-value');
$('#uidh').siblings('.clearall').addClass('is-active');
else
document.loginform.uidh.focus();
);
)(window, jQuery);
黑色沙漠手遊公會缺人名稱是GO歡迎大家查詢到後加入
This page is only for reference, If you need detailed information, please check here
(function(window, $, undefined)
"use strict";
var needAdditionCheck = 0;
var showid = "";
var checkIfRequireNextStep = function()
$.ajax(
url: "/ajax/login_precheck.php",
data: uid: document.getElementById('uidh').value,
dataType: "json"
).done(function(data)
if (data.status)
window.location.href = 'loginErr.php?e=1';
return;
switch (data.type)
case 1:
$("#checkb1").hide();
$("#checkb3").show();
$("input[name=twoStepAuth]").focus();
needAdditionCheck = 1;
break;
case 2:
$("#checkb1").hide();
$("#checkb2").show();
needAdditionCheck = 2;
break;
default:
window.document.loginform.submit();
break;
document.loginform.hasCheck.value = 1;
).fail(function()
alert("系統忙碌中,請重新整理後再試");
);
;
var chkLogin = function(e)
if (this.uidh.value == '')
alert('請輸入您的帳號');
this.uidh.focus();
return false;
if (this.passwdh.value == '')
alert('請輸入您的密碼');
this.passwdh.focus();
return false;
if (this.onlogin.value == 1)
alert('處理中,請稍候');
this.onlogin.value = 0;
return false;
if (needAdditionCheck == 2 && this.rnb.value == '')
alert('請輸入您的生日');
return false;
if (needAdditionCheck == 1 && this.twoStepAuth.value == '')
alert('請輸入 Google Authenticator 產生的六位數驗證碼。');
return false;
if (!grecaptcha.getResponse())
alert('請勾選「我不是機器人」');
return false;
if (this.hasCheck.value == 1)
this.onlogin.value = 1;
return true;
else
checkIfRequireNextStep();
return false;
;
var bb = function ()
document.cookie="ckFrom=0;expires=Tue, 01-01-1980 00:00:00 GMT;path=/;domain=gamer.com.tw";
window.history.back();
return false;
;
var clearInputValue = function()
$(this).parent().children("input").val("");
$(this).parents('.form__input').removeClass('has-value');
$(this).removeClass('is-active');
document.loginform.rnb.value = "";
return false;
$(function()
var $txt = $(':text,:password').on('keyup input mouseup', function()
$(this).toggleClass('hasValue', this.value!='');
$('.submask').toggleClass('allow', $('.hasValue').length == $txt.length);
if($(this).val().length)
$(this).next().next().show();
);
$('input').on('keypress', function()
if ($(this).value !== "")
$(this).parents('.form__input').addClass('has-value');
$(this).siblings('.clearall').addClass('is-active');
);
$("form[name=loginform]").on("submit", chkLogin);
$(".js-btn-cancel").on("click", bb);
$(".clearall").on("click", clearInputValue);
$("input[name=passwdh]")
.on("focus", function()
$("#tips").html("巴哈姆特不會主動要求會員提供密碼。").css("display", "block");
)
.on("blur", function()
if ($("#autoLogin").prop("checked"))
$("#tips").html('公用電腦請記得登出,或開啟無痕模式').css("display", "block");
else
$("#tips").css("display", "none");
)
.on("keypress", function(e)
var valueCapsLock = e.which;
var valueShift = e.shiftKey ? e.shiftKey : ((valueCapsLock == 16 ) ? true : false );
if ( (/[A-Z]/.test(String.fromCharCode(valueCapsLock)) && !valueShift)
);
$("#autoLogin").on("click", function()
if (this.checked)
$("#tips").html('公用電腦請記得登出,或開啟無痕模式').css("display", "block");
else
$("#tips").css("display", "none");
);
$(".js-btn-birthday").on("click", function()
var num = $(this).data("birthkey");
if (document.loginform.rnb.value.length < 4)
document.loginform.rnb.value = document.loginform.rnb.value+num;
document.loginform.show_rnb.value = document.loginform.rnb.value;
$('input[name="show_rnb"]').parents('.form__input').addClass('has-value');
$('input[name="show_rnb"]').siblings('.clearall').addClass('is-active');
);
if (showid)
document.loginform.passwdh.focus();
$('#uidh').parents('.form__input').addClass('has-value');
$('#uidh').siblings('.clearall').addClass('is-active');
else
document.loginform.uidh.focus();
);
)(window, jQuery);
- 註冊
- 忘記密碼
- 忘記帳號
- 重置兩步驟驗證
黑色沙漠手遊公會缺人名稱是GO歡迎大家查詢到後加入
This page is only for reference, If you need detailed information, please check here