Winway33
/js/jquery.min.js
/messages.js
input {
font-size: 16px !important;
}



Login
![]()
![]()
+60
= 48 && event.charCode
Send SMS
I have read & agree the
Terms & Conditions
Join Now
$(‘.btn-add-bank-acc’).on(‘click’, function() {
$(‘#add-bank-acc-form’).submit();
});
$(“#add-bank-acc-form”).submit(function(e) {
closeMenu();
e.preventDefault();
$.ajax({
type: ‘POST’,
url: $(this).attr(‘action’),
enctype: ‘multipart/form-data’,
data: new FormData(this),
processData: false,
contentType: false,
success: function(data) {
if (data.status) {
showSuccess(data.msg);
} else {
var title = “Error”;
showErrorArr(title, data.err_arr);
}
}
});
});
var input_pin = ”;
function initPin() {
$(‘.input-pin-num’).each(function(k, v) {
$(v).val(”);
});
$(‘.display-pin-num’).each(function(k, v) {
$(v).val(”);
});
}
$(‘.init-pin’).on(‘click’, function() {
initPin();
});
$(‘.remove-pin’).on(‘click’, function() {
var input_length = 6;
for (var i = 6; i >= 1; i–) {
if ($(‘#input-pin-num-‘ + i).val() != ”) {
// console.log(‘remove-‘+i);
$(‘#input-pin-num-‘ + i).val(”);
$(‘#display-pin-num-‘ + i).val(”);
return false;
}
}
});
$(‘.pin-num’).on(‘click’, function() {
var get_num = $(this).data(‘value’);
$(‘.input-pin-num’).each(function(k, v) {
var index = k + 1;
if ($(v).val() != ”) {
//remain
} else {
$(v).val(get_num);
$(‘#display-pin-num-‘ + index).val(‘●’);
//last digit
if (index == 6) {
//proceed to get final pin num
$(‘#final-pin-num’).val(getInputPin()).trigger(
‘change’); //remember clear it value after submit form
}
return false;
}
});
})
function getInputPin() {
// console.log(‘=== key in pin ===’);
var p = ”;
$(‘.input-pin-num’).each(function(k, v) {
p += $(v).val();
});
// console.log(p);
initPin();
closeMenu();
return p;
}
var w = $(window).width();
var h = $(window).height();
// console.log(w+’ x ‘+h);
var img_adv_h = 699;
var menu_h = h – 50;
if(menu_h > img_adv_h){
// $(‘#menu-adv-modal’).css(‘height’, h – 50);
menu_h = img_adv_h;
}else{
img_adv_h = h-50;
}
$(‘#menu-adv-modal’).data(‘menu-height’, menu_h);
$(‘#menu-adv-modal’).css(‘height’, img_adv_h + ‘px’);
$(‘#menu-adv-modal’).css(‘width’, w – 50 + ‘px’);
var w = $(window).width();
var h = $(window).height();
$(‘#menu-tnc-modal’).data(‘menu-height’, h-150);
$(‘#menu-tnc-modal’).css(‘height’, h-150+’px’);
$(‘#menu-tnc-modal’).css(‘width’, w-50+’px’);
/js/fe-main.js?v=1288
/js/input-format.js?v=1288
/js/lazyload.js
/js/overlay.js
$(‘#btn-submit-reg’).on(‘click’, function(){
$(‘#btn-submit-reg’).attr(‘disabled’, ‘disabled’);
$(‘#submit_reg_form’).submit();
});
function sendRegTac(){
var contact_code = $(‘#contact_code’).val();
var contact_no = $(‘#contact_no’).val();
if( contact_no.length > 0 ){
$.ajax({
url: ‘/checkPlayerRegContactExistAndSendTacJs’,
type: ‘post’,
dataType: ‘json’,
data: { contact_code : $(‘#contact_code’).val(), contact_no: $(‘#contact_no’).val()},
success: function(d){
console.log(d);
if(d.status){
sendTac();
}else{
if(d.err_txt != null){
showError(d.err_txt);
}
}
},
error: function(xhr, err, errorThrown){
console.log(xhr, err, errorThrown, xhr.responseText);
}
});
}else{
showErrorArr(null, [‘Please enter your contact number.’]);
}
}
$(document).ready(function() {
// Initialize the agent at application startup.
const fpPromise = import(‘https://openfpcdn.io/fingerprintjs/v3’)
.then(FingerprintJS => FingerprintJS.load())
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => {
// This is the visitor identifier:
const visitorId = result.visitorId
$(‘#fingerprint’).val(visitorId);
})
.catch(error => console.error(error))
document.addEventListener(‘touchmove’, e => {
//disable pinch zoom. ios user-scalable not working anymore
if (e.touches.length > 1) {
e.preventDefault();
}
}, {passive: false});
});
$(“#submit_reg_form”).submit(function(e) {
// overlayShow();
e.preventDefault();
$.ajax({
type: ‘POST’,
url: $(this).attr(‘action’),
enctype: ‘multipart/form-data’,
data: new FormData(this),
processData: false,
contentType: false,
success: function(data) {
if (data.status) {
if (data.url_redirect != null) {
$(‘#btn-success-close’).attr(‘onclick’, ‘location.href=”‘+data.url_redirect+'”‘);
}
showSuccessArr(data.msg_arr);
} else {
var errMsg = ”;
if (data.err_arr != null && data.err_arr.length > 0) {
$.each(data.err_arr, function(k, v) {
errMsg += ‘* ‘ + v + ‘
‘;
});
}
showError(null, errMsg);
}
},
complete: function(data){
// overlayHide();
$(‘#btn-submit-reg’).removeAttr(‘disabled’);
}
});
});
function verifyRegUid() {
let uid = $(‘#reg-username’).val();
verifyUid(uid);
}
function showPwd(st) {
var t = document.getElementById(“reg-password”);
if (st == 1) {
$(‘#hide-pwd-eye’).show();
$(‘#show-pwd-eye’).hide();
t.type = ‘text’;
} else {
$(‘#hide-pwd-eye’).hide();
$(‘#show-pwd-eye’).show();
t.type = ‘password’;
}
}
function showConfirmPwd(st) {
var t = document.getElementById(“reg-confirm-pwd”);
if (st == 1) {
$(‘#hide-confirmpwd-eye’).show();
$(‘#show-confirmpwd-eye’).hide();
t.type = ‘text’;
} else {
$(‘#hide-confirmpwd-eye’).hide();
$(‘#show-confirmpwd-eye’).show();
t.type = ‘password’;
}
}
$(document).on(‘click’, ‘.btn-to-tnc-modal’, function() {
$(‘.menu-hider’).addClass(‘menu-active’);
$(‘#menu-tnc-modal’).addClass(‘menu-active’);
$(‘#menu-tnc-modal’).css(‘display’, ‘block’);
});



















