Warning: file_exists(): open_basedir restriction in effect. File(/home/moeinart/domains/moeinsurgicalarts.com/private_html/wp-content/cache/w3-cache/js/custom_js_after_load.js/wp-content/themes/astra-child/moeinsurgicararts.js) is not within the allowed path(s): (/home/moeinart/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/moeinart/domains/moeinsurgicalarts.com/public_html/wp-content/plugins/w3speedster-wp/check.php on line 13
document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".lazyvideo"),t=new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){var n=e.target;n.addEventListener("click",(function(){var e=document.createElement("iframe");e.src=n.getAttribute("data-url"),e.width="100%",e.height=n.style.height||"500px",e.frameBorder="0",e.allowFullscreen=!0,n.parentNode.replaceChild(e,n)})),t.unobserve(n)}}))}));e.forEach((function(e){t.observe(e)}))})); if (window.location.href !== "https://moeinsurgicalarts.com/before-and-after-photos/") { document.querySelector('.fl-menu').addEventListener('click', function (event) { var menu = document.getElementById('menu-menu-primary'); if (menu.style.display === 'block') { menu.style.transition = 'max-height 0.5s ease-out'; menu.style.maxHeight = '0px'; setTimeout(function () { menu.style.display = 'none'; }, 500); } else { menu.style.display = 'block'; menu.style.maxHeight = '0px'; menu.style.transition = 'max-height 0.5s ease-out'; setTimeout(function () { menu.style.maxHeight = menu.scrollHeight + 'px'; }, 10); } }); document.querySelectorAll('.menu-item-has-children').forEach(function (menuItem) { var toggle = menuItem.querySelector('.fl-menu-toggle'); var subMenu = menuItem.querySelector('.sub-menu'); toggle.addEventListener('click', function (event) { event.stopPropagation(); if (subMenu.style.display === 'block') { subMenu.style.display = 'none'; toggle.style.transform = ''; } else { subMenu.style.display = 'block'; toggle.style.transform = 'translateX(-5px) rotate(180deg)'; } }); }); }