\r\n ","messageMD":"Thank you for your support!","messageMark":"

Thank you for your support!

","onsubmit":"redirect","redirect":"https://www.thenonprofitgrp.com/product-page/braebear-hugz"}}} }; window.auth = new Authentication(args); window.auth.authenticate(); function closeCartSidebar() { const cartSection = document.getElementById("cart-section"); if(cartSection) { cartSection.style.display = "none"; } } function convertURLsToLinks(text) { const expressionWithHttp =/(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*))/gi; const regex = new RegExp(expressionWithHttp); text = text.replace(/&/g, '&'); if(text?.includes('https://mailrecipe.com/public/106003551968977104849/home/form/1FAIpQLSfWHdjql6wluFExmRfpQ3yaWGznwqjBzu6bOiNbwlpetWOYuw?restoreId=-O5OtcHL7gcbJ6snM5Cw&appearance=officeuse')) { return "[Comment is hidden due to privacy]"; } return text.replace(regex, "$1"); } const observer = new MutationObserver((mutationsList, observer) => { for (let mutation of mutationsList) { if (mutation.type === 'childList') { for (let node of mutation.addedNodes) { const codeLookUp = document.querySelectorAll('.code-look-up'); codeLookUp.forEach((el) => { el.classList.remove('code-look-up'); el.innerHTML = convertURLsToLinks(el.innerHTML); }); } } } }); // on dom load. document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); // to have different background color for odd and even section, in the home page. function loadBgColor() { var i = 0; $('.section-main').each(function(index) { // if the i is odd, add section-with-bg class. // if the the html is empty continue. if ($(this).html().trim() == '') { return; } if (i % 2 != 0) { $(this).addClass('section-with-bg'); } else { $(this).removeClass('section-with-bg'); } i++; }); } // section-with-bg load all section-main and add section-with-bg for odd number. $(document).ready(function() { loadBgColor(); });