<script>
async function enablePush() {
    if (!("serviceWorker" in navigator)) return;

    const reg = await navigator.serviceWorker.register("/service-worker.js");

    const permission = await Notification.requestPermission();
    if (permission !== "granted") return;

    const sub = await reg.pushManager.subscribe({
        userVisibleOnly: true,
        applicationServerKey: "YOUR_PUBLIC_VAPID_KEY"
    });

    await fetch("/save_token.php", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify(sub)
    });
}

enablePush();
</script>


<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://semceo.ir/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://semceo.ir/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://semceo.ir/wp-sitemap-posts-post-2.xml</loc></sitemap><sitemap><loc>https://semceo.ir/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://semceo.ir/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://semceo.ir/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
