!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/e153cb0dfcd87d177e8b4dc7b/4ddcd113574ba559fcf601220.js"); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-T4BNFCV'); document.addEventListener('DOMContentLoaded', function () { // Finding class "script-block" var scriptBlock = document.querySelector('.script-block'); // dynamically adding to "script-block texture" scriptBlock.setAttribute('class', 'script-block texture'); }); .hiring-container { display: flex; align-items: center; } .hiring { text-align: center; color: #fff; background: #0076a8; padding: 12px 30px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; display: inline-block; letter-spacing: 1px; font-family: "Lexend", "Helvetica Neue Std", Arial, "Noto Sans", sans-serif; text-decoration: none; -webkit-box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); transition: background-color 0.3s ease, color 0.3s ease; } .hiring:hover { color: #0076a8; background: #dfb136; } .close-btncc { background: #009fdf; border: none; color: #fff; font-size: 18px; cursor: pointer; font-weight: bold; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 10px; transition: background-color 0.3s ease, color 0.3s ease; min-width: 30px; } .close-btncc:hover { background: #a50066; color: #fff; } .hiring-image { width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; object-fit: contain; } if (!sessionStorage.getItem('hireButtonClosed')) { const hireContainer = document.createElement('div'); hireContainer.className = 'hiring-container'; document.body.appendChild(hireContainer); const hireButton = document.createElement('a'); hireButton.className = 'hiring'; hireButton.href = 'https://carolinacreek.org/jobs/'; const hireImage = document.createElement('img'); hireImage.src = '/wp-content/uploads/CC-hiring.gif'; hireImage.alt = 'Job Thumbs Up'; hireImage.className = 'hiring-image'; hireButton.appendChild(hireImage); hireButton.appendChild(document.createTextNode(" We're Hiring")); const closeButton = document.createElement('button'); closeButton.className = 'close-btncc'; closeButton.textContent = '×'; hireContainer.appendChild(hireButton); hireContainer.appendChild(closeButton); hireContainer.style.position = 'fixed'; hireContainer.style.bottom = '20px'; hireContainer.style.right = '20px'; hireContainer.style.zIndex = '1000'; hireContainer.style.display = 'flex'; hireContainer.style.alignItems = 'center'; closeButton.addEventListener('click', () => { hireContainer.style.display = 'none'; sessionStorage.setItem('hireButtonClosed', 'true'); }); }