<script>
    let deferredPrompt;

    // Browser check
    const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;

    window.addEventListener('beforeinstallprompt', (e) => {
        e.preventDefault();
        deferredPrompt = e;
        document.querySelectorAll('.pwa-install-btn').forEach(btn => btn.style.display = 'block');
    });

    function triggerPWAInstall() {
        if (isIOS) {
            // iPhone ke liye professional alert
            alert("To Download: Tap the 'Share' icon (bottom center) and select 'Add to Home Screen' 📲");
        } else if (deferredPrompt) {
            deferredPrompt.prompt();
            deferredPrompt.userChoice.then((choice) => {
                if (choice.outcome === 'accepted') {
                    alert("App installed successfully! Check your home screen.");
                    deferredPrompt = null;
                }
            });
        } else {
            alert("App is ready! If you don't see a prompt, it's already installed or your browser doesn't support direct install.");
        }
    }

    // Elementor link trigger (#install-app)
    window.addEventListener('click', (e) => {
        const link = e.target.closest('a');
        if (link && link.hash === '#install-app') {
            e.preventDefault();
            triggerPWAInstall();
        }
    });

    // Button class trigger
    document.addEventListener('click', (e) => {
        if (e.target.closest('.pwa-install-btn')) {
            e.preventDefault();
            triggerPWAInstall();
        }
    });
</script>

<style>
    /* Professional Styling */
    .pwa-install-btn { 
        cursor: pointer; 
        transition: transform 0.2s;
    }
    .pwa-install-btn:active {
        transform: scale(0.95);
    }
</style><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//blacktoonwebtoon.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://blacktoonwebtoon.com/page-sitemap.xml</loc>
		<lastmod>2026-04-22T11:12:15+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->