/// //#region Web Banking var maxImageSize = 500000; var translation = { "en-gb": { ManageAccount: "Manage Bank Account", GoTo: "GO TO {0} ONLINE BANKING" } , "id-id": { ManageAccount: "Atur Rekening Bank", GoTo: "MENUJU KE SITUS {0} INTERNET BANKING" } , "vi-vn": { ManageAccount: "Quản Lý Tài Khoản Ngân Hàng", GoTo: "Đến Trang Ngân Hàng Trực Tuyến {0}" } , "km-kh": { ManageAccount: "ចាត់ចែងគណនីធនាគារ", GoTo: "ចូលទៅ {0} ធនាគារតាមអ៊ីនធឺណិត" } , "th-th": { ManageAccount: "จัดการบัญชีธนาคาร", GoTo: "ไปที่ {0} ธุรกรรมออนไลน์" } }; var l_reminder = (gv && gv.lang) ? translation[gv.lang] : {}; String.prototype.format = function () { var content = this; for (var i = 0; i < arguments.length; i++) { var replacement = '{' + i + '}'; content = content.replace(replacement, arguments[i]); } return content; }; //#endregion var lastLoginTime = ""; var r = { "en-gb": { Yes: "Yes", No: "No", OK: "OK", Cancel: "Cancel", ERROR: "Error", Message: "Message", UpdatedSuccess: "Updated Success", lc: "Live Chat", Deposit: "deposit", Withdrawal: "withdrawal", Transfer: "transfer", Statement: "Statement", PaymentLimit: "Your {3} limit allowed by the system is as follow: Minimum {3} amount: {0} {1} Maximum {3} amount: {0} {2}", PaymentLimitDeposit: "Your deposit limit allowed by the system is as follow: Minimum deposit amount: {0} {1} Maximum deposit amount: {0} {2}", PaymentLimitWithdrawal: "Your withdrawal limit allowed by the system is as follow: Minimum withdrawal amount: {0} {1} Maximum withdrawal amount: {0} {2}", ConfirmTransfer: "Please confirm your {0} request.", ConfirmCancel: "Are you sure you want to cancel this withdrawal request? Withdrawal amount ({0}) will be credited back to your available balance after you confirm your cancellation.", ClickHere: "Click Here", FieldRequired: "This field is required", maxlength: "Please enter no more than {0} characters.", BankAccountExist: "Bank account exist. Please try different bank account.", BankAccountUnavailable: "This bank account is not available, please refresh banking page to get updated bank account list.", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", ChooseBank: "Please choose bank first !", MonthList: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] , DayList: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] , LinkExpired: "Link expired" ,AccountNameValidation: "Your Account Name should:{0}Not be empty{1}Be in alphabets{2}Not contain special characters{3}Not start with space" , ReferenceNumberValidationCharacter: "Your reference number should be as follow:Minimum Character: {0} Maximum Character: {1}", ReferenceNumberValidationAlphabet: "Your reference number should be as follow:Minimum Alphabet: {0} Maximum Alphabet: {1}", ReferenceNumberValidationNumeric: "Your reference number should be as follow:Minimum Number: {0} Maximum Number: {1}", GoToProfilPage: "Go to Profil Page" } , "zh-cn": { OK: "确定", Cancel: "取消", ERROR: "错误", Message: "消息", UpdatedSuccess: "修改成功", lc: "在线客服", Deposit: "存款", Withdrawal: "提款", Transfer: "转账", PaymentLimit: "本公司所设定的{3}限额为下:最低{3}限额:{0} {1}最高{3}限额:{0} {2}", ConfirmTransfer: "您确定要进行{0}?", ConfirmCancel: "你确定要取消这次的提款吗?本次提款金额({0})将会在你确认取消后加回你的可用余额。", ClickHere: "点击这里", FieldRequired: "必填项", maxlength: "Please enter no more than {0} characters.", BankAccountExist: "此银行账号已存在,请尝试其他的银行账号", BankAccountUnavailable: "此银行账号已无法使用,请您刷新页面获取最新的银行账号。", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", MonthList: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] , DayList: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] , LinkExpired: "Link expired" } , "zh-tw": { OK: "確定", Cancel: "取消", ERROR: "错误", Message: "消息", UpdatedSuccess: "修改成功", lc: "在線客服", Deposit: "存款", Withdrawal: "提款", Transfer: "轉賬", PaymentLimit: "本公司所設定的{3}限額為下:最低{3}限額:{0} {1}最高{3}限額:{0} {2}", ConfirmTransfer: "您確定要進行{0}?", ConfirmCancel: "你確定要取消這次的提款嗎?本次提款金額({0})將會在你確認取消後加回你的可用餘額。", ClickHere: " 點擊這裡", FieldRequired: "必填項", maxlength: "Please enter no more than {0} characters.", BankAccountExist: "此銀行賬號已存在,請嘗試其他的銀行賬號", BankAccountUnavailable: "此銀行賬號已無法使用,請您刷新頁面獲取最新的銀行賬號。", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", MonthList: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] , DayList: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] , LinkExpired: "Link expired" } , "id-id": { OK: "OK", Cancel: "Batal", ERROR: "Error", Message: "Pesan", UpdatedSuccess: "Diperbarui", lc: "Live Chat", Deposit: "deposit", Withdrawal: "withdrawal", Transfer: "transfer", PaymentLimit: "Batas {3} anda yang diizinkan oleh sistem adalah sebagai berikut: Minimum {3} jumlah: {0} {1} Maksimum {3} jumlah: {0} {2} em>", PaymentLimitDeposit: "Batas jumlah deposit anda yang diizinkan oleh sistem adalah sebagai berikut: Minimum jumlah deposit: {0} {1} Maksimum jumlah deposit: {0} {2} em>", PaymentLimitWithdrawal: "Batas jumlah penarikan anda yang diizinkan oleh sistem adalah sebagai berikut: Minimum jumlah penarikan: {0} {1} Maksimum jumlah penarikan: {0} {2} em>", ConfirmTransfer: "Sila konfirmasi permintaan {0} anda.", ConfirmCancel: "Apakah Anda yakin ingin membatalkan permintaan penarikan? Penarikan sejumlah ({0}) akan dikreditkan kembali ke saldo yang tersedia setelah mengkonfirmasi pembatalan Anda.", FieldRequired: "Kolom harus diisi", maxlength: "Please enter no more than {0} characters.", BankAccountExist: "Rekening telah terdaftar. Silakan mencoba rekening lain", BankAccountUnavailable: "Rekening bank ini tidak tersedia, silahkan refresh halaman perbankan untuk menemukan daftar rekening bank yang telah diperbarui.", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", ChooseBank: "Please choose bank first !", MonthList: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] , DayList: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] , LinkExpired: "Link telah kedaluwarsa" } , "vi-vn": { Yes: "Có", No: "Không", OK: "OK", Cancel: "Hủy bỏ", ERROR: "Lỗi", Message: "Tin nhắn", UpdatedSuccess: "Cập nhật thành công", lc: "Trò chuyện trực tuyến", Deposit: "Gửi tiền", Withdrawal: "Rút tiền", Transfer: "Chuyển khoản", Statement: "Báo cáo chi tiết", PaymentLimit: "Giới hạn {3} như sau: Số tiền {3} tối thiểu: {0} {1} Số tiền {3} tối đa: {0} {2} em>", PaymentLimitDeposit: "Giới hạn gửi tiền như sau: Số tiền gửi tối thiểu: {0} {1} Số tiền gửi tối đa: {0} {2} em>", PaymentLimitWithdrawal: "Giới hạn rút tiền như sau: Số tiền rút tối thiểu: {0} {1} Số tiền rút tối đa: {0} {2} em>", ConfirmTransfer: "Vui lòng xác nhận yêu cầu {0} của bạn.", ConfirmCancel: "Bạn có chắc chắn muốn hủy yêu cầu rút tiền ? Số tiền rút ({0}) sẽ được cộng trở lại vào tài khoản của bạn sau khi bạn xác nhận việc hủy .", ClickHere: "Nhấp vào đây", FieldRequired: "Ô được yêu cầu nhập", maxlength: "Vui lòng không nhập hơn {0} ký tự.", BankAccountExist: "Tài khoản ngân hàng này đã tồn tại. Vui lòng nhập lại tài khoản khác", BankAccountUnavailable: "Tài khoản ngân hàng này không có sẵn, vui lòng làm mới trang để có được danh sách tài khoản ngân hàng cập nhật.", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ChooseBank: "Vui lòng chọn ngân hàng đầu tiên !", MonthList: ["Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"] , DayList: ["CHỦ NHẬT", "THỨ HAI", "THỨ BA", "THỨ TƯ", "THỨ NĂM", "THỨ SÁU", "THỨ BẢY"] , LinkExpired: "Đường Dẫn Hết Hạn" , AccountNameValidation: "Những yêu cầu về Tên Chủ Tài Khoản Ngân Hàng:{0}Không để trống{1}Chỉ cho phép chữ cái{2}Không bao gồm ký tự đặc biệt{3}Không bắt đầu bằng khoảng trắng" , ReferenceNumberValidationCharacter: "Số tham chiếu của bạn phải như sau: Ký tự chữ và số tối thiểu: {0} Ký tự chữ và số tối đa: {1}", ReferenceNumberValidationAlphabet: "Số tham chiếu của bạn phải như sau: Ký tự chữ tối thiểu: {0} Ký tự chữ tối đa: {1}", ReferenceNumberValidationNumeric: "Số tham chiếu của bạn phải như sau: Ký tự số tối thiểu: {0} Ký tự số tối thiểu: {1}", GoToProfilPage: "Go to Profil Page" } , "km-kh": { Yes: "ព្រម", No: "មិនព្រម", OK: "យល់ព្រម", Cancel: "លុបចោល", ERROR: "កំហុស", Message: "សារ", UpdatedSuccess: "កែសំរួលបានជោគជ័យ", lc: "ជជែកផ្ទាល់", Deposit: "ការដាក់ប្រាក់", Withdrawal: "ការដកប្រាក់", Transfer: "ការផ្ទេរប្រាក់", PaymentLimit: "{3}របស់លោកអ្នកត្រូវបានកំណត់ដោយប្រព័ន្ធដែលបានអនុញ្ញាតិ៖ចំនួនអតិបរមា{3}: {0} {1} ចំនួនអប្បរមា{3}: {0} {2}", PaymentLimitDeposit: "ការដាក់ប្រាក់របស់លោកអ្នកត្រូវបានកំណត់ដោយប្រព័ន្ធដែលបានអនុញ្ញាតិ៖ ចំនួនអប្បរមាការដាក់ប្រាក់៖ {0} {1}ចំនួនអតិបរមាការដាក់ប្រាក់៖ {0} {2}", PaymentLimitWithdrawal: "ការដកប្រាក់របស់លោកអ្នកត្រូវបានកំណត់ដោយប្រព័ន្ធដែលបានអនុញ្ញាតិ៖ ចំនួនអប្បរមាការដកប្រាក់៖ {0} {1}ចំនួនអតិបរមាការដកប្រាក់៖ {0} {2}", ConfirmTransfer: "សូមបញ្ជាក់ពីសំនើរសុំរបស់លោកអ្នក", ConfirmCancel: "តើលោកអ្នកប្រាកដទេថាចង់បញ្ឈប់ការស្នើសុំដក់ប្រាក់នេះ, ទឹកប្រាក់ដែលស្នើសុំដក({0})នឹងបញ្ចូលទៅក្នុងគណនីរបស់លោកអ្នកវិញបន្ទាប់ពីលោកអ្នកបានបញ្ជាក់យល់ព្រមពីការស្នើឈប់របស់លោកអ្នក", ClickHere: "ចុចត្រង់នេះ", FieldRequired: "ប្រលោះនេះចាំបាច់ត្រូវបំពេញ", maxlength: "សូមបញ្ចូលមិនមានច្រើនជាងតួអក្សរ {0}.", BankAccountExist: "គណនីធនាគារនេះមានរួចហើយ។ សូមព្យាយាមគណនីធនាគារផ្សេងទៀត។", BankAccountUnavailable: "គណនីធនាគារគឺមិនអាចប្រើបាន សូមព្យាយាមចូលទំព័រធនាគារម្តងទៀត ដើម្បីទទួលបានឈ្មោះគណនីធនាគារថ្មីបំផុត។", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", ChooseBank: "សូមជ្រើសរើសធនាគារដំបូង !", MonthList: ["មករា", "កុម្ភៈ", "មីនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"] , DayList: ["អាទិត្យ", "ច័ន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍"] , LinkExpired: "កាលបរិច្ឆេទផុតកំណត់" , AccountNameValidation: "ឈ្មោះគណនីរបស់អ្នកត្រូវតែ:{0}មិនត្រូវទុកចំហរ{1}ត្រូវតែមានតួអក្សរ{2}មិនត្រូវមានតួសញ្ញាពិសេស{3}មិនត្រូវចាប់ផ្ដើមដោយការដកឃ្លា" } , "th-th": { Yes: "ใช่", No: "ไม", OK: "ตกลง", Cancel: "ยกเลิก", ERROR: "เกิดข้อผิดพลาด", Message: "ข้อความ", UpdatedSuccess: "อัพเดตเรียบร้อย", lc: "สนทนา", Deposit: "ฝาก", Withdrawal: "ถอน", Transfer: "โอน", Statement: "สถานะการเงิน", PaymentLimit: "ข้อจำกัดของคุณตามที่ได้รับอนุญาติจากระบบมีดังนี้ {3}ขั้นต่ำ จำนวน {0} {1} {3}สูงสุด จำนวน {0} {2}", PaymentLimitDeposit: "ข้อจำกัดของคุณตามที่ได้รับอนุญาติจากระบบมีดังนี้ ฝากขั้นต่ำ จำนวน: {0} {1} ฝากสูงสุด จำนวน: {0} {2}", PaymentLimitWithdrawal: "ข้อจำกัดการถอนเงินตามที่ได้รับอนุญาติจากระบบมีดังนี้ ถอนขั้นต่ำ จำนวน: {0} {1} ถอนสูงสุด จำนวน: {0} {2}", ConfirmTransfer: "กรุณายืนยันคำร้องขอของคุณ {0}", ConfirmCancel: "คุณแน่ใจหรือว่าต้องการที่จะยกเลิกการขอถอนตัวนี้ จำนวนเงินที่ถอน ({0}) จะถูกโอนกลับไปที่ความสมดุลที่มีอยู่ของคุณหลังจากที่คุณยืนยันการยกเลิกของคุณ", ClickHere: "คลิกที่นี่", FieldRequired: "ฟิลด์นี้จะต้อง", maxlength: "กรุณาใส่ไม่เกิน {0} อักขระ", BankAccountExist: "บัญชีนี้มีอยู่แล้ว โปรดเพิ่มบัญชีที่ไม่ซ้ำ", BankAccountUnavailable: "ธนาคารที่ท่านเลือกไม่รองรับการให้บริการ กรุณารีเฟรชหน้าจอและทำการเลือกอีกครั้ง", ModifyDefaultBankAccount: "Do you want change Default Bank Account (Deposit/Withdrawal) to 'Member Bank Account'?", ModifyDefaultPaymentOption: "Do you want change 'Payment Option' to your Default Payment Option?", ModifyDefaultBankAccountAndPaymentOption: "Do you want change your Default Payment Option and Bank Account (Deposit/Withdrawal) ?", SettingDefaultPaymentOptionAndBankAccount: "Do you want this selected as your Default Payment Option and Default Bank Account (Deposit/Withdrawal)?", ChooseBank: "โปรดเลือกธนาคารก่อน !", MonthList: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"] , DayList: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"] , LinkExpired: "ลิงค์หมดอายุแล้ว" , AccountNameValidation: "ชื่อบัญชีผู้ใช้งานของท่านจะต้อง: {0}ไม่ปล่อยว่าง{1}เป็นตัวอักษรเท่านั้น{2}ไม่มีอักขระหรือสัญลักษณ์พิเศษ{3}ห้ามเว้นวรรคก่อนกรอกชื่อ" , ReferenceNumberValidationCharacter: "หมายเลขอ้างอิงของคุณควรเป็นดังนี้: จำนวนตัวอักษรและตัวเลขขั้นต่ำ: {0} จำนวนตัวอักษรและตัวเลขสูงสุด: {1}", ReferenceNumberValidationAlphabet: "หมายเลขอ้างอิงของคุณควรเป็นดังนี้: จำนวนตัวอักษรขั้นต่ำ: {0} จำนวนตัวอักษรสูงสุด: {1}", ReferenceNumberValidationNumeric: "หมายเลขอ้างอิงของคุณควรเป็นดังนี้: จำนวนตัวเลขขั้นต่ำ: {0} จำนวนตัวเลขสูงสุด: {1}", GoToProfilPage: "Go to Profil Page" } }; var l = (gv && gv.lang) ? r[gv.lang] : {}; //#endregion //#region Data.Prototype Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes(), "s+": this.getSeconds(), "q+": Math.floor((this.getMonth() + 3) / 3), //quarter "S": this.getMilliseconds() //millisecond }; if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }; Date.prototype.toDateTimeString = function () { return this.format("yyyy/MM/dd | hh:mm:ss"); }; Date.prototype.toDateTimeString2 = function () { return this.format("yyyy/MM/dd hh:mm:ss"); }; //#endregion //#region jQuery.cookie jQuery.cookie = function (name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } // CAUTION: Needed to parenthesize options.path and options.domain // in the following expressions, otherwise they evaluate to undefined // in the packed version for some reason... var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { // only name given, get cookie var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } }; //#endregion //#region windowSync var childWindows = []; var windowSync = { _validWin: function (win, sourceWindow) { try { return win && win != window && win != sourceWindow && !win.closed && win.windowSync; } catch (ex) { return false; } } , setSessionLost: function (msg, sourceWindow) { utility.sessionLost(msg, window); for (var i = 0; i < childWindows.length; i++) { var win = childWindows[i]; if (windowSync._validWin(win, sourceWindow)) { win.utility.sessionLost(msg, window); } } if (windowSync._validWin(window.opener, sourceWindow)) { window.opener.windowSync.setSessionLost(msg, window); } if (windowSync._validWin(window.parent, sourceWindow)) { window.parent.windowSync.setSessionLost(msg, window); } } , setClientdata: function (response, sourceWindow) { if (window.setClientdata) { window.setClientdata(response); }; for (var i = 0; i < childWindows.length; i++) { var win = childWindows[i]; if (windowSync._validWin(win, sourceWindow)) { win.setClientdata(response, window); } } if (windowSync._validWin(window.opener, sourceWindow)) { window.opener.windowSync.setClientdata(response, window); } if (windowSync._validWin(window.parent, sourceWindow)) { window.parent.windowSync.setClientdata(response, window); } } , setlogout: function (sourceWindow) { var isTop = true; if (windowSync._validWin(window.opener, sourceWindow)) { isTop = false; window.opener.windowSync.setlogout(window); } if (windowSync._validWin(window.parent, sourceWindow)) { isTop = false; window.parent.windowSync.setlogout(window); } for (var i = 0; i < childWindows.length; i++) { var win = childWindows[i]; //if (windowSync._validWin(win, window)) try { win.close(); } catch (ex) { //live casino page will throw exception in some browsers. } } if (isTop) { window.location.reload(); } else { window.open('', '_self', ''); //prevent prompt message when window opened by ctrl + clicking link window.close(); } } , closeAndBackTohome: function (homeurl, sourceWindow) { var isTop = true; if (windowSync._validWin(window.opener, sourceWindow)) { isTop = false; window.opener.windowSync.closeAndBackTohome(window); } if (windowSync._validWin(window.parent, sourceWindow)) { isTop = false; window.parent.windowSync.closeAndBackTohome(window); } for (var i = 0; i < childWindows.length; i++) { var win = childWindows[i]; if (windowSync._validWin(win, sourceWindow)) { win.open('', '_self', ''); //prevent promot message when window opened by ctrl + clicking link win.close(); } } if (isTop) { //if (typeof (homeurl) == String) { if (String(typeof (homeurl)) == "string") { window.location.href = homeurl; } } else { window.open('', '_self', ''); //prevent promot message when window opened by ctrl + clicking link window.close(); } } , regChildWindow: function (win) { childWindows.push(win); } }; //#endregion //#region utility var utility = { stopRequest: false, //#region dateDeserialize dateDeserialize: function (dateStr) { return eval("new Date(" + dateStr + ")"); }, //#endregion //#region now now: function () { return new Date(new Date() - uv.gap); }, //#endregion //#region getValueFromHash getValueFromHash: function (href, key, defaultValue) { if (defaultValue == null) defaultValue = ""; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?#]" + key + "=([^##]*)"); var qs = regex.exec(href); if (qs == null) return defaultValue; else return qs[1]; }, //#endregion //#region updateLocation updateLocation: function (location, key, value, isUpdateHash) { var regex; var urlPart; if (isUpdateHash) { regex = new RegExp("([#|&])" + key + "=.*?(#|$)", "i"); urlPart = location.hash; } else { regex = new RegExp("([?|&])" + key + "=.*?(&|$)", "i"); urlPart = location.search; } var result; if (urlPart.match(regex)) { result = urlPart.replace(regex, '$1' + key + "=" + value + '$2'); } else { var linkedChar = isUpdateHash ? '#' : '?'; if (urlPart.indexOf(linkedChar) >= 0) linkedChar = '&'; result = urlPart + linkedChar + key + "=" + value; } if (isUpdateHash) { location.hash = result; } else { location.search = result; } }, //#endregion //#region initSubmitForm initSubmitForm: function (form$, btnSubmit$, submitSuccessCallBack, failedCallBack, setFocus, beforeSend) { if (setFocus == null) { setFocus = true; } var inputs = $('input[type!="hidden"]', form$).focus(function () { var parent = $(this).parent(); if (parent.hasClass("field-c")) { parent.addClass("focus"); } var errortip = $(this).next().next(); var position = $(this).position(); errortip.css("left", position.left).css("top", position.top + 30); if (errortip.hasClass("error-tip") && errortip.find(">p:first").html() != "" && $(this).attr("tagName") != "SELECT") { errortip.show(); } }).blur(function () { $(this).parent().removeClass("focus"); var errortip = $(this).next().next(); if (errortip.hasClass("error-tip")) { errortip.hide(); } }).bind("validate-error", function (event, error, container) { container.next().find(">p:first").html(error.html()); if (container.parent().hasClass("focus") && $(this).attr("tagName") != "SELECT") { container.next().show(); } }).bind("validate-success", function (event, error, container) { container.next().hide().find(">p:first").html(""); }).keydown(function (event) { if (event.keyCode == 13) { $(this).blur(); // prevent the button.click run 2 times btnSubmit$.click(); } }); if (setFocus) { inputs.each(function () { var this$ = $(this); if (!this$.attr("readonly") && !this$.attr("disabled")) { this$.focus(); return false; //break } }); } var currentForm = form$.validate().currentForm; var errorTip = $(''); $(currentForm).find("span.field-validation-valid").click(function () { $(this).prev().focus(); }).after(errorTip); btnSubmit$.click(function (event) { if (!event.isPropagationStopped() && form$.valid() && !btnSubmit$.hasClass("disabled")) { if (beforeSend) { if (!beforeSend()) { event.stopPropagation(); event.preventDefault(); return; } } btnSubmit$.attr("disabled", "disabled").addClass("disabled"); var url = form$.attr("action"); utility.service(url, form$.serialize(), function (result) { btnSubmit$.removeAttr("disabled").removeClass("disabled"); submitSuccessCallBack(result); }, function (result) { if (result && result._err) { var btn = {}; btn[l.OK] = function () { dialog.close(); if (failedCallBack) { failedCallBack(result); } }; dialog.error(l.Message, result._err, btn); } btnSubmit$.removeAttr("disabled").removeClass("disabled"); }); } event.stopPropagation(); event.preventDefault(); }).removeAttr("disabled"); }, //#endregion //#region getCultureUrl getCultureUrl: function (url) { if (url.indexOf("http") == 0) { //do nothing; } else { var culUrl = "/" + gv.lang + "/"; if (url.indexOf(culUrl) != 0) { url = culUrl + url; } } return url; }, //#endregion //#region service service: function (url, parameter, successCallBack, errorCallBack, type) { // if (utility.stopRequest) { // return; // } var paramObj = { url: url, cache: false, data: parameter, async: true, // traditional: true, success: function (response) { // this response is a json object // if (utility.stopRequest) { // return; // } if (response == "" || response == null) { response = null; } else { if (response._sl) { //Session lost, reload current page windowSync.setSessionLost(response._err); return; } else if (response._err) { if (errorCallBack) { errorCallBack(response); } else { dialog.error(l.Message, response._err); } return; } } if (successCallBack) { successCallBack(response); } response = null; }, error: function (jqXHR, textStatus, exception) { if (errorCallBack) { errorCallBack(jqXHR, textStatus, exception); } else if (jqXHR.responseText) { alert(jqXHR.responseText); } else { //alert("[Debug][Ajax Error]" + this.url); //TODO:Remove this dialog //debugger; } } }; if (type == "GET") { paramObj.type = "GET"; } else { paramObj.type = "POST"; } paramObj.url = utility.getCultureUrl(paramObj.url); // if (responseDataType) { // var dataTypeObj = { // dataType: responseDataType // }; // $.extend(paramObj, dataTypeObj); // } return $.ajax(paramObj); } //#endregion //#region sessionLost , sessionLost: function (msg) { if (!$("body").hasClass("login")) { return; } var button = {}; button[l.OK] = function () { windowSync.setlogout(); }; dialog.error(l.Message, msg, button); } //#endregion //#region reloadImg , reloadImg: function (img$) { try { var src = img$.attr("src").split("?")[0] + "?r=" + Math.random(); img$.attr('src', src); } catch (e) { img$.attr('src', ''); } } //#endregion //#region showPopUp , showPopUp: function (url, title, width, height) { var livechatUrl = utility.getCultureUrl("home/livechat"); $("#popup").remove(); var $div = window.top.$(''); $div.html(''); $div.css("width", width); $div.find("iframe").css("width", width); $div.dialog({ height: height, width: width, resizable: false, modal: true, title: title, dialogClass: 'popup' }).parent().find(">div.ui-dialog-titlebar>span").after('' + l.lc + ''); } //#endregion //#region showPopUp Form , showPopUpForm: function (url, id, title, width, height) { $("#popup").remove(); var $div = window.top.$(''); $div.html(''); $div.css("width", width); $div.find("iframe").css("width", width); $div.dialog({ height: height, width: width, resizable: false, modal: true, title: title, dialogClass: 'popup' }); } //#endregion //#region V9 Dialog , showV9Dialog: function (url, title, width, height) { $("#popup").remove(); var $div = window.top.$(''); $div.html(''); $div.css("width", width); $div.find("iframe").css("width", width); $div.dialog({ height: height, width: width, resizable: false, modal: true, title: title, closeOnEscape: false, dialogClass: 'popup' }).parent().find(">div.ui-dialog-titlebar>span"); $("#v9-dialog-content").parent().attr("id", "v9-dialog"); $("#v9-dialog-content").prev().attr("id", "v9-dialog-header"); $(".ui-widget-overlay").click(function () { //$("#v9-dialog-header").find("button").click(); window.location = window.location.href.split("?")[0]; }); } //#endregion //#region closePopUp , closePopUp: function () { window.top.$("#popup").dialog("close").remove(); } //#endregion //#region openWindow , openWindow: function (url, name, width, height) { var x = 0, y = 0, w = 800, h = 600; // default value: width=800, height=600 if (width) w = width; if (height) h = height; try { x = (screen.width - w) / 2; y = (screen.height - h) / 2; } catch (e) { } var features = "resizable=1, scrollbars=1, left=" + x + ", top=" + y + ", width=" + w + ", height=" + h; var hostname = document.location.hostname.replace(/\./g, ""); // remove dot from hostname var win = window.top.open(url, hostname + name, features); win.focus(); windowSync.regChildWindow(win); return win; } //#endregion }; //#endregion //#region dialog var dialog = { openned: false, //#region close close: function () { window.top.$('#dialog').dialog("close").remove(); dialog.openned = false; } //#endregion //#region _getHTML , _getHTML: function (htmlArray) { if (htmlArray.join) { return "" + htmlArray.join("") + ""; } else { return "" + htmlArray + ""; } } //#endregion //#region _show , _show: function (title, messageHtml, buttons) { var _buttons; if (buttons.each) { _buttons = {}; buttons.each(function () { var href = $(this).attr("href"); _buttons[$(this).html()] = function () { window.location.href = href; }; }); } else { _buttons = buttons; } dialog.close(); var $div = window.top.$(''); $div.html('' + messageHtml + ''); $div.dialog({ resizable: false, modal: true, buttons: _buttons, title: title, dialogClass: 'dialog', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, amlVerificationWithdrawal: function (title, messageHtml, buttonYesUrl, buttonNoUrl) { dialog.close(); var $div = window.top.$(''); $div.html('' + messageHtml + ''); $div.dialog({ resizable: false, modal: true, buttons: [{ text: l.Yes, "class": "btn", style: "min-width:160px;", click: function () { window.location.href = buttonYesUrl; } }, { text: l.No, "class": "btn", style: "min-width:160px;", click: function () { window.location.href = buttonNoUrl; } }], title: title, dialogClass: 'dialog', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, _showV9Registrations: function (title, message) { dialog.close(); var $div = window.top.$(''); $div.html('' + message + ''); $div.dialog({ resizable: false, modal: true, buttons: [{ text: l.No, "class": "btn", style: "min-width:160px;", click: function () { window.location.href = '/' + gv.lang + '/'; window.top.$('.dialog-IndoMarket').remove(); window.top.$('.dialog-CambodiaMarket').remove(); } }, { text: l.Yes, "class": "btn btn-cancel", style: "min-width:160px;", click: function () { window.location.href = '/' + gv.lang + '/deposit'; window.top.$('.dialog-IndoMarket').remove(); window.top.$('.dialog-CambodiaMarket').remove(); } }], title: title, dialogClass: 'dialog', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, v9IndoMarket: function (arrtMsg, url) { window.top.$('.dialog-IndoMarket').remove(); var textMessagePopUp = arrtMsg; var $div = window.top.$(''); $div.html('' + textMessagePopUp.Message + ''); $div.dialog({ resizable: false, modal: true, buttons: [{ text: textMessagePopUp.ButtonYes, "class": "btn", style: "min-width:160px;", click: function () { window.open(url); window.top.$('.dialog-IndoMarket').remove(); } }, { text: textMessagePopUp.ButtonNo, "class": "btn btn-cancel", style: "min-width:160px;", click: function () { window.top.$('.dialog-IndoMarket').remove(); } }], title: textMessagePopUp.Title, dialogClass: 'dialog dialog-IndoMarket', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, v9CambodiaMarket: function (arrtMsg, url) { window.top.$('.dialog-CambodiaMarket').remove(); var textMessagePopUp = arrtMsg; var $div = window.top.$(''); $div.html('' + textMessagePopUp.Message + ''); $div.dialog({ resizable: false, modal: true, buttons: [{ text: textMessagePopUp.ButtonYes, "class": "btn", style: "min-width:160px;", click: function () { window.open(url); window.top.$('.dialog-CambodiaMarket').remove(); } }, { text: textMessagePopUp.ButtonNo, "class": "btn btn-cancel", style: "min-width:160px;", click: function () { window.top.$('.dialog-CambodiaMarket').remove(); } }], title: textMessagePopUp.Title, dialogClass: 'dialog dialog-CambodiaMarket', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, _showV9: function (title, messageHtml, color) { window.top.$("#v9-dialog-header").find("button").click(); var $div = window.top.$(''); $div.html('' + messageHtml + ''); $div.dialog({ resizable: false, modal: true, title: title, closeOnEscape: false, dialogClass: 'popup', minWidth: 600, minHeight: 120 }).parent().find(">div.ui-dialog-titlebar>span"); dialog.openned = true; window.top.$("#v9-dialog-content-msg").parent().attr("id", "v9-dialog-msg"); window.top.$("#v9-dialog-content-msg").prev().attr("id", "v9-dialog-header-msg"); if (color !== "") { var bgCss = "background:" + color + " !important"; window.top.$("#v9-dialog-header-msg").attr("style", bgCss); } }, //#endregion //#region CIV-139 Withdrawal Bonus Churn _showPromotionBonusChurnUnfulfilled: function (title, message) { dialog.close(); var $div = window.top.$(''); $div.html('' + message + ''); $div.dialog({ resizable: false, modal: true, buttons: [{ text: l.OK, "class": "btn", style: "min-width:160px;", click: function () { dialog.close(); } }, { text: l.Statement, "class": "btn btn-cancel", style: "min-width:160px;", click: function () { window.location.href = '/' + gv.lang + '/Statement' + '/ModulePromotion'; } }], title: title, dialogClass: 'dialog', minWidth: 400, minHeight: 160 }); dialog.openned = true; }, //#endregion //#region info info: function (title, messageHtml, buttons) { if (messageHtml == null) { messageHtml = l.UpdatedSuccess; } if (buttons == null) { buttons = {}; buttons[l.OK] = function () { dialog.close(); }; } dialog._show(title, '' + dialog._getHTML(messageHtml), buttons); }, infoV9: function (title, messageHtml, color) { if (messageHtml == null) { messageHtml = l.UpdatedSuccess; } dialog._showV9(title, dialog._getHTML(messageHtml), color); }, //#endregion //#region error error: function (title, messageHtml, buttons) { if (messageHtml == null) { messageHtml = l.UpdatedSuccess; } if (buttons == null) { buttons = {}; buttons[l.OK] = function () { dialog.close(); }; } dialog._show(title, '' + dialog._getHTML(messageHtml), buttons); }, //#endregion //#region confirm confirm: function (title, messageHtml, buttons) { if (messageHtml == null) { messageHtml = l.UpdatedSuccess; } if (buttons == null) { buttons = {}; buttons[l.OK] = function () { dialog.close(); }; } dialog._show(title, '' + dialog._getHTML(messageHtml), buttons); } //#endregion //#region infoMessaging ,infoMessaging: function (title, messageHtml, buttons, closeAction) { if (messageHtml == null) { messageHtml = l.UpdatedSuccess; } if (buttons == null) { buttons = {}; buttons[l.OK] = function () { dialog.close(); }; } if (closeAction == null) { closeAction = function () { dialog.close(); }; } dialog._showMessaging(title, '' + dialog._getHTML(messageHtml), buttons, closeAction); }, //#endregion //#region _showMessaging _showMessaging: function (title, messageHtml, buttons, closeAction) { var _buttons; if (buttons.each) { _buttons = {}; buttons.each(function () { var href = $(this).attr("href"); _buttons[$(this).html()] = function () { window.location.href = href; }; }); } else { _buttons = buttons; } dialog.close(); var $div = window.top.$(''); $div.html('' + messageHtml + ''); $div.dialog({ resizable: false, modal: true, buttons: _buttons, title: title, dialogClass: 'dialog dialogMessaging', minWidth: 400, minHeight: 160, close: function (event, ui) { closeAction(); } }); dialog.openned = true; }, //#endregion }; //#endregion function MobileBannerLink() { var TypeVersion = null; var isMobile = { Android: function () { TypeVersion = "Android"; return navigator.userAgent.match(/Android/i); }, BlackBerry: function () { TypeVersion = "BlackBerry"; return navigator.userAgent.match(/BlackBerry/i); }, iOS: function () { TypeVersion = "iPhone"; return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function () { TypeVersion = "Opera"; return navigator.userAgent.match(/Opera Mini/i); }, Windows: function () { TypeVersion = "IEMobile"; return navigator.userAgent.match(/IEMobile/i); }, Kinde: function () { TypeVersion = "Kindle"; return navigator.userAgent.match(/kindle/i); }, any: function () { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows() || isMobile.Kinde()); }, Tablet: function () { if (isMobile.any() && (navigator.userAgent.match(/iPad/i) || !navigator.userAgent.match(/Mobile/i) || navigator.userAgent.match("/Tablet/i"))) { return true; } return false; }, }; if (isMobile.any()) { $('#mobile-url-banner').css("right", "12%"); } utility.service("IntegrationService/GetV9MobileUrl", null, function (result) { $('#mobileThumbBanner').attr("href", result); } ); if (isMobile.Tablet() && document.cookie.toString().indexOf("isv9betMobile") <= -1 && document.cookie.toString().indexOf("isStayDesktop") <= -1) { //alert(navigator.userAgent); $("#close-dialog").click(function () { $("#redirectConfirm").fadeOut("slow"); }); $(".btn-green.desktop").click(function () { document.cookie = "isStayDesktop=true;" $("#redirectConfirm").fadeOut("slow"); }); $(".btn-green.mobile").click(function () { window.location.href = $('#mobileThumbBanner').attr("href"); }); $("#redirectConfirm").fadeIn("slow"); } } function getUrlQueryVars(url) { var vars = [], hash; var hashes = url.slice(url.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } //$(window).load(function () { // var cssurl = $('#comcss')[0].href; // var cdnversion = getUrlQueryVars(cssurl)["v"]; // // $("*").filter(function () { // return $(this).css('background').indexOf('url') >= 0 || $(this).css('background-image').indexOf('url') >= 0; // }).each(function (index, element) { // var check = $(this).css('background').indexOf('url') >= 0 ? 0 : 1; // var background = check == 0 ? $(this).css('background') : $(this).css('background-image'); // // var indexStar = background.indexOf('url'); // var firstBackground = background.substr(indexStar); // var indexEnd = firstBackground.indexOf('")'); // firstBackground = firstBackground.substr(0, indexEnd); // var url = firstBackground + '?v=' + cdnversion; // background = background.replace(firstBackground, url); // // if (check == 0) { // $(this).css('background', background); // } // else { // $(this).css('background-image', background); // } // }); //}); //#region document.ready $(function () { MobileBannerLink(); //#region Fix the z-index issues in IE7 for sticky live chat var zIndexNumber = 3000; try { if (ThemeType != "v2") { zIndexNumber = 1000; } } catch (e) { } // Put your target element(s) in the selector below! $("div").each(function () { if (zIndexNumber < 0) { zIndexNumber = 3000; } $(this).css('zIndex', zIndexNumber); //For Playtech Agaming if ($(this).hasClass("playtech-agaming")) { zIndexNumber = 3000; } zIndexNumber -= 10; }); //#endregion //#region Sticky Live Chat $("#stickyLiveChat").mouseover(function () { $(this).animate({ height: 300 }, 300); $("#mobileThumbBanner").animate({ bottom: 310 }, 300); $("#CountDownContent").animate({ bottom: 385 }, 300); }).mouseout(function () { $(this).animate({ height: 65 }, 400); $("#mobileThumbBanner").animate({ bottom: 75 }, 400); $("#CountDownContent").animate({ bottom: 150 }, 400); }); //#endregion //#region Ajax Loading $('#loading, .load').hide().ajaxStart(function () { $(this).show(); }).ajaxStop(function () { $(this).hide(); }); //#endregion //#region Language $("#sel-language>div.languageDisplay").click(function (event) { $("#language").toggleClass("hidden"); event.stopPropagation(); event.preventDefault(); }); if ($("#sel-language")[0]) { time $("body").click(function () { $("#language").addClass("hidden"); }); } //#endregion //#region Date and Time var time$ = $("#time"); if (time$.length > 0) { $("#time").html(($("body").hasClass("v9bet")) ? uv.t.toDateTimeString().split('|')[1] : uv.t.toDateTimeString()); $("#timezone").html("(" + uv.tz + ")"); window.setInterval(function () { }, 1000); } window.setInterval( function () { try { var now = new Date(new Date() - uv.gap); var toDateTime = now.toDateTimeString(); $("#time").html(($("body").hasClass("v9bet")) ? toDateTime.split('|')[1] : toDateTime); } catch (e) { } } , 1000); if ($.datepicker && gv) { $.datepicker.setDefaults($.datepicker.regional[gv.lang]); } //#endregion //#region document.click $(document).click(function (event) {//For popup and window.open var srcElement; if (event.srcElement) { srcElement = event.srcElement; } else { srcElement = event.target; } if (srcElement.tagName.toLowerCase() != "a") { srcElement = $(srcElement).parent()[0]; } if (srcElement.tagName && srcElement.tagName.toLowerCase() == "a") { var par = $(srcElement).attr("data-window"); var tokens; if (par) { event.preventDefault(); tokens = par.split("|"); //myaccount|976|600|a-l|please click this button after you login if (tokens[3] && tokens[3] == "a-l") {//after login if (!$("body").hasClass("login")) { dialog.error(l.Message, tokens[4]); return; } } utility.openWindow($(srcElement).attr("href"), tokens[0], tokens[1], tokens[2]); return; } par = $(srcElement).attr("data-dialog"); if (par) { event.preventDefault(); tokens = par.split("|"); //Join Us|976|600|a-l|please click this button after you login if (tokens[3] && tokens[3] == "a-l") {//after login if (!$("body").hasClass("login")) { dialog.error(l.Message, tokens[4]); return; } } utility.showPopUp($(srcElement).attr("href"), tokens[0], tokens[1], tokens[2]); return; } par = $(srcElement).attr("data-dialog-form"); if (par) { event.preventDefault(); tokens = par.split("|"); //Join Us|976|600|a-l|please click this button after you login if (tokens[4] && tokens[4] == "a-l") {//after login if (!$("body").hasClass("login")) { dialog.error(l.Message, tokens[5]); return; } } utility.showPopUpForm($(srcElement).attr("href"), tokens[0], tokens[1], tokens[2], tokens[3]); return; } //New Dialog UI par = $(srcElement).attr("data-v9dialog"); if (par) { event.preventDefault(); tokens = par.split("|"); //Join Us|976|600|a-l|please click this button after you login if (tokens[3] && tokens[3] == "a-l") {//after login if (!$("body").hasClass("login")) { dialog.error(l.Message, tokens[4]); return; } } utility.showV9Dialog($(srcElement).attr("href"), tokens[0], tokens[1], tokens[2]); return; } //New Dialog UI } }); //#endregion //#region Set Max Length $("input[data-val-length-max]").each(function () { var $this = $(this); $this.attr("maxlength", $this.attr("data-val-length-max")); }); //#endregion //#region Show/Hide Terms & Conditions $("h4.t-c").click(function () { var $this = $(this); $this.next().slideToggle(); $this.parent().toggleClass("show-hide"); }); //#endregion //#region viet cash popup $("#vc").click(function () { $("#VietCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet atm popup $("#va").click(function () { $("#VietATM").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet Internet popup $("#vi").click(function () { $("#VietInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region ACB Cash popup $("#ac").click(function () { $("#ACBCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region ACB Cash popup $("#aa").click(function () { $("#ACBatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region ACB Internet popup $("#ainternet").click(function () { $("#ACBInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#dc").click(function () { $("#DCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#da").click(function () { $("#Datm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#di").click(function () { $("#DInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#sc").click(function () { $("#SCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#sa").click(function () { $("#SAtm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#si").click(function () { $("#SInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet Internet popup $("#bi").click(function () { $("#BIDVInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#bc").click(function () { $("#BIDVCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#ba").click(function () { $("#BIDVAtm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet Internet popup $("#mi").click(function () { $("#miInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#mc").click(function () { $("#mcCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#ma").click(function () { $("#maAtm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet Internet popup $("#ti").click(function () { $("#tiInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#tc").click(function () { $("#tcCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#ta").click(function () { $("#taAtm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region viet Internet popup $("#vbi").click(function () { $("#vbiInternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#vbc").click(function () { $("#vbcCash").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Dong Cash popup $("#vba").click(function () { $("#vbaAtm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region First Cagayan Cert Popup $("#firstCagayanLink").click(function () { $("#firstCagayanCert").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region First Cagayan Cert Popup $("#ImportantNotice").click(function () { $("#ImportantNoticeDetails").dialog({ height: 550, width: 860, modal: true }); }); //#endregion /************************************************************* *** THAI BANKS *** *************************************************************/ //#region bangkok bank atm popup $("#bkka").click(function () { $("#bkkatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region bangkok bank Internet popup $("#bkki").click(function () { $("#bkkinternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region kasikorn bank atm popup $("#kasikorna").click(function () { $("#kasikornatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region kasikorn bank Internet popup $("#kasikorni").click(function () { $("#kasikorninternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region krungsri atm popup $("#krungsria").click(function () { $("#krungsriatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region krungsri internet banking popup $("#krungsrii").click(function () { $("#krungsriinternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Krungthai atm popup $("#ktbi").click(function () { $("#ktbinternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region Krungthai internet banking popup $("#ktba").click(function () { $("#ktbatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region siam commercial atm popup $("#scbi").click(function () { $("#scbinternet").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //#region siam commercial internet banking popup $("#scba").click(function () { $("#scbatm").dialog({ height: 550, width: 820, modal: true }); }); //#endregion //DeepLinkPromotion deepLink(); //End DeepLinkPromotion if ($('#vipTab').hasClass('active')) { $('#imgWhite').css('display', 'none'); $('#imgYellow').css('display', 'block'); } else { $('#vipTab').mouseover(function () { $('#imgWhite').css('display', 'none'); $('#imgYellow').css('display', 'block'); }); $('#vipTab').mouseout(function () { $('#imgWhite').css('display', 'block'); $('#imgYellow').css('display', 'none'); }); }; }); //#endregion // Read a page's GET URL variables and return them as an associative array. function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } function deepLink() { try { if (dL != undefined) { if (dL.length > 0 && dL != null) { $('#' + dL + ' .terms-con-c').removeClass('show-hide'); if ($('body').hasClass('login')) { if (dL.substring(3, 6) == "PUB") { $('#personalPromo').removeClass("left-Active"); $('#personalPromo').addClass("left-notActive"); $(this).removeClass("right-notActive"); $(this).addClass("right-Active"); $('#personal-promo').addClass("hide-default"); $('#public-promo').removeClass("hide-default"); } else { $('#publicPromo').removeClass("right-Active"); $('#publicPromo').addClass("right-notActive"); $(this).removeClass("left-notActive"); $(this).addClass("left-Active"); $('#public-promo').addClass("hide-default"); $('#personal-promo').removeClass("hide-default"); } } $('html, body').animate({ scrollTop: $('#' + dL).offset().top }, 2000); } } } catch (e) { } } //function isWorldCup() { // if (document.referrer == "") { // window.location.href = "/" + gv.lang + "/WorldCup/Highlights"; // } //} //isWorldCup(); function RestrictedMarket(isActive, idv) { var restrictedClass = idv.activeClass; var returnVal = false $("#BeforeLogin").addClass(restrictedClass); $("#BeforeLoginWithCaptcha").addClass(restrictedClass); if (isActive) { if (RestrictedTimeCambodia()) { if (idv.countryCode == "KH" || idv.cultureName == "km-kh") { RestrictedRegistration(true, restrictedClass); RestrictedNotificationBLCambodia(); returnVal = true; } else { RestrictedRegistration(false, restrictedClass); } if (idv.currencyCode == "USD") { RestrictedNotificationALCambodia(); } } else if (RestrictedTime()) { if (idv.countryCode == "ID" || idv.cultureName == "id-id") { RestrictedRegistration(true, restrictedClass); RestrictedNotificationBL(); returnVal = true; } else { RestrictedRegistration(false, restrictedClass); } if (idv.currencyCode == "IDR") { RestrictedNotificationAL(); } } else { RestrictedRegistration(false, restrictedClass); } } else { RestrictedRegistration(false, restrictedClass); } return returnVal; } function RestrictedTime() { var currentDate = new Date(new Date() - uv.gap); var timeOffset = currentDate.getTime() + ((currentDate.getTimezoneOffset() * 60 * 1000) + uv.gap); var memberTimeGMT0 = new Date(timeOffset); //timeZoneMember GMT0 var memberTimeGMTMin4 = new Date(timeOffset + (-240 * 60 * 1000)); //timeZoneMember GMT-4 (member) var serverTimeGMTMin4 = new Date('Dec 01 2018 00:00:00'); //timeZoneBO GMT-4 (server) //var serverTimeGMTMin4 = new Date('Nov 25 2018 00:00:00'); if (memberTimeGMTMin4 >= serverTimeGMTMin4) { return true; } else { return false; } } function RestrictedTimeCambodia() { var currentDate = new Date(new Date() - uv.gap); var timeOffset = currentDate.getTime() + ((currentDate.getTimezoneOffset() * 60 * 1000) + uv.gap); var memberTimeGMT0 = new Date(timeOffset); //timeZoneMember GMT0 var memberTimeGMTMin4 = new Date(timeOffset + (-240 * 60 * 1000)); //timeZoneMember GMT-4 (member) var serverTimeCambodiaGMTMin4 = new Date('Dec 01 2019 00:00:00'); //timeZoneBO GMT-4 (server) //var serverTimeGMTMin4 = new Date('Nov 25 2018 00:00:00'); if (memberTimeGMTMin4 >= serverTimeCambodiaGMTMin4) { return true; } else { return false; } } function RestrictedNotificationBL() { var valCookie = "v9IndoMarketBL"; var currentCookie = document.cookie; var flagCookie = getCookie(valCookie); var addCookie = ""; if (flagCookie == "") { addCookie = valCookie + "=true; " + currentCookie; dialog.v9IndoMarket(textIndogMarketBL[gv.lang], 'https://www.188hero.com'); document.cookie = addCookie; } } function RestrictedNotificationBLCambodia() { var valCookie = "v9CambodiaMarketBL"; var currentCookie = document.cookie; var flagCambodiaCookie = getCookie(valCookie); var addCookie = ""; if (flagCambodiaCookie == "") { addCookie = valCookie + "=true; " + currentCookie; dialog.v9CambodiaMarket(textCambodiaMarketBL[gv.lang], 'https://aff.188bet.com/59477/Player'); document.cookie = addCookie; } } function RestrictedNotificationAL() { var valCookie = "v9IndoMarketAL"; var currentCookie = document.cookie; var flagCookie = getCookie(valCookie); var addCookie = ""; if (flagCookie == "") { addCookie = valCookie + "=true; " + currentCookie; dialog.v9IndoMarket(textIndogMarketAL[gv.lang], 'https://www.188hero.com'); document.cookie = addCookie; } } function RestrictedNotificationALCambodia() { var valCookie = "v9CambodiaMarketAL"; var currentCookie = document.cookie; var flagCambodiaCookie = getCookie(valCookie); var addCookie = ""; if (flagCambodiaCookie == "") { addCookie = valCookie + "=true; " + currentCookie; dialog.v9CambodiaMarket(textCambodiaMarketAL[gv.lang], 'https://aff.188bet.com/59477/Player'); document.cookie = addCookie; } } function RestrictedRegistration(isActive, restrictedClass) { var $this = $("." + restrictedClass); $this.each(function () { if (!$(this).hasClass("hidden")) { var activeID = this.id; console.log(isActive); if (isActive) { $(this).addClass("true"); $(this).find('[data-col]').each(function () { if ($(this).attr("data-col")) { $(this).attr("class", ""); if (activeID == "BeforeLogin") { $(this).css({ 'width': '50%', 'float': 'left' }); } else if (activeID == "BeforeLoginWithCaptcha") { $(this).css({ 'width': '33%', 'float': 'left' }); } } }); } else { $(this).addClass("false"); $(this).find('[data-col]').each(function () { if ($(this).attr("data-col") == "restricted") { $(this).attr("style", "display:block !important;"); } }); //$("#affRegister").attr("style", "display:block !important;"); } } }); } function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c_start, c_end)); } } return ""; } function constructParams() { if (typeof (lpTag) != 'undefined') { lpTag.sdes = []; lpTag.sdes.push({ "type": "ctmrinfo", //MANDATORY "info": { "cstatus": "", //MEMBER LOGIN STATUS "ctype": "", //VIP LEVEL "customerId": "", //LOGINNAME "balance": 0, //NOT USED "currency": "", //CURRENCY "socialId": "", //QQID "imei": "", //NOT USED "userName": "", //NOT USED "companySize": 0, //NOT USED "companyBranch": "", //ADDRESS "accountName": "", //NOT USED "role": "", //NOT USED "lastPaymentDate": { "day": 0, //NOT USED "month": 0, //NOT USED "year": 0 //NOT USED }, "registrationDate": { "day": 0, //NOT USED "month": 0, //NOT USED "year": 0 //NOT USED }, "storeNumber": "", //IP OR REGION "storeZipCode": "" //NOT USED } }); lpTag.sdes.push({ "type": "personal", //MANDATORY "personal": { "firstname": "", //FIRST NAME "lastname": "", //LAST NAME "age": { "age": 0, //NOT USED "year": 0, //NOT USED "month": 0, //NOT USED "day": 0 //NOT USED }, "contacts": [{ "email": "", //EMAIL "phone": "" //CONTACT NUMBER }], "gender": "", //GENDER "language": "", //LANGUAGE "company": "" //NOT USED } }); } } $(document).ready(function () { if (!($("body").hasClass("launchKenoGC") && $("body").hasClass("keno-popup")) && $("body").find("#UploadReceiptStatement").length < 1) { RestrictedMarket(true, idv); } if ($('body').hasClass("login")) { utility.service("MemberService/GetMemberLastLoginTime", null, function (result) { lastLoginTime = result }); if ($("span#total-messages").length > 0) { $("span#total-messages").text(0); $(".site-messages > i").removeClass("alert"); } utility.service("MessageService/GetCountUnReadMessage", null, function (result) { if (result > 0) { $("ul.dropdown-menu li#message a span").text($("ul.dropdown-menu li#message a span").html() + " (" + result + ")"); if ($("li #message_messageinbox > a > span").length) { $("li #message_messageinbox > a > span").text($("li #message_messageinbox > a > span").html() + " (" + result + ")"); } if ($("span#total-messages").length > 0) { $("span#total-messages").text(result); $(".site-messages > i").addClass("alert"); } } }); }; constructParams(); setCookiesMonitoringLivePerson(); var isUpdate = $.cookie('isUpdate'); var status = $.cookie('statusLogin'); if (isUpdate == "true") { if (status == "Login_Yes") UpdateStatusForLogin(); else UpdateStatusForNotLogin(); } $(".btnLivePersonDirect").click(function (e) { e.preventDefault(); var url = ""; var memberName = uv.l != undefined ? uv.l.mn != '' ? '&VISITORVAR!identifier=' + uv.l.mn : '' : ''; var isLogin = $("body").hasClass("login") ? "Login_Yes" : "Login_No"; var loginTime = lastLoginTime.replace(" ", "%20"); var lastLoginTimes = $("body").hasClass("login") ? loginTime : '-'; switch (gv.lang) { case "vi-vn": url = 'https://server.iad.liveperson.net/hc/19397439/?cmd=file&file=visitorWantsToChat&site=19397439&SESSIONVAR!skill=V9Bet&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/Gaming/2b#memberName&VISITORVAR!survey7973011=#isLogin&VISITORVAR!survey7973012=#loginTime&referrer='; url = url.replace('#memberName', memberName).replace('#isLogin', isLogin).replace('#loginTime', lastLoginTimes); var lpButtonCTTUrl = url + escape(document.location); lpButtonCTTUrl = (typeof (lpAppendVisitorCookies) != 'undefined' ? lpAppendVisitorCookies(lpButtonCTTUrl) : lpButtonCTTUrl); lpButtonCTTUrl = ((typeof (lpMTag) != 'undefined' && typeof (lpMTag.addFirstPartyCookies) != 'undefined') ? lpMTag.addFirstPartyCookies(lpButtonCTTUrl) : lpButtonCTTUrl); window.open(lpButtonCTTUrl, 'chat19397439', 'width=475,height=400,resizable=yes'); return false; break; case "km-kh": url = 'https://server.iad.liveperson.net/hc/19397439/?cmd=file&file=visitorWantsToChat&site=19397439&SESSIONVAR!skill=V9BET%20Khmer&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/#memberName&VISITORVAR!survey7973011=#isLogin&VISITORVAR!survey7973012=#loginTime&referrer='; url = url.replace('#memberName', memberName).replace('#isLogin', isLogin).replace('#loginTime', lastLoginTimes); window.open(url + escape(document.location), 'chat19397439', 'width=475,height=400,resizable=yes'); return false; break; case "th-th": url = 'https://server.iad.liveperson.net/hc/19397439/?cmd=file&file=visitorWantsToChat&site=19397439&SESSIONVAR!skill=V9Bet%20Thai&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/#memberName&VISITORVAR!survey7973011=#isLogin&VISITORVAR!survey7973012=#loginTime&referrer='; url = url.replace('#memberName', memberName).replace('#isLogin', isLogin).replace('#loginTime', lastLoginTimes); window.open(url + escape(document.location), 'chat19397439', 'width=475,height=400,resizable=yes'); return false; break; case "id-id": url = 'https://server.iad.liveperson.net/hc/19397439/?cmd=file&file=visitorWantsToChat&site=19397439&SESSIONVAR!skill=V9BET%20Indo&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/#memberName&VISITORVAR!survey7973011=#isLogin&VISITORVAR!survey7973012=#loginTime&referrer='; url = url.replace('#memberName', memberName).replace('#isLogin', isLogin).replace('#loginTime', lastLoginTimes); window.open(url + escape(document.location), 'chat19397439', 'width=475,height=400,resizable=yes'); return false; break; default: url = 'https://server.iad.liveperson.net/hc/19397439/?cmd=file&file=visitorWantsToChat&site=19397439&SESSIONVAR!skill=V9Bet%20English&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/#memberName&VISITORVAR!survey7973011=#isLogin&VISITORVAR!survey7973012=#loginTime&referrer='; url = url.replace('#memberName', memberName).replace('#isLogin', isLogin).replace('#loginTime', lastLoginTimes); window.open(url + escape(document.location), 'chat19397439', 'width=475,height=400,resizable=yes'); return false; break; } }); //set Title for LivePerson switch (gv.lang) { case "vi-vn": $('.btnLivePersonDirect').attr('title', 'Trò chuyện trực tuyến'); break; case "km-kh": $('.btnLivePersonDirect').attr('title', 'ជជែកផ្ទាល់'); break; case "th-th": $('.btnLivePersonDirect').attr('title', 'สนทนา'); break; default: $('.btnLivePersonDirect').attr('title', 'Live Chat'); break; } }); var textIndogMarketBL = { "en-gb": { Title: "Important Notice", Message: "V9BET is no longer accepting new registrants from Indonesia with effect from Dec 1, 2018 (GMT-4). If you are looking to sign up with another online bookmaker, we recommend you visit 188BET.", ButtonYes: "Go to 188BET", ButtonNo: "Stay on this page" }, "id-id": { Title: "Pengumuman Penting", Message: "V9BET tidak lagi menerima pendaftaran baru dari negara Indonesia mulai tanggal 1 Desember 2018 (GMT -4). Jika Anda membutuhkan tempat taruhan online terpercaya lainnya, kami merekomendasikan Anda untuk mengunjungi situs 188BET.", ButtonYes: "Menuju situs 188BET", ButtonNo: "Tetap di halaman ini" }, "km-kh": { Title: "សេចក្តីជូនដំណឹង", Message: "V9BET មិនទទួលយកការចុះឈ្មោះសមាជិកថ្មីពីប្រទេសឥណ្ឌូនេស៊ីទៀតទេ ដែលនឹងចាប់ពីថ្ងៃទី 1 ខែធ្នូឆ្នាំ 2018 (GMT -4) ។ ប្រសិនបើលោកអ្នកចង់ធ្វើការចុះឈ្មោះជាមួយគេហទំព័រភ្នាល់តាមអនឡាញផ្សេងទៀតយើងសូមណែនាំឱ្យអ្នកចូលមើលគេហទំព័រ188BET ។", ButtonYes: "ទៅកាន់គេហទំព័រ 188BET", ButtonNo: "រក្សាការនៅលើទំព័រនេះ" }, "vi-vn": { Title: "Thông báo quan trọng", Message: "V9BET hiện không hỗ trợ thành viên mới đăng ký từ Quốc Gia Indonesia, từ ngày 1 tháng 12 năm 2018 (GMT-4). Nếu Quý Khách đang tìm kiếm trang cá cược trực tuyến khác để đăng ký và tham gia, chúng tôi khuyến khích Quý Khách thử trải nghiệm trang web 188BET.", ButtonYes: "Đến trang 188BET", ButtonNo: "Đóng" }, "th-th": { Title: "แจ้งเตือน", Message: "V9BET จะไม่รองรับสมาชิกใหม่ที่สมัครมาจากอินโดนีเซีย เริ่มมีผลตั้งแต่วันที่1 ธันวาคม2018 (GMT-4) หากท่านต้องการสมัครเล่นออนไลน์ ทางเว็บไซด์แนะนำให้ท่านเข้าไปเยี่ยมชม188BET", ButtonYes: "ไปที่188BET", ButtonNo: "อยู่หน้านี้" } } var textIndogMarketAL = { "en-gb": { Title: "Important Notice", Message: "Existing customers from Indonesia may now withdraw all remaining funds (above IDR 10,000) from your V9BET account and deposit services are no longer available. Customers from Indonesia will no longer be able to access to V9BET website on Dec 31, 2018 (GMT-4)." + "Any pending bets on events after Dec 25, 2018 (GMT-4) will be cancelled and return to the customer's account for withdrawal. If you are looking to sign up with another online bookmaker, we recommend you visit 188BET.", ButtonYes: "Go to 188BET", ButtonNo: "Stay on this page" }, "id-id": { Title: "Pengumuman Penting", Message: "Pelanggan setia V9BET dari negara Indonesia, kami sarankan untuk melakukan penarikan semua dana Anda yang tersisa di akun Anda (di atas Rp. 10,000,-) dan untuk transaksi deposit tidak akan tersedia lagi. Situs V9BET Indonesia tidak dapat diakses mulai tanggal 31 Desember 2018 (GMT -4). " + "Semua taruhan yang diletakkan pada pertandingan setelah tanggal 25 Desember 2018 (GMT -4) akan dibatalkan dan kredit taruhan akan dikembalikan ke akun Anda untuk penarikan dana. Jika Anda membutuhkan tempat taruhan online terpercaya lainnya, kami merekomendasikan Anda untuk mengunjungi situs 188BET. ", ButtonYes: "Menuju situs 188BET", ButtonNo: "Tetap di halaman ini" }, "km-kh": { Title: "សេចក្តីជូនដំណឹង", Message: "អតិថិជនចាស់ដែលមកពីប្រទេសឥណ្ឌូនេស៊ីឥឡូវ ឥឡូវនេះអាចដកប្រាក់ដែលនៅសល់ទាំងអស់ (ចាប់ពី 10,000 IDR)ឡើងទៅពីគណនី V9BETរបស់អ្នកហើយសម្រាប់វិធីដាក់ប្រាក់វិញគឺមិនមានទៀតទេ។ អតិថិជនមកពីប្រទេសឥណ្ឌូនេស៊ីនឹងមិនអាចចូលទៅកាន់គេហទំព័រ V9BET នៅថ្ងៃទី 31 ខែធ្នូឆ្នាំ 2018 (GMT -4) ។" + "រាល់ការភ្នាល់ដែលរង់ចាំលើលទ្ធផលសម្រាប់ធ្វើការទូទាត់ប្រាក់ដែលផុតពីថ្ងៃទី 25 ខែធ្នូឆ្នាំ 2018 (GMT -4) នឹងត្រូវបានលុបចោលហើយប្រាក់ផ្នាល់នឹងធ្វើការសងត្រឡប់ទៅគណនីរបស់អតិថិជនសម្រាប់ធ្វើការដកប្រាក់។ ប្រសិនបើលោកអ្នកចង់ធ្វើការចុះឈ្មោះជាមួយគេហទំព័រភ្នាល់តាមអនឡាញផ្សេងទៀតយើងសូមណែនាំឱ្យអ្នកចូលមើលគេហទំព័រ188BET ។", ButtonYes: "ទៅកាន់គេហទំព័រ 188BET", ButtonNo: "រក្សាការនៅលើទំព័រនេះ" }, "vi-vn": { Title: "Thông báo quan trọng", Message: "Khách hàng hiện tại từ Quốc Gia Indonesia hiện có thể rút toàn bộ số tiền còn lại (trên IDR 10.000) từ tài khoản V9BET và dịch vụ gửi tiền của Quý Khách sẽ không còn khả dụng. Khách hàng từ Indonesia sẽ không thể truy cập vào trang web V9BET từ ngày 31 tháng 12 năm 2018 (GMT-4)." + "Bất kỳ cược nào đang chờ xử lý trong các sự kiện sau ngày 25 tháng 12 năm 2018 (GMT-4) sẽ bị hủy và được trả lại tài khoản của Quý Khách để rút tiền. Nếu Quý Khách đang tìm kiếm trang cá cược trực tuyến khác để đăng ký và tham gia, chúng tôi khuyến khích Quý Khách thử trải nghiệm trang web 188BET.", ButtonYes: "Đến trang 188BET", ButtonNo: "Đóng" }, "th-th": { Title: "แจ้งเตือน", Message: "สำหรับสมาชิกจากอินโดนีเซียสามารถทำการถอนเงินที่เหลืออยู่( มากกว่าIDR10,000) จากทางเว็บไซด์V9BET และระบบการฝากเงินจะไม่สามารถใช้การได้อีกต่อไป สมาชิกจากอินโดนีเซียจะไม่สามารถเข้าใช้งานเว็บไซด์V9BET ณ วันที่ 31 ธันวาคม 2018 (GMT-4)" + "บิลเดิมพันทีค้างหลังจากวันที่ 25ธันวาคม2018 (GMT-4) จะถูกยกเลิกและคืนเงินกลับไปบัญชีท่านสมาชิกเพื่อทำการถอนเงิน หากท่านต้องการสมัครเล่นออนไลน์ ทางเว็บไซด์แนะนำให้ท่านเข้าไปเยี่ยมชม188BET", ButtonYes: "ไปที่188BET", ButtonNo: "อยู่หน้านี้" } } var textCambodiaMarketBL = { "en-gb": { Title: "Important Notice", Message: "V9BET is no longer accepting new registrants from Cambodia with effect from Dec 1, 2019 (GMT-4). If you are looking to sign up an account with an online bookmaker, we recommend you to visit 188BET.", ButtonYes: "Go to 188BET", ButtonNo: "Stay on this page" }, "id-id": { Title: "Pengumuman Penting", Message: "V9BET tidak lagi menerima pendaftaran baru dari negara Indonesia mulai tanggal 1 Desember 2019 (GMT -4). Jika Anda membutuhkan tempat taruhan online terpercaya lainnya, kami merekomendasikan Anda untuk mengunjungi situs 188BET.", ButtonYes: "Menuju situs 188BET", ButtonNo: "Tetap di halaman ini" }, "km-kh": { Title: "សេចក្តីជូនដំណឹង", Message: "V9BET យើងខ្ញុំលែងទទួលយកសមាជិកចុះឈ្មោះថ្មីពីប្រទេសកម្ពុជាទៀតហើយដោយអនុម័តចាប់ពីថ្ងៃទី 01 ខែធ្នូឆ្នាំ 2019 (GMT-4) នេះតទៅ។ ប្រសិនបើលោកអ្នកមានបំណងចង់ចុះឈ្មោះជាមួយគេហទំព័រភ្នាល់ល្បែងអនឡាញ យើងខ្ញុំសូមណែនាំអ្នកចូលទៅកាន់គេហទំព័រ 188BET។", ButtonYes: "ទៅកាន់គេហទំព័រ 188BET", ButtonNo: "រក្សាការនៅលើទំព័រនេះ" }, "vi-vn": { Title: "Thông báo quan trọng", Message: "V9BET hiện không hỗ trợ thành viên mới đăng ký từ Quốc Gia Cambodia, từ ngày 01 tháng 12 năm 2019 (GMT-4). Nếu Quý Khách đang tìm kiếm trang cá cược trực tuyến khác để đăng ký và tham gia, chúng tôi khuyến khích Quý Khách thử trải nghiệm trang web 188BET.", ButtonYes: "Đến trang 188BET", ButtonNo: "Đóng" }, "th-th": { Title: "แจ้งเตือน", Message: "V9BET ปิดการเปิดรับสมาชิกใหม่จากประเทศกัมพูชา โดยมีผลตั้งแต่วันที่ 1 ธันวาคม 2019 (GMT-4). หากท่านสนใจใช้งานเว็บไซต์เดิมพันออนไลน์ เราขอแนะนำให้ท่านเข้าเยี่ยมชมเว็บไซต์ 188BET.", ButtonYes: "เชื่อมต่อไปที่ 188BET", ButtonNo: "อยู่ต่อหน้านี้" } } var textCambodiaMarketAL = { "en-gb": { Title: "Important Notice", Message: "Existing customers from Cambodia may now withdraw all remaining funds from your V9BET account and deposit services are no longer available. " + "Customers from Cambodia will no longer be able to access to V9BET website on Dec 31, 2019 (GMT-4). Any pending bets on events after Dec 16, 2019 (GMT-4) will be cancelled and return to the customer's account for withdrawal. If you are looking to sign up an account with an online bookmaker, we recommend you to visit 188BET.", ButtonYes: "Go to 188BET", ButtonNo: "Stay on this page" }, "km-kh": { Title: "សេចក្តីជូនដំណឹង", Message: "អតិថិជនដែលមានគណនីពីប្រទេសកម្ពុជាឥឡូវនេះ សូមធ្វើការដកប្រាក់ដែលនៅសល់ក្នុងគណនី V9BET របស់អ្នកហើយសេវាកម្មការដាក់ប្រាក់លែងមានសពុភាពទៀតហើយ។អតិថិជនមកពីប្រទេសកម្ពុជានឹងមិនអាចចូលប្រើប្រាស់គេហទំព័រ V9BET បានទៀតទេចាប់ពីថ្ងៃទី 31 ខែធ្នូឆ្នាំ 2019 (GMT-4) ។ " + "រាល់ការភ្នាល់ណាដែលមិនទាន់បានទូទាត់ បន្ទាប់ពីថ្ងៃទី 16 ខែធ្នូឆ្នាំ 2019 (GMT-4) នឹងត្រូវបានលុបចោលហើយទឹកប្រាក់និងបញ្ចូលត្រលប់ទៅគណនីរបស់អតិថិជនវិញ ដើម្បីធ្វើការដកប្រាក់។ ប្រសិនបើលោកអ្នកមានបំណងចង់ចុះឈ្មោះជាមួយគេហទំព័រភ្នាល់ល្បែងអនឡាញផ្សេងទៀត យើងខ្ញុំសូមណែនាំអ្នកចូលទៅកាន់គេហទំព័រ 188BET។", ButtonYes: "ចូលទៅកាន់គេហទំព័រ 188BET", ButtonNo: "នៅលើទំព័រនេះ" }, "vi-vn": { Title: "Thông báo quan trọng", Message: "Khách hàng hiện tại từ Quốc Gia Cambodia hiện có thể rút toàn bộ số tiền còn lại từ tài khoản V9BET và dịch vụ gửi tiền của Quý Khách sẽ không còn khả dụng. Khách hàng từ Cambodia sẽ không thể truy cập vào trang web V9BET từ ngày 31 tháng 12 năm 2019 (GMT-4). " + "Bất kỳ cược nào đang chờ xử lý trong các sự kiện sau ngày 16 tháng 12 năm 2019 (GMT-4) sẽ bị hủy và được trả lại tài khoản của Quý Khách để rút tiền. Nếu Quý Khách đang tìm kiếm trang cá cược trực tuyến khác để đăng ký và tham gia, chúng tôi khuyến khích Quý Khách thử trải nghiệm trang web 188BET.", ButtonYes: "Đến trang 188BET", ButtonNo: "Đóng" }, "th-th": { Title: "แจ้งเตือน", Message: "สมาชิกปัจจุบันจากประเทศกัมพูชาสามารถถอนเงินที่เหลืออยู่ทั้งหมดจากบัญชี V9BET ของท่านได้ และบริการการฝากเงินจะไม่สามารถใช้ได้อีกต่อไป สมาชิกจากประเทศกัมพูชาจะไม่สามารถเข้าเว็บไซต์ V9BET ได้อีกต่อไป ตั้งแต่วันที่ 31 ธันวาคม 2019 (GMT-4)" + "การเดิมพันที่ค้างอยู่ในระบบหลังจากวันที่ 16 ธันวาคม 2019 (GMT-4) ทั้งหมดจะถูกยกเลิกและยอดเงินจะปรับเข้าสู่บัญชี V9BET ของท่านเพื่อดำเนินการถอนต่อไป หากท่านสนใจใช้งานเว็บไซต์เดิมพันออนไลน์อื่น เราขอแนะนำให้ท่านเข้าเยี่ยมชมเว็บไซต์ 188BET", ButtonYes: "เชื่อมต่อไปที่ 188BET", ButtonNo: "อยู่ต่อหน้านี้" } } //LivePerson Func function UpdateStatusForNotLogin() { if (typeof (lpTag) != 'undefined') { lpTag.sdes[0].info = infoNotLogin; lpTag.sdes[1].personal = personalNotLogin; $.ajax({ url: "/" + gv.lang + "/Common/GetClientIp", data: "", type: "POST", async: false, success: function (resultVal) { if (typeof (resultVal) == "string") { lpTag.sdes[0].info.storeNumber = resultVal.ip; } else { lpTag.sdes[0].info.storeNumber = ""; } } }); } } function UpdateStatusForLogin() { if (typeof (lpTag) != 'undefined') { $.ajax({ url: "/" + gv.lang + "/MemberService/RetrieveMembersDataForLiveEngage", data: "", type: "POST", async: false, success: function (resultVal) { if (typeof (resultVal) == "object") { //INFO lpTag.sdes[0].info.cstatus = "Login_Yes"; lpTag.sdes[0].info.ctype = resultVal.CustomerType; lpTag.sdes[0].info.customerId = resultVal.FirstName; lpTag.sdes[0].info.currency = resultVal.Currency; lpTag.sdes[0].info.socialId = resultVal.SocialId; lpTag.sdes[0].info.companyBranch = resultVal.Address; lpTag.sdes[0].info.storeNumber = resultVal.Region; //PERSONAL lpTag.sdes[1].personal.firstname = resultVal.FirstName; lpTag.sdes[1].personal.lastname = resultVal.LastName; lpTag.sdes[1].personal.contacts[0].email = resultVal.Email; lpTag.sdes[1].personal.contacts[0].phone = resultVal.Phone; lpTag.sdes[1].personal.gender = resultVal.Gender; lpTag.sdes[1].personal.language = resultVal.Language; } else { lpTag.sdes[0].info = infoNotLogin; lpTag.sdes[1].personal = personalNotLogin; } } }); } } function setCookiesMonitoringLivePerson() { var valStatus = "statusLogin"; var valIsUpdate = "isUpdate"; var currentCookie = document.cookie; var flagCookiesStatus = getCookie(valStatus); var flagCookieUpdate = getCookie(valIsUpdate); var addCookie = ""; var isLogin = $("body").hasClass("login") ? "Login_Yes" : "Login_No"; if (flagCookiesStatus == "") { document.cookie = valStatus + "=" + isLogin + "; " + currentCookie; document.cookie = valIsUpdate + "=true; " + currentCookie; return; } if (flagCookiesStatus == isLogin) { $.cookie('isUpdate', 'false'); return; } if (flagCookiesStatus != isLogin) { $.cookie('statusLogin', isLogin); $.cookie('isUpdate', 'true'); return; } } var personalNotLogin = { "firstname": "", //FIRST NAME "lastname": "", //LAST NAME "age": { "age": 0, //NOT USED "year": 0, //NOT USED "month": 0, //NOT USED "day": 0 //NOT USED }, "contacts": [{ "email": "", //EMAIL "phone": "" //CONTACT NUMBER }], "gender": "", //GENDER "language": "", //LANGUAGE "company": "" //NOT USED } var infoNotLogin = { "cstatus": "LOGIN_NO", //MEMBER LOGIN STATUS "ctype": "", //VIP LEVEL "customerId": "", //LOGINNAME "balance": 0, //NOT USED "currency": "", //CURRENCY "socialId": "", //QQID "imei": "", //NOT USED "userName": "", //NOT USED "companySize": 0, //NOT USED "companyBranch": "", //ADDRESS "accountName": "", //NOT USED "role": "", //NOT USED "lastPaymentDate": { "day": 0, //NOT USED "month": 0, //NOT USED "year": 0 //NOT USED }, "registrationDate": { "day": 0, //NOT USED "month": 0, //NOT USED "year": 0 //NOT USED }, "storeNumber": "", //IP OR REGION "storeZipCode": "" //NOT USED }; //END LivePerson Func
" + htmlArray.join("
") + "
" + htmlArray + "