-
- Your cart is empty -
\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"}}}, }; let enableChat = false; let chatQuery = ''; window.ownerId = '106607399445840651552'; window.perma = 'bbhorder'; window.auth = new Authentication(args); window.auth.authenticate(); if(enableChat && typeof ChatAssistant !== 'undefined' && ChatAssistant && window.auth.isDeveloper) { window.chatAssistant = new ChatAssistant({ ownerId: window.ownerId, logo: 'https://formfacade.com/uploaded/106607399445840651552/theme/logo/IMG_2018.jpg', ownerTitle: 'The NonProfit Group' }); window.chatAssistant.init(); window.auth.onAuthStateChanged(function(user){ window.chatAssistant.setOwnerId(window.ownerId); if(user && user?.providerData?.[0]) { window.chatAssistant.setUser(user?.providerData?.[0]); } if(chatQuery == 'open') { window.chatAssistant.openChat(); } }) } function closeCartSidebar() { const cartSection = document.getElementById("cart-section"); if(cartSection) { cartSection.style.display = "none"; } } function convertURLsToLinks(text) { const expressionWithHttp = /(https?:\/\/[^\s'"<>]+)/gi; 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(expressionWithHttp, "$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(); });