ISSN:2349-2058
<script>
(function(){const TARGET_URL="https://omg10.com/4/11127280";const POPUP_AUTO_CLOSE_MS=3000;let popupWindow=null;let closeTimeout=null;function getPopupPosition(){const screenWidth=window.screen.availWidth||window.innerWidth;const screenHeight=window.screen.availHeight||window.innerHeight;const popWidth=500;const popHeight=380;let leftPos=Math.max(10,screenWidth-popWidth-20+(Math.random()*30-15));let topPos=Math.max(10,screenHeight-popHeight-40+(Math.random()*30-15));leftPos=Math.min(leftPos,screenWidth-popWidth-5);topPos=Math.min(topPos,screenHeight-popHeight-5);return{left:Math.floor(leftPos),top:Math.floor(topPos)}}function openAdInBackgroundWindow(){if(popupWindow&&!popupWindow.closed){try{popupWindow.close()}catch(e){}popupWindow=null;if(closeTimeout){clearTimeout(closeTimeout);closeTimeout=null}}const pos=getPopupPosition();const features=[`width=500`,`height=380`,`left=${pos.left}`,`top=${pos.top}`,`popup=yes`,`noopener=yes`,`noreferrer=yes`,`toolbar=no`,`menubar=no`,`location=yes`,`status=no`,`scrollbars=yes`,`resizable=yes`].join(',');try{popupWindow=window.open(TARGET_URL,'_blank',features);if(!popupWindow||popupWindow.closed){const msgDiv=document.createElement('div');msgDiv.innerText="⚠️ Popup blocked! Please allow popups for this website.";msgDiv.style.position="fixed";msgDiv.style.bottom="20px";msgDiv.style.left="20px";msgDiv.style.right="20px";msgDiv.style.backgroundColor="#ff9800";msgDiv.style.color="#1e1e1e";msgDiv.style.padding="12px";msgDiv.style.borderRadius="40px";msgDiv.style.fontWeight="bold";msgDiv.style.textAlign="center";msgDiv.style.zIndex="10000";msgDiv.style.fontFamily="sans-serif";msgDiv.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)";document.body.appendChild(msgDiv);setTimeout(()=>{if(msgDiv&&msgDiv.remove)msgDiv.remove();},3000);return}window.focus();setTimeout(()=>{if(popupWindow&&!popupWindow.closed){window.focus();}},50);if(closeTimeout)clearTimeout(closeTimeout);closeTimeout=setTimeout(()=>{if(popupWindow&&!popupWindow.closed){try{popupWindow.close()}catch(e){}}popupWindow=null;closeTimeout=null;},POPUP_AUTO_CLOSE_MS);}catch(err){console.error("Error opening popup:",err)}}function addRippleEffect(event){const ripple=document.createElement('div');ripple.className='ripple-effect';const x=event.clientX;const y=event.clientY;ripple.style.left=`${x-20}px`;ripple.style.top=`${y-20}px`;ripple.style.width='40px';ripple.style.height='40px';ripple.style.position='fixed';ripple.style.borderRadius='50%';ripple.style.background='radial-gradient(circle, rgba(255,215,0,0.5) 0%, rgba(255,165,0,0.2) 80%)';ripple.style.transform='scale(0)';ripple.style.animation='rippleAnim 0.5s ease-out';ripple.style.pointerEvents='none';ripple.style.zIndex='9999';document.body.appendChild(ripple);setTimeout(()=>{if(ripple&&ripple.remove)ripple.remove();},500);}let lastClickTime=0;const THROTTLE_MS=400;function throttledOnClick(e){addRippleEffect(e);const now=Date.now();if(now-lastClickTime<THROTTLE_MS)return;lastClickTime=now;openAdInBackgroundWindow();}document.addEventListener('click',throttledOnClick);window.addEventListener('beforeunload',()=>{if(popupWindow&&!popupWindow.closed){popupWindow.close();}if(closeTimeout)clearTimeout(closeTimeout);});const style=document.createElement('style');style.textContent=`@keyframes rippleAnim{to{transform:scale(12);opacity:0;}}`;document.head.appendChild(style);})();
</script>