function generateUUID() {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
c
) {
var r = ((d + Math.random() * 16) % 16) | 0;
d = Math.floor(d / 16);
return (c == 'x' ? r : (r & 0x7) | 0x8).toString(16);
});
return uuid;
}
var lzdDocCookies = {
getItem: function(sKey) {
return (
decodeURIComponent(
document.cookie.replace(
new RegExp(
'(?:(?:^|.*;)\\s*' +
encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') +
'\\s*\\=\\s*([^;]*).*$)|^.*$'
),
'$1'
)
) || null
);
},
setItem: function(sKey, sValue, vEnd, sPath, sDomain, bSecure) {
if (!sKey || /^(?:expires|max\-a
ge|path|domain|secure)$/i.test(sKey)) {
return false;
}
var sExpires = '';
var exdate = new Date();
exdate.setDate(exdate.getDate() + vEnd);
sExpires = ';expires=' + exdate.toGMTString();
document.cookie =
encodeURIComponent(sKey) +
'=' +
encodeURIComponent(sValue) +
sExpires +
(sDomain ? '; domain=' + sDomain : '') +
(sPath ? '; path=' + sPath : '; path=/') +
(bSecure ? '; secure' : '');
return true;
},
hasItem: function(sKey) {
if (!sKey) {
return false;
}
return new RegExp(
'(?:^|;\\s*)' +
encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') +
'\\s*\\='
).test(document.cookie);
},
removeItem: function(sKey, sPath, sDomain) {
if (!this.hasItem(sKey)) {
return false;
}
document.cookie =
encodeURIComponent(sKey) +
'=; expires=Thu, 01 Jan 1970 00:00:00 GMT' +
(sDomain ? '; domain=' + sDomain : '') +
(sPath
? '; path=' + sPath : '; path=/');
return true;
}
};
var LZD_HOST_ARRAY = [
'.lazada.co.id',
'.lazada.com.my',
'.lazada.com.ph',
'.lazada.sg',
'.lazada.co.th',
'.lazada.vn',
'.daraz.com.bd',
'.daraz.lk',
'.shop.com.mm',
'.daraz.com.np',
'.daraz.pk',
'.lazada.test'
];
var currentDomain = '.lazada.sg';
var UUID = generateUUID();
var t_uid = lzdDocCookies.getItem('t_uid');
var anon_uid = lzdDocCookies.getItem('anon_uid');
for (var i = 0; i
<
span>' + item.title + '
>' +
'
>' +
'
<div class="breadcrumb_right_arrow">
>' +
'
window.g_config = window.g_config || {};
window.g_config.cscClient = 'buyer';
window.g_config.regionID = 'ID';
window.g_config.cscLiveUp = false;
window.g_config.cscAnonymous = false;
window.g_config.disabledAutoInit = true;
window.g_config.cscBot = 'QX1sVhWTMO';
(function() {
var pathNameReg = /helpcenter|contact/g;
var pathMatched = pathNameReg.test(window.location.pathname);
if(!pathMatched){
var sc = document.createElement('script');
sc.async = true;
sc.src = '//g.lazcdn.com/g/lzd-cs/chat/2.5.0/alichat.js';
sc.setAttribute("desktopjs","true")
var scr = document.getElementsByTagName('script')[0];
scr.parentNode.insertBefore(sc, scr);
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = "https://g.lazcdn.com/g/lzd-cs/chat/2.5.0/alichat.css";
link.setAttribute("desktopcss","true")
var l = document.getElementsByTagName('link')[0]; l.parentNode.insertBefore(link, l);
var done = false;
sc.onload = sc.onreadystatechange = function() {
if (!done && (!this.readyState || this.readyState==='loaded' || this.readyState==='complete')) {
done = true;
var requestHost = 'https://h5-alimebot.lazada.co.id';
var botUrl = 'https://h5-alimebot.lazada.co.id/intl/index.htm?from=QX1sVhWTMO&_lang=in-ID';
var loginUrl = 'https://member.lazada.co.id/user/pure-login?hideRegister=true&hideForgotPWD=true';
window._CSCChatInstance = n';
}
parentNode.appendChild(liNode);
}
var breadcrumbListNode = document.getElementById('J_breadcrumb_list');
var cls = breadcrumbListNode.className;
if (size === 0) {
if (cls.indexOf('breadcrumb_list_empty') ew CSChat({ bot: { from: window.g_config.cscBot, requestHost: requestHost, botUrl: botUrl, }, loginUrl: loginUrl, });
}
};
}
})();
<