📁 File Manager
Editing:
/home/wedigitalindia/public_html/manralsolar.com/index.php
<?php include_once('include/head.php'); ?> <body> <div class="main-page-wrapper"> <?php include_once('include/header.php'); ?> <!-- slide-bar start --> <!-- Carousel --> <div id="demo" class="carousel slide" data-bs-ride="carousel"> <!-- Indicators/dots --> <div class="carousel-indicators"> <button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button> <button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button> <button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button> </div> <!-- The slideshow/carousel --> <div class="carousel-inner"> <?php $banner = mysqli_query($conn, "SELECT * FROM `banners` where page_name='home'"); $count=1; while($rob = mysqli_fetch_array($banner)) { $sli = $rob['banners']; $mob = $rob['mbanner']; ?> <div class="carousel-item <?php if($count == 1) { echo "active"; } ?>"> <img src="<?php path(); ?>/admin/assets/images/banner-image/<?php echo $sli; ?>" alt="Chicago" class=" w-100 d-none d-sm-none d-md-block d-lg-block"> <img src="<?php path(); ?>/admin/assets/images/banner-image/<?php echo $mob; ?>" alt="Chicago" class=" w-100 d-block d-sm-block d-md-none d-lg-none"> </div> <?php $count++; } ?> <!-- <div class="carousel-item">--> <!--<img src="assets/img/hero/hero-img-13.jpg" alt="New York" class="d-block w-100">--> <!-- </div>--> </div> <!-- Left and right controls/icons --> <button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev"> <span class="carousel-control-prev-icon"></span> </button> <button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next"> <span class="carousel-control-next-icon"></span> </button> </div> <!-- slide-bar end --> <main> <!-- text-feature-one start --> <section class="text-feature-one position-relative"> <img class="top-shape-1 img-fluid" src="assets/img/ilustration/ilus-1.svg" alt="ilustration"> <div class="container"> <div class="title-style-one mb-15"> <h2 class="section-title text-center">Welcome to Manral Associates</h2> </div> <div class="row align-items-center"> <div class="col-lg-6 mb-4"> <div class="img-wrapper-one position-relative" data-aos="fade-up" data-aos-duration="250"> <img class="img-fluid main-img" src="assets/img/main/1 (1).webp" alt="media"> </div> </div> <div class="col-lg-6"> <div class="text-wrapper-one ps-xxl-5 ms-xxl-4 mb-30" data-aos="fade-left" data-aos-duration="250"> <p class="mb-25">Founded in 2012, Manral Associates has grown from a single office to four thriving branches across the picturesque regions of Nainital, Almora, and Bageshwar. Our journey reflects our unwavering commitment to excellence and service in various sectors, particularly within the Panchayati Raj Vibhag. </p> <p class="mb-25">Our core expertise spans across key government departments including the Forest Department, Water Supply Department, UREDA Department, MNRE Department, and UPCL Department. We are also proud to play an integral role in the PM Surya Ghar Program, contributing to sustainable development and energy efficiency.</p> <!-- <div class="feature-list-one mb-15"> <span class="icon"><i class="bi bi-check-lg"></i></span> <span class="text">30 Days Free Trial & Enjoy The Apps</span> </div> <div class="feature-list-one mb-15"> <span class="icon"><i class="bi bi-check-lg"></i></span> <span class="text">30 Days Free Trial & Enjoy The Apps</span> </div> --> <a class="ht-btn-two" href="about.php">Know More About Us</a> </div> </div> </div> </div> </section> <!-- text-feature-one end --> <!-- ht-service-section start --> <section class="ht-service-section position-relative servicepics"> <div class="ht-service-wrapper-bg" style="margin-bottom: 20px;"> <div class="container"> <div class="row text-center"> <div class="title-style-one mb-45"> <h2 class="section-title" data-aos="fade-up" data-aos-delay="100"> Our Product </h2> <!-- <h2 class="section-title" data-aos="fade-up" data-aos-delay="150">Solar Panel Installation </h2> --> </div> <?php $pro = mysqli_query($conn, "SELECT * FROM `tbl_product` limit 4"); while($row = mysqli_fetch_array($pro)) { $p_name = $row['p_name']; $p_slug = $row['slug']; $p_short_description = $row['p_short_description']; $p_id = $row['p_id']; $photo = mysqli_query($conn, "SELECT * FROM `tbl_product_photo` where p_id='$p_id'"); while($rok = mysqli_fetch_array($photo)) { $img = $rok['photo']; } ?> <div class="col-md-3 mb-4"> <div class="white-bg service-style-one"> <div class="service-thumb position-relative mb-15"> <img class="w-100" src="<?php path(); ?>/admin/assets/images/product-image/<?php echo $img; ?>" alt="service"> </div> <div class="content"> <h4 class="service-title mb-10"><a href="<?php path(); ?>/<?php echo $p_slug; ?>"><?php echo $p_name; ?> </a></h4> <p class="para"><?php echo $p_short_description; ?></p> </div> </div> </div> <?php } ?> </div> </div> </div> </section> <style> .para{ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } </style> <!-- ht-work-process start --> <section class="ht-work-process pt-50 pt-lg-60 pb-60 pb-lg-30" data-background="assets/img/main/bg-15.webp"> <div class="container"> <div class="row align-items-center justify-content-center"> <div class="col-lg-12" data-aos="fade-right" data-aos-delay="80"> <div class="title-style-one text-lg-start text-center pe-xxl-5 me-xxl-4 mb-45"> <h2 class="section-title text-center mb-10">"Easy, efficient and effective solutions"</h2> </div> </div> <!--<div class="col-lg-6 text-lg-start text-center ps-xxl-5" data-aos="fade-left"--> <!-- data-aos-delay="80">--> <!-- <p class="border-text pl-15 mb-45 ms-xxl-5">At Manral Solar Energy, we ensure a seamless--> <!-- transition to solar energy with our straightforward four-step process. Whether you’re--> <!-- interested in a ground-mounted solar power plant installation, solar rooftop power plant--> <!-- installation service, solar pump supply, or solar street light installation, our process--> <!-- is designed to meet your needs efficiently.--> <!-- </p>--> <!--</div>--> </div> <div class="row align-items-center"> <div class="col-lg-3 col-md-6 col-sm-6 col-6" data-aos="fade-up" data-aos-delay="80"> <div class="work-process-wrapper text-center position-relative mb-30"> <div class="process-box"> <div class="step">01</div> <div class="icon"> <img src="assets/img/icon/icon-26.svg" alt="icon"> </div> </div> <h4 class="mt-30"> Initial Consultation and Site Assessment</h4> <!-- <p>Enthusiastically future platforms the energy Professionally</p> --> <!-- <img class="shape-2" src="assets/img/shape/shape-24.png" alt="shape"> --> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 col-6" data-aos="fade-up" data-aos-delay="100"> <div class="work-process-wrapper text-center position-relative mb-30"> <div class="process-box"> <div class="step">02</div> <div class="icon"> <img src="assets/img/icon/icon-27.svg" alt="icon"> </div> </div> <h4 class="mt-30"> Customized Proposal and System Design</h4> <!-- <p>Enthusiastically future platforms the energy Professionally</p> --> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 col-6" data-aos="fade-up" data-aos-delay="120"> <div class="work-process-wrapper text-center position-relative mb-30"> <div class="process-box"> <div class="step">03</div> <div class="icon"> <img src="assets/img/icon/icon-28.svg" alt="icon"> </div> </div> <h4 class="mt-30"> Installation and Testing</h4> <!-- <p>Enthusiastically future platforms the energy Professionally</p> --> <!-- <img class="shape-2" src="assets/img/shape/shape-24.png" alt="shape"> --> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 col-6" data-aos="fade-up" data-aos-delay="140"> <div class="work-process-wrapper text-center position-relative mb-30"> <div class="process-box"> <div class="step">04</div> <div class="icon"> <img src="assets/img/icon/icon-29.svg" alt="icon"> </div> </div> <h4 class="mt-30"> Maintenance and Ongoing Support</h4> <!-- <p>Enthusiastically future platforms the energy Professionally</p> --> </div> </div> </div> </div> </section> <!-- ht-work-process end --> <!-- ht-service-section start --> <section class="ht-service-section position-relative servicepics"> <div class="ht-service-wrapper-bg"> <div class="container"> <div class="row text-center"> <div class="title-style-one mb-45"> <h2 class="section-title" data-aos="fade-up" data-aos-delay="150">Our Gallery </h2> </div> <?php $gallery = mysqli_query($conn, "SELECT * FROM `tbl_photo` ORDER BY id DESC limit 6"); while($rom = mysqli_fetch_array($gallery)) { $photo = $rom['photo']; ?> <div class="col-md-4 mb-2"> <div class="card-image"> <a href="<?php path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" data-fancybox="gallery"> <img src="<?php path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" alt="Image Gallery" class="w-100 h-100"> </a> </div> </div> <?php } ?> <script> // Fancybox Configuration $('[data-fancybox="gallery"]').fancybox({ buttons: [ "slideShow", "thumbs", "zoom", "fullScreen", "share", "close" ], loop: false, protect: true }); </script> </div> </div> </div> </section> <!-- ht-service-section end --> <!-- ht-counter-section start --> <div class="theme-bg ht-counter-section"> <div class="container d-flex align-items-center justify-content-between flex-wrap"> <div class="counter-style-two d-flex align-items-center mb-30"> <div class="icon"> <img src="assets/img/icon/icon-6.svg" alt="icon"> </div> <div class="counter-content"> <div class="number"><span class="counter">12</span>+</div> <div class="divider"></div> <p class="mb-0">Years Of Expertise</p> </div> </div> <div class="counter-style-two d-flex align-items-center mb-30"> <div class="icon"> <img src="assets/img/icon/icon-7.svg" alt="icon"> </div> <div class="counter-content"> <div class="number"><span class="counter">500</span>+</div> <div class="divider"></div> <p class="mb-0">Total Clients</p> </div> </div> <div class="counter-style-two d-flex align-items-center mb-30"> <div class="icon"> <img src="assets/img/icon/icon-8.svg" alt="icon"> </div> <div class="counter-content"> <div class="number"><span class="counter">500</span>+</div> <div class="divider"></div> <p class="mb-0">Customers Review</p> </div> </div> <div class="counter-style-two d-flex align-items-center mb-30"> <div class="icon"> <img src="assets/img/icon/icon-9.svg" alt="icon"> </div> <div class="counter-content"> <div class="number"><span class="counter">100</span></div> <div class="divider"></div> <p class="mb-0">Our Awards</p> </div> </div> </div> </div> <!-- ht-counter-section end --> <!-- ht-contact-section end --> <section class="ht-contact-section pt-50 pt-lg-60 pb-120 pb-lg-60 back"> <div class="container"> <div class="row align-items-center justify-content-center gx-lg-0"> <div class="col-lg-5 d-none d-sm-none d-md-none d-lg-block"> <div class="img-wrapper-seven text-center position-relative clientform"> <img class="main-img img-fluid d-none d-lg-inline-block img1" src="assets/img/main/6.webp" alt="media"> <img class="main-img w-100 d-lg-none d-inline-block" src="assets/img/media/media-33b.jpg" alt="media"> <div class="expe-box d-none d-md-inline-flex align-items-center justify-content-center"> <div class="icon"> <img src="assets/img/icon/icon-2.svg" alt="icon"> </div> <p><span class="counter">11</span>+ Years Of Experience</p> </div> </div> </div> <div class="col-lg-7"> <div class="contact-form-wrapper2 position-relative z-1"> <div class="title-style-one text-lg-start text-center mb-35"> <h2 class="section-title text-center text-black">Get In Touch</h2> </div> <form class="contact-form form-three row" method="POST" action="send_mail.php"> <div class="col-lg-6 col-md-6"> <div class="input-wrapper mb-10"> <span><i class="bi bi-person"></i></span> <input type="text" placeholder="Name" name="name" required> </div> </div> <div class="col-lg-6 col-md-6"> <div class="input-wrapper mb-10"> <span><i class="bi bi-envelope"></i></span> <input type="email" placeholder="Email" name="email" required> </div> </div> <div class="col-lg-6 col-md-6"> <div class="input-wrapper mb-10"> <span><i class="bi bi-phone"></i></span> <input type="text" placeholder="Phone" name="phone" class="phone" required> </div> </div> <div class="col-lg-6 col-md-6"> <div class="input-wrapper ch-service mb-30"> <select id="service" name="product" class="service-chose"> <option value="Chose Service">Choose Product</option> <?php $pro = mysqli_query($conn, "SELECT * FROM `tbl_product`"); while($row = mysqli_fetch_array($pro)) { $p_name = $row['p_name']; ?> <option value="<?php echo $p_name; ?>"><?php echo $p_name; ?></option> <?php } ?> </select> </div> </div> <!-- form code --> <div class="g-recaptcha form-group col-md-12 mb-3" data-sitekey="6LdWhb8qAAAAABZO-gA6yiy-qRXSflpUAnbAQtgt"></div> <div class="col-12 text-center mt-4"> <button type="submit" class="ht-btn border-0 w-100" name="submit">Request For Quote</button> </div> </form> <!--<img class="shape-2" src="assets/img/shape/shape-23.png" alt="shape">--> </div> </div> </div> </div> </section> <!-- ht-contact-section end --> <!-- ht-feedback-section start --> <section class="ht-feedback-section pt-50 pb-50 pt-lg-60 pb-lg-60"> <div class="feedback-wrapper-bg" data-background="assets/img/main/bg-5.webp"> <div class="container"> <div class="row justify-content-center align-items-center"> <div class="col-lg-6"> <div class="title-style-one text-lg-start text-center mb-35" data-aos="fade-right" data-aos-delay="100"> <!--<h5 class="upper-title bottom-line2 mb-15">Our History</h5>--> <h2 class="section-title">Clients Testimonial</h2> </div> </div> <div class="col-lg-6 text-lg-end text-center"> <div class="arrow-pagination-two d-none d-md-inline-block mb-35" data-aos="fade-left" data-aos-delay="100"> <div class="next-s2 me-3 slick-arrow"><i class="bi bi-arrow-left"></i> </div> <div class="prev-s2 slick-arrow"><i class="bi bi-arrow-right"></i></div> </div> </div> </div> <div class="feedback-active-two"> <div class="feedback-wrapper-two"> <div class="row align-items-center"> <div class="col-md-6 text-center"> <img src="assets/img/icon/icon-7.svg" alt="Icon" class="img-fluid"> </div> <div class="col-md-6 text-center star-name "> <div class="rating mb-15 mt-2"> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> </div> <h4 class="tf-title text-white mb-15">Amar Singh</h4> </div> <div class="col-md-12"> <p class="description text-white mb-10"> "Manral Solar provided top-notch service from start to finish. Our solar installation was smooth, efficient, and has significantly reduced our energy bills." </p> </div> </div> </div> <div class="feedback-wrapper-two"> <div class="row align-items-center"> <div class="col-md-6 text-center"> <img src="assets/img/icon/icon-7.svg" alt="Icon" class="img-fluid"> </div> <div class="col-md-6 text-center"> <div class="rating mb-15 mt-2"> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> <a href="#" tabindex="-1"><i class="bi bi-star-fill"></i></a> </div> <h4 class="tf-title text-white mb-15">Samar Singh</h4> </div> <div class="col-md-12"> <p class="description text-white mb-10"> "Exceptional service and quality! Manral Associates Solar exceeded our expectations in every aspect of our wind energy project." </p> </div> </div> </div> </div> </div> </div> </section> <!-- ht-feedback-section end --> <!-- ht-faq-one start --> <section class="ht-faq-one pt-50 pb-50 pt-lg-60 pb-lg-30"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="title-style-one pe-xxl-5 me-xxl-4 mb-30" data-aos="fade-right" data-aos-delay="150"> <h2 class="section-title mb-10 text-center">Have Your Any Question?</h2> <!--<p> We would also like to know your location, any local regulations, and your goals for--> <!-- energy independence or sustainability. Do you have preferences for solar panel types--> <!-- or additional features like battery storage? Lastly, what is your desired timeline--> <!-- for project completion, and are there any critical deadlines we should be aware?</p>--> </div> </div> <div class="col-lg-6"> <div class="faq-que-list mb-30"> <div class="accordion accordion-one" id="accordion2"> <div class="accordion-item" data-aos="fade-up" data-aos-delay="100"> <h2 class="accordion-header" id="headingOnes"> <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOnes" aria-expanded="true" aria-controls="collapseOnes"> Are Solar Farms Economical? </button> </h2> <div id="collapseOnes" class="accordion-collapse collapse show" aria-labelledby="headingOnes" data-bs-parent="#accordion2"> <div class="accordion-body"> <p>The cost of solar panels and related technology has significantly decreased over the past decade, making solar farms more affordable to install.</p> </div> </div> </div> <div class="accordion-item" data-aos="fade-up" data-aos-delay="100"> <h2 class="accordion-header" id="headingTwos"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwos" aria-expanded="false" aria-controls="collapseTwos"> Are Solar Panel Budget Friendly? </button> </h2> <div id="collapseTwos" class="accordion-collapse collapse" aria-labelledby="headingTwos" data-bs-parent="#accordion2"> <div class="accordion-body"> <p>Yes, solar panels are budget-friendly due to decreasing costs, low maintenance, and long-term savings on energy bills, making them an economical choice for sustainable and affordable energy.</p> </div> </div> </div> </div> </div> </div> <div class="col-lg-6"> <div class="faq-que-list mb-30"> <div class="accordion accordion-one" id="accordion2"> <div class="accordion-item" data-aos="fade-up" data-aos-delay="120"> <h2 class="accordion-header" id="headingThrees"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThrees" aria-expanded="false" aria-controls="collapseThrees"> what is the benefits of solar panel ? </button> </h2> <div id="collapseThrees" class="accordion-collapse collapse" aria-labelledby="headingThrees" data-bs-parent="#accordion2"> <div class="accordion-body"> <p>Solar panels offer cost savings on electricity bills, low maintenance, and environmental benefits by reducing greenhouse gas emissions. They provide energy independence, qualify for incentives, and can increase property value.</p> </div> </div> </div> <div class="accordion-item" data-aos="fade-up" data-aos-delay="150"> <h2 class="accordion-header" id="headingFours"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFours" aria-expanded="false" aria-controls="collapseFours"> what space is required for solar panel? </button> </h2> <div id="collapseFours" class="accordion-collapse collapse" aria-labelledby="headingFours" data-bs-parent="#accordion2"> <div class="accordion-body"> <p>Solar panels typically require 100 square feet per kW of installed capacity, meaning a 5 kW system needs about 500 square feet, varying with panel efficiency and installation conditions.</p> </div> </div> </div> </div> </div> </div> </div> </div> </section> <!-- ht-faq-one end --> <!-- ht-service-section start --> <section class="ht-service-section position-relative servicepics"> <div class="ht-service-wrapper-bg"> <div class="container"> <div class="row text-center"> <div class="title-style-one mb-45"> <h2 class="section-title" data-aos="fade-up" data-aos-delay="100"> Our Latest Blog </h2> <!-- <h2 class="section-title" data-aos="fade-up" data-aos-delay="150">Solar Panel Installation </h2> --> </div> <?php $blog = mysqli_query($conn, "SELECT * FROM `blogs` ORDER BY id limit 3"); while($rov = mysqli_fetch_array($blog)) { $name = $rov['name']; $banner = $rov['banner']; $short_description = $rov['short_description']; $blog_slug = $rov['slug']; ?> <div class="col-md-4 mb-4"> <div class="white-bg service-style-one"> <div class="service-thumb position-relative mb-15"> <img class="w-100" src="<?php path(); ?>/admin/assets/images/blog-image/<?php echo $banner; ?>" alt="service"> </div> <div class="content"> <h4 class="service-title mb-10"><a href="<?php path(); ?>/blog/<?php echo $blog_slug; ?>"><?php echo $name; ?> </a></h4> <p class="para"><?php echo $short_description; ?></p> <a href="<?php path(); ?>/blog/<?php echo $blog_slug; ?>" style="color: #063579;">Read More</a> </div> </div> </div> <?php } ?> </div> </div> </div> </section> <!-- ht-feedback-section end --> </main> <?php include_once('include/footer.php'); ?> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <div class="row" style="width: 100%;"> <div class="col-md-11 col-11"> <h4>Install Solar Power Plant with Manral Associates</h4> </div> <div class="col-md-1 col-1"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">X</button> </div> </div> <!--<p>Please fill the form below with valid details to get consultation from us</p>--> </div> <div class="modal-body"> <div class="row"> <div class="col-sm-6"> <div class=" " > <div class="card-body"> <div class="row"> <!--<div class="col-md-3 col-3">--> <!-- <img src="img/icons/solar-street.jpg" style="width: 100%; height: 100%; border-radius: 50px;">--> <!--</div>--> <div class="col-md-6 mb-3"> <div class="pop-cat"> <h5 class="text-white">Solar Rooftop Power Plant</h5> </div> </div> <div class="col-md-6 mb-3"> <div class="pop-cat"> <h5 class="text-white">Solar Street Light</h5> </div> </div> </div> </div> </div> <div class=" " > <div class="card-body"> <div class="row"> <!--<div class="col-sm-3 col-3">--> <!-- <img src="img/icons/solar-water.webp" style="width: 100%; height: 100%; border-radius: 50px;">--> <!--</div>--> <div class="col-sm-6 mb-3"> <div class="pop-cat"> <h5 class="text-white">Solar Water Heater</h5> </div> </div> <div class="col-sm-6 mb-3"> <div class="pop-cat"> <h5 class="text-white">Grount Mounted Solar Power Plant</h5> </div> </div> </div> </div> </div> <div class=""> <div class="card-body"> <div class="row"> <!--<div class="col-sm-3 col-3">--> <!-- <img src="img/icons/waterpump1.jpg" style="width: 100%; height: 100%; border-radius: 50px;">--> <!--</div>--> <div class="col-sm-6 mb-3"> <div class="pop-cat"> <h5 class="text-white">Solar Water Pump</h5> </div> </div> </div> </div> </div> </div> <div class="col-sm-6"> <form method="POST" action="send_mail.php"> <div class="row"> <div class="col-sm-6 mb-2"> <div class="form-group"> <input type="text" class="form-control" name="name" placeholder="Name" style="background: #ff6f01"> </div> </div> <div class="col-sm-6 mb-2"> <div class="form-group"> <input type="text" class="form-control phone" name="phone" placeholder="Phone No" style="background: #ff6f01"> </div> </div> <div class="col-sm-6 mb-2"> <div class="form-group"> <input type="email" class="form-control" name="email" placeholder="Email Id" style="background: #ff6f01"> </div> </div> <div class="col-sm-6 mb-2"> <div class="form-group"> <input type="text" class="form-control" name="product" placeholder="Subject" style="background: #ff6f01"> </div> </div> <div class="col-sm-12 mb-2"> <div class="form-group"> <textarea class="form-control" placeholder="Message" name="message" rows="4" cols="5" style="background: #ff6f01"></textarea> </div> </div> <!-- form code --> <div class="g-recaptcha form-group col-md-12 mb-3" data-sitekey="6LdWhb8qAAAAABZO-gA6yiy-qRXSflpUAnbAQtgt"></div> </div> <center> <button type="submit" name="submit" class="btn btn-dark mb-4" style="background: #073579;">Submit</button> </center> <a href="tel:919639334150" class="btn" style="margin-top: 10px; background: #4682b4; color: #fff"><i class="bx bx-phone-call" style="color: #fff;"></i> Call Now</a> <a href="https://api.whatsapp.com/send?phone=+919639334150&text=Hi,%20I%20contacted%20you%20Through%20your%20website" class="btn" style="margin-top: 10px; background: #25d366; color: #fff;"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-whatsapp" viewBox="0 0 16 16"> <path d="M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"/> </svg> Chat With Us</a> <a href="mailto:massolar@gmail.com" class="btn btn-danger" style="margin-top: 10px;"><i class="bx bxl-gmail"></i> Email</a> </form> </div> </div> </div> </div> </div> </div> <script> $(window).on('load',function(){ var delayMs = 1500; // delay in milliseconds setTimeout(function(){ $('#myModal').modal('show'); }, delayMs); }); </script> <script> function checkInputPhoneValidation(element) { let phoneNumber = element.value.replace(/\D/g, ''); // Filter to numbers if (phoneNumber.length > 10) { phoneNumber = phoneNumber.substr(0, 10); // Keep only the first 10 digits } element.value = phoneNumber; // Display warning if the phone number is less than 10 characters const warningElement = element.parentNode.querySelector('span.warning'); if (phoneNumber.length < 10 && phoneNumber.length > 0) { if (!warningElement) { const warning = document.createElement('span'); warning.textContent = 'The phone number should consist of 10 digits.'; warning.style.color = 'red'; warning.classList.add('warning'); element.parentNode.appendChild(warning); } element.removeAttribute('valid'); // Remove 'valid' attribute if not meeting rules // or can use: element.setAttribute('valid', 'false'); } else if (phoneNumber.length < 10 && element.hasAttribute('required') && element.getAttribute('required').toLowerCase() !== 'false') { element.removeAttribute('valid'); // or can use: element.setAttribute('valid', 'false'); } else { if (warningElement) { warningElement.remove(); } element.setAttribute('valid', 'true'); // Add 'valid' attribute if meeting rules } } function addInputPhoneValidation(element) { element.addEventListener('input', function () { checkInputPhoneValidation(this); }); } /** * Querying all input fields with the 'phone' class * and associating an event listener with each of them. */ const phoneElements = document.querySelectorAll('input.phone'); phoneElements.forEach((phoneElement) => { addInputPhoneValidation(phoneElement); // Perform initial validation without triggering the input event checkInputPhoneValidation(phoneElement); }); /** * Function to log the 'phoneElements' to the console * - JUST DEBUG FUNCTION */ function logPhoneElements() { document.querySelectorAll('input.phone').forEach((e) => console.log(e, `- Valid? ${isValidInputPhone(e)}`)); } /** * Function to check if the input phone field is valid * - The input element to check * - True if valid, false otherwise */ function isValidInputPhone(element) { if (element.hasAttribute('required') && element.getAttribute('required').toLowerCase() !== 'false') { return element.value.length === 10 && Boolean(element.getAttribute('valid')); } else { return Boolean(element.getAttribute('valid')); } } /** * Submit function that checks if all input phone fields are valid */ </script> </body> </html>
Save
Cancel