Skip to content
Big news ! We're excited to announce...
- Choosing a selection results in a full page refresh.
- Opens in a new window.
}
if (filteredClassName === "trust_key") {
//
}
}
}
}
}
(function addBadgesArray() {
if(timeArr.length === 0) {
let objs = setInterval(() => {
let _state = 1;
let badgesArr = document.querySelectorAll('[class^="giraffly-trust-badge-"]');
for(let i =0; i< badgesArr.length; i ++) {
if(badgesArr[i].childNodes.length === 0) {
_state = 0;
}
}
if(badgesArr && badgesArr.length > 0 && _state === 0) {
setBadgesBlock(badgesArr);
}
}, 1000)
timeArr.push(objs);
}
})()
// 确保找到了匹配的元素
if (elementIds && elementIds.length > 0) {
setBadgesBlock(elementIds);
}
//
(function addListenSvg() {
let logClick = 0;
if (typeof jQuery !== "undefined") {
const observer = new MutationObserver((mutationsList, observer) => {
if (jQuery('.giraffly-right-Bar-Preview-Example').length > 1 && logClick === 0) {
if (jQuery('.giraffly-right-Bar-Preview-div-svg').length > 0) {
jQuery('.giraffly-right-Bar-Preview-div-svg').each((i, ele) => {
let ltag = jQuery(ele).find('linearGradient');
if (ltag.length > 0) {
ltag.each((inx, elem) => {
let idObj = jQuery(elem).attr('id');
let formatText = i + '_' + inx + '_' + idObj;
jQuery(ele)[0].innerHTML = jQuery(ele)[0].innerHTML.replace(new RegExp(idObj, 'g'), formatText);
});
logClick = 1;
observer.disconnect();
}
});
}
}
});
observer.observe(document.body, { childList: true, subtree: true });
} else {
setTimeout(() => {
addListenSvg();
}, 1000);
}
})();