<script>
document.addEventListener("DOMContentLoaded", function(){

    const btn = document.querySelector("#spectral-compute");

    if(!btn) {
        console.log("Compute button not found");
        return;
    }

    btn.addEventListener("click", function(){

        const L = document.getElementById("L").value;
        const a = document.getElementById("a").value;
        const b = document.getElementById("b").value;

        const data = new FormData();
        data.append("action", "spectral_compute");
        data.append("L", L);
        data.append("a", a);
        data.append("b", b);

        fetch("https://arbe-lambda-star.com/wp-admin/admin-ajax.php", {
            method: "POST",
            body: data
        })
        .then(r => r.json())
        .then(j => {
            console.log(j);
            document.getElementById("result").textContent =
                JSON.stringify(j, null, 2);
        })
        .catch(e => {
            console.error("AJAX error:", e);
        });

    });

});
</script>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://arbe-lambda-star.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://arbe-lambda-star.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://arbe-lambda-star.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://arbe-lambda-star.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://arbe-lambda-star.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
