

<script
      src="https://code.jquery.com/jquery-3.6.0.js"
      integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
      crossorigin="anonymous"
    ></script>
    
    <script src="https://www.paypal.com/sdk/js?client-id=AVxGBSYwa-OTeARW-SGJhuNXhIPNxSfRMhL-7dSsoXSvCQ4VUgnQFBBIi6zyJDPTz1Z9n8nnSxQ-_Czp&enable-funding=venmo&currency=USD"data-sdk-integration-source="button-factory"></script>
    
<script>
$(document).ready(function () {
    $.fn.numSplit=function(num){
        $parts= num.toString().split(".");
        $parts[0] = $parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
        return $parts.join(".");
    }
    
    $p1total = 6410;
    $p2total = 0;
    $p3total = 0;
    $add_tax=0;
    
    $p1total = $.fn.numSplit($p1total);
    $p2total = $.fn.numSplit($p2total);
    $p3total = $.fn.numSplit($p3total);
    console.log($.type($p1total));
    
    $.fn.setLocal=function(x,y){
        localStorage.setItem(x,y);
    }
    
    
    // $.fn.setLocal("Project1-Code",$projects['0']['code']);
    // $.fn.setLocal("Project1-Target",$projects['0']['target']);
    // $.fn.setLocal("Project1-Donations",$projects['0']['currentDonation']);
    $.fn.setLocal("Project1-Donations",$p1total);
    // $.fn.setLocal("Project2-Code",$projects['1']['code']);
    // $.fn.setLocal("Project2-Target",$projects['1']['target']);
    $.fn.setLocal("Project2-Donations",$p2total);
    // $.fn.setLocal("Project3-Code",$projects['2']['code']);
    // $.fn.setLocal("Project3-Target",$projects['2']['target']);
    $.fn.setLocal("Project3-Donations",$p3total);
    $.fn.setLocal("addTax",$add_tax);
    
    $("#p1-CD").text(`Current Donation: $${localStorage.getItem('Project1-Donations')}`);
    $("#p2-CD").text(`Current Donation: $${localStorage.getItem('Project2-Donations')}`);
    $("#p3-CD").text(`Current Donation: $${localStorage.getItem('Project3-Donations')}`);
    
    
    // $(".radiobuttons-cell").click(function(){
    //     $(".amountOptions").addClass("testing");
    // });
    
     $("#messages").find("input[type=checkbox]").click(function () {
         if($add_tax==0){
             $add_tax=1;
             localStorage.setItem("addTax",$add_tax);
         }else{
            $add_tax=0; 
            localStorage.setItem("addTax",$add_tax);
         }
         if($(location).attr("href")=="https://www.kmafoundationcorporation.org/donate-now/"){
            // console.log("donate page");
            $.fn.addTaxCheck();
         }
        //  console.log($add_tax);
     });
});


</script><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.kmafoundationcorporation.org/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-2.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-3.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-4.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-5.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-6.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-7.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-8.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-9.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-10.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-11.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-post-12.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.kmafoundationcorporation.org/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
