✦ Verified product
SMM Course
USD 0.00
JBM MARKETING
Verified independent store
→
Social Media Manager Certification Self paced week accelerated program One-Time Purchase$597 ENROLL NOW .teachable-embed-course-1829243 { width: 488px !important; } function handle
CloseModal(event) { event.target.closest('.t-modal').classList.remove('open'); document.body.classList.remove('t-modal-open'); } function handleTeachableBuyButtonClick(event) { event.target.closest('.teachable-embed-course-1829243').querySelectorAll('input.teachable-pricing-plan-course-1829243').forEach((radio) => { if (radio.checked) { const isNotFree = radio.getAttribute('data-plan-type')?.toLowerCase() != 'free'; if (isNotFree && false) { const modal = event.target.closest('.teachable-embed-course-1829243').querySelector('.t-modal'); const iframe = modal.querySelector('iframe'); if (iframe.src !== radio.value) { modal.classList.add('loading'); iframe.src = radio.value; } modal.classList.add('open'); document.body.classList.add('t-modal-open'); } else { window.location.href = radio.value; } } }); } function handleParentPricingPlanClick(event) { const parentDiv = event.currentTarget.closest('.teachable-embed-course-1829243'); const divs = Array.from(parentDiv.querySelectorAll('div')).filter(div => { return div.querySelector('label') && div.querySelector('input'); }); divs.forEach(div => { div.style.borderColor = '#E4E4E4'; }); const div = event.currentTarget; const radioButton = div.querySelector('input[type="radio"]'); if (radioButton) { radioButton.click(); div.style.borderColor = '#A7A7A7'; } } document.querySelectorAll('.teachable-pricing-plan-course-1829243').forEach((radio, index) => { const label = radio.closest('label'); const id = radio.getAttribute('id'); if (!id.includes('-index-')) { const indexedId = id + '-index-' + index; label.setAttribute('for', indexedId); radio.setAttribute('id', indexedId); } const divEl = label.closest("div"); divEl.addEventListener("click", handleParentPricingPlanClick); }); document.querySelectorAll('.teachable-buy-button-course-1829243').forEach((button) => { button.addEventListener('click', handleTeachableBuyButtonClick); }); if (false) { document.querySelectorAll('.t-modal-close').forEach((button) => { button.addEventListener('click', handleCloseModal); }); window.addEventListener('message', (event) => { if (event.data.message === 'checkout_loaded') { document.querySelector('.t-modal.open').classList.remove('loading'); } else if (event.data.message === 'redirect') { window.location.replace(event.data.redirectUrl); } }); }