document.addEventListener("DOMContentLoaded", function () {
    const footerHTML = `
        <!-- footer  -->
         <footer class="container  footer-block mb-4 ">
        <img src="./images/grassImg.png" alt="" class="grassFooter">
        <div class="vyfooter row">
          
            <div class="col-lg-12 col-sm-12 footer-details ">

                <div class="row">
                    <div class="col-sm-4 footerPagelink cont-details ">
                        <ul class="page-links">
                            <li><a href="index.html"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="20"
                                        fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
                                        <path fill-rule="evenodd"
                                            d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8">
                                        </path>
                                    </svg>Home</a></li>
                           
                            <li><a href="SGB.html"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="20"
                                        fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
                                        <path fill-rule="evenodd"
                                            d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8">
                                        </path>
                                    </svg>Products</a></li>
                          
                            <li><a href="ContactUs.html"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="20"
                                        fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
                                        <path fill-rule="evenodd"
                                            d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8">
                                        </path>
                                    </svg>Contact</a></li>
                        </ul>
                    </div>
                    <div class="col-sm-4 cont-details">
                        <h4>Contact </h4>
                        <a href="tel:+919845223896" class="contact-num">+919845223896</a> <br>
                        <a href="tel:+919632081896" class="contact-num">+919632081896</a> <br>
                        <a href="tel:+918277329502" class="contact-num">+918277329502</a>

                        <!--email -->
                        <h4 class="mt-1">Email </h4>
                        <a href="mailto:aswiniagro@gmail.com" class="contact-num">aswiniagro@gmail.com</a>
                     <br>

                        <a href="mailto:contact@aswiniagrotech.com" class="contact-num">contact@aswiniagrotech.com</a>

                        <div class="social-media">
                            <a href="https://www.facebook.com/share/p/1Gb4Av4G8Z/" class="" target="_blank"><img src="images/facebook 4.png" alt=""></a>
                            <a href="https://youtu.be/oWwkq-JHob0?feature=shared" class="" target="_blank"><img src="images/youtube 1.png" alt=""></a>
                            <a href="https://www.instagram.com/p/DQWibguiBe5/?igsh=dW82ZWtocmkxM2hn" class="" target="_blank"><img src="images/social 4.png" alt=""></a>
                        </div>
                        <p></p>
                    </div>
                    <div class="col-sm-4 cont-details">
                        <h4>Address</h4>
                        <address class="footAddress">1. Plots 42 & 43, KIADB Industrial Area, Somanahalli, Maddur Taluk,
                            Mandya District - 571 429 Karnataka</address>
                        <address class="footAddress">2. Sy. No. 279, Madanayakanahalli - 571 433, Maddur Taluk, Mandya
                            district, Karnataka</address>

                        <address class="footAddress">3. Zamin Kottampatti Road, Pollachi Taluk - 642 006, Coimbatore
                            district, Tamilnadu</address>

                    </div>

                </div>
            </div>
            <div class="col-sm-12 text-center footer-rights p-2">Copyright © 2016 Aswini Agrotech |
                Developed By: <a href="https://jayblues.com" style="color:blue;text-decoration:none;" >JayBlues Technologies</a></div>

        </div>
    </footer>
        <!-- footer end-->
    `;

    // Insert footer into element with id="footer"
    document.getElementById("footer").innerHTML = footerHTML;
});
