

<!-------------calender---------------------->

<script>
    document.addEventListener("DOMContentLoaded", function() {
        const maxSize = 1 * 1024 * 1024; // 2MB

        document.querySelectorAll("form.wpcf7-form").forEach(form => {
            form.addEventListener("submit", function(e) {
                let valid = true;
                let errorMsg = "";

                // File fields by name
                const fileFields = [{
                        name: "cra_passport_photo",
                        label: "Passport Size Photo"
                    },
                    {
                        name: "cra_degree_certificate",
                        label: "Degree Certificate"
                    },
                    {
                        name: "cra_fee_proof",
                        label: "Proof of Transfer of Fees"
                    }
                ];

                fileFields.forEach(field => {
                    let input = form.querySelector(`input[name='${field.name}']`);
                    if (input && input.files.length > 0) {
                        let file = input.files[0];

                         // Check size
                        if (file.size > maxSize) {
                            valid = false;
                            errorMsg += `❌ ${field.label} exceeds 1 MB limit.\n`;
                        }

                        // Check extension
                        let allowedExt = ["jpg", "jpeg", "png", "pdf"];
                        let ext = file.name.split('.').pop().toLowerCase();
                        if (!allowedExt.includes(ext)) {
                            valid = false;
                            errorMsg += `❌ ${field.label} must be JPG, PNG, or PDF.\n`;
                        }
                    }
                });

                if (!valid) {
                    e.preventDefault();
                    alert(errorMsg);
                }
            });
        });
    });
</script>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://kaps.org.in/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-footer-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-header-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-event-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-posts-megamenu-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-taxonomies-event_cat-1.xml</loc></sitemap><sitemap><loc>https://kaps.org.in/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
