D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
buildteksolution
/
www
/
joy
/
Filename :
index.php
back
Copy
<!DOCTYPE html> <?php if(isset($_POST['submit'])){ $curdate= date('d-m-Y'); $ToEmail = 'buildteksolutions4u@gmail.com'; $EmailSubject = 'Visiting Card Enquiry Data'; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY .= "Name: ".nl2br($_POST["name"]).("<br>"); $MESSAGE_BODY .= "Email: ".nl2br($_POST["email"]).("<br>"); $MESSAGE_BODY .= "Number: ".nl2br($_POST["number"]).("<br>"); $MESSAGE_BODY .= "Date: ".$curdate.("<br>"); mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); // $sql="INSERT INTO `leads`(`name`, `email`, `number`, `city`, `service`, `date`) VALUES ('".$_POST['name']."','".$_POST['email']."','".$_POST['phone']."','".$_POST['city']."','".$_POST['service']."','".$curdate."')"; // $result=mysqli_query($con,$sql); echo "<script type='text/javascript'>alert(\"Submitted Successfully\") location.href='https://buildteksolutions.com/index.php'; </script>"; } ?> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Joy Titus </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-touch-fullscreen" content="yes"> <meta name="HandheldFriendly" content="True"> <link rel="shortcut icon" type="image/x-icon" href="https://buildteksolutions.com/assets/images/logos/favicon.png"> <link rel="stylesheet" href="custom/theme2/css/bootstrap.min.css"> <link rel="stylesheet" href="custom/theme2/modal/bootstrap.min.css"> <script src="custom/theme2/modal/jquery.min.js"></script> <script src="custom/theme2/modal/bootstrap.min.js"></script> <link rel="stylesheet" href="custom/theme2/fontawesome-free/css/all.min.css"> <link rel="stylesheet" href="custom/theme2/css/styles/color1-theme2/style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style type="text/css"> .vCard{ margin: 10px 0; border-radius: 20px; } html.modal-open .vCard { filter: blur(10px); } html.modal-open .modal-backdrop.in { background: #b9b9b9; } </style> </head> <body> <div class="wrapper" id="boxes"> <div class="vCard"> <div class="vCard-header"> <div class="bg-white overflow-hidden"> <div class="banner-image"> <div class="banner-image-main"> <img src="banner16367162251765278048.jpg" id="banner_preview" alt="fs"> </div> <div class="media align-items-center justify-content-center profile-head"> <div class="profile"> <img src="logo_16367162251917813340.png" id="business_logo_preview" alt="user" class="mb-4 img-thumbnail"> </div> </div> </div> <div class="vcard-description"> <h1 id="11_title_preview">Joy Titus </h1> <h6 id="11_designation_preview">Managing Director & Technical Expert</h6> </div> <div id="showContact_preview"> <div class="section-line"></div> <div class="text-center card-contact"> <ul id="inputrow_contact_preview"> <li class="d-flex align-items-center justify-content-start" id="contact_1"> <div class="image-icon"> <i class="fa fa-phone" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <a href="tel:+919845478566" target="_blank"> <h4 id="Phone_1_preview">+919845478566</h4> </a> </div> </li> <li class="d-flex align-items-center justify-content-start" id="contact_2"> <div class="image-icon"> <i class="fa fa-envelope" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <a href="mailto:buildteksolutions4u@gmail.com" target="_blank"> <h4 id="Email_1_preview" style=" font-size: 29px; ">buildteksolutions4u@gmail.com</h4> </a> </div> </li> </ul> </div> </div> <div id="business-hours-div"> <div class="section-line"></div> <div class="card-contact"> <div class=""> <ul> <li class="d-flex align-items-center justify-content-start"> <div class="image-icon"> <i class="fa fa-clock" style=" font-size: 36px; color: #e8271e; "></i> </div> <div class="contact-text"> <h3>Business Hours</h3> </div> </li> </ul> </div> <div class="card-business-hours"> <ul> <li> <p>Sunday:<span class="days_sun"> Closed </span> </p> </li> <li> <p>Monday:<span class="days_mon"> <span class="days_mon_start">9:00</span>-<span class="days_mon_end">6:30pm</span> </span> </p> </li> <li> <p>Tuesday:<span class="days_tue"> <span class="days_tue_start">9:00</span>-<span class="days_tue_end">6:30pm</span> </span> </p> </li> <li> <p>Wednesday:<span class="days_wed"> <span class="days_wed_start">9:00</span>-<span class="days_wed_end">6:30pm</span> </span> </p> </li> <li> <p>Thursday:<span class="days_thu"> <span class="days_thu_start">9:00</span>-<span class="days_thu_end">6:30pm</span> </span> </p> </li> <li> <p>Friday:<span class="days_fri"> <span class="days_fri_start">9:00</span>-<span class="days_fri_end">6:30pm</span> </span> </p> </li> <li> <p>Saturday:<span class="days_sat"> <span class="days_fri_start">9:00</span>-<span class="days_fri_end">6:30pm</span> </span> </p> </li> </ul> </div> </div> </div> <div id="appointment-div"> <div class="section-line"></div> <div class="card-contact"> <div class=""> <ul> <li class="d-flex align-items-center justify-content-start"> <div class="image-icon"> <i class="fa fa-calendar" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <h3> <span> Make an </span> appointment</h3> </div> </li> </ul> </div> <div class="text-center card-business-hours"> <div class="make-an-appointment d-flex"> <div class="lable-custom" style=" width: 10%; "></div> <div class="make-an-appointment-btn"> <button type="button" data-toggle="modal" data-target="#appointment-modal" class="make-an-appointment-btn-main d-flex align-items-center justify-content-center w-100"> <i class="fa fa-calendar" style=" font-size: 20px; color: #fff; "></i> <h4>Make an appointment</h4> </button> </div> </div> </div> </div> </div> <div id="services-div"> <div class="section-line"></div> <div class="card-contact"> <div class=""> <ul> <li class="d-flex align-items-center justify-content-start"> <div class="image-icon"> <i class="fa fa-wrench" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <h3> <span> </span> Services</h3> </div> </li> </ul> </div> </div> <div class="card-contact"> <div class="container-lg"> <div class="row" id="inputrow_service_preview"> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="1.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Waterproofing </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/waterfalls.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Waterfalls </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/terrace.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Terrace Vegetable Gardening </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/column.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Column Strengthening </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/heat.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Heat Proof Coating </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/base.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Basement Treatment </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/base.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Basement Treatment </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> <div class="col-lg-6" id="services_0"> <div class="service-card pb-3"> <div class="service-card-img testimonials_image"> <img id="s_image0_preview" src="images/joints.png" alt="image" class="img-fluid"> </div> <div class="service-card-heading"> <h3 id="title_0_preview"> Expansion<br>Joints </h3> <div class="card-footer justify-content-center text-center pb-0"> <a href="https://buildteksolutions.com/" class="text-white text-lg" target="_blank">Know More</a> <i class="fas fa-angle-double-right text-white"></i> </div> </div> </div> </div> </div> </div> </div> </div> <div class="section-line"></div> <div class="card-contact"> <div class=""> <ul> <li class="d-flex align-items-center justify-content-start"> <div class="image-icon"> <i class="fa fa-bookmark" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <h3> <span> </span> More</h3> </div> </li> </ul> </div> </div> <div class="card-contact pt-0"> <div class="text-center card-business-hours"> <!-- <div class="make-an-appointment d-flex mb-3">--> <!-- <div class="w-100">--> <!-- <button type="button"--> <!-- class="make-an-appointment-btn-main d-flex align-items-center justify-content-center w-100" onclick="location.href = 'download/william-perez.vcf'">--> <!-- <i class="fa fa-folder" style="--> <!-- font-size: 30px;--> <!-- color: #fff;--> <!--"></i>--> <!-- <h4>Save card</h4>--> <!-- </button>--> <!-- </div>--> <!-- </div>--> <div class="make-an-appointment d-flex mb-3"> <div class="w-100"> <a href="https://api.whatsapp.com/send?phone=+919845478566&text=Hello"> <button type="button" class="make-an-appointment-btn-main d-flex align-items-center justify-content-center w-100" > <i class="fa fa-whatsapp" style=" font-size: 30px; color: #fff; "></i> <h4>Whatsapp</h4> </button></a> </div> </div> <div class="make-an-appointment d-flex mb-3"> <div class="w-100"> <a href="tel:+919845478566"> <button type="button" class="make-an-appointment-btn-main d-flex align-items-center justify-content-center w-100" > <i class="fa fa-phone" style=" font-size: 30px; color: #fff; "></i> <h4>Contact</h4> </button> </a> </div> </div> </div> </div> <div class="social-div"> <div class="section-line"></div> <div class="card-contact"> <div class=""> <ul> <li class="d-flex align-items-center justify-content-start"> <div class="image-icon"> <i class="fa fa-share-alt" style=" font-size: 30px; color: #e8271e; "></i> </div> <div class="contact-text"> <h3> <span> </span> Social</h3> </div> </li> </ul> </div> </div> <div class="social-icon"> <div class="text-center card-business-hours pb-20 res-pt-0e"> <div class="container-lg"> <div class="row"> <div class="social-icon-main w-100"> <div class="row justify-content-center" id="inputrow_socials_preview"> <div class="col-3 social-image-icon mb-3 " id="socials_1"> <a href="#" target="_blank" style="text-decoration:none;"> <i class="fa fa-twitter" style=" font-size: 30px; color: #e8271e; "></i> </a> </div> <div class="col-3 social-image-icon mb-3 " id="socials_2"> <a href="#" target="_blank" style="text-decoration:none;"> <i class="fa fa-youtube" style=" font-size: 30px; color: #e8271e; "></i> </a> </div> <div class="col-3 social-image-icon mb-3 " id="socials_3"> <a href="#" target="_blank" style="text-decoration:none;"> <i class="fa fa-facebook" style=" font-size: 30px; color: #e8271e; "></i> </a> </div> <div class="col-3 social-image-icon mb-3 " id="socials_4"> <a href="#" target="_blank" style="text-decoration:none;"> <i class="fa fa-instagram" style=" font-size: 30px; color: #e8271e; "></i> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade appointment-modal" id="appointment-modal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header border-0"> <div class="modal-custom-header d-flex align-items-center justify-content-between w-100"> <h4 class="modal-title" style="color:#fff !important;">Make Appointment</h4> <button type="button" class="back-btn d-flex align-items-center justify-content-center" data-dismiss="modal"> <img src="custom/theme2/icon/close.svg" alt="back" class="img-fluid"> </button> </div> </div> <div class="modal-body px-4"> <form class="appointment-form" action="" method="post"> <div class="form-group"> <label for="recipient-name" class="col-form-label" style="color:#fff !important;">Name:</label> <input type="text" name="name" placeholder="Enter your name" class="form-control" required/> </div> <div class="form-group"> <label for="message-text" class="col-form-label" style="color:#fff !important;">Email:</label> <input type="email" name="email" placeholder="Enter your email" class="form-control" required> </div> <div class="form-group"> <label for="message-text" class="col-form-label" style="color:#fff !important;">Phone:</label> <input type="text" name="number" placeholder="Enter your phone no." class="form-control" required> </div> <div class="form-btn-group"> <button type="button" class="btn form-btn--close" data-dismiss="modal">Close</button> <button type="submit" class="btn form-btn--submit" name="submit">Make Appointment</button> </div> </form> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade qr-modal" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header border-0"> <div class="modal-custom-header d-flex align-items-center justify-content-between w-100"> <button type="button" class="back-btn d-flex align-items-center justify-content-center" data-dismiss="modal"> <img src="custom/theme2/img/back.svg" alt="back" class="img-fluid"> </button> <h4 class="modal-title">Share this card</h4> <button type="button" class="logout-btn"> <img src="custom/theme2/icon/black/signout.svg" alt="signout" class="img-fluid"> </button> </div> </div> <div class="modal-body border-0"> <div class="modal-body-section text-center"> <div class="qr-main-image"> <div class="qr-code-border"> <img src="custom/theme2/icon/left-top.svg" alt="left-top" class="img-fluid left-top-border"> <img src="custom/theme2/icon/left-bottom.svg" alt="left-bottom" class="img-fluid left-bottom-border"> <img src="custom/theme2/icon/right-top.svg" alt="right-top" class="img-fluid right-top-border"> <img src="custom/theme2/icon/right-bottom.svg" alt="right-bottom" class="img-fluid right-bottom-border"> </div> <div class="qrcode mt-3"></div> </div> <div class="text"> <p> Point your camera at the QR code, or visit <span class="qr-link text-center mr-2"></span> </p> </div> <div class="text"> <p class="mb-0"> Or check my social channels </p> </div> <div class="social-icon-section modal-social-icon-section"> <div class="text-center card-business-hours pb-20"> <div class="container-lg"> <div class="row justify-content-center inputrow_socials_preview" id="inputrow_socials_preview"> <div class="col-2" id="socials_1"> <span > <a href="https://twitter.com/" class="social_link_1_href_preview" id="social_link_1_href_preview" target="_blank"> <div class="image-icon"> <img src="custom/theme2/icon/color1/modal/twitter.svg" alt="Twitter" class="img-fluid"> </div> </a> </span> </div> <div class="col-2" id="socials_3"> <span > <a href="https://youtube.com/" class="social_link_3_href_preview" id="social_link_3_href_preview" target="_blank"> <div class="image-icon"> <img src="custom/theme2/icon/color1/modal/youtube.svg" alt="Youtube" class="img-fluid"> </div> </a> </span> </div> <div class="col-2" id="socials_5"> <span > <a href="https://facebook.com/" class="social_link_5_href_preview" id="social_link_5_href_preview" target="_blank"> <div class="image-icon"> <img src="custom/theme2/icon/color1/modal/facebook.svg" alt="Facebook" class="img-fluid"> </div> </a> </span> </div> <div class="col-2" id="socials_7"> <span > <a href="https://instagram.com/" class="social_link_7_href_preview" id="social_link_7_href_preview" target="_blank"> <div class="image-icon"> <img src="custom/theme2/icon/color1/modal/instagram.svg" alt="Instagram" class="img-fluid"> </div> </a> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="modal fade modal appointment-modal" id="mycontactModal" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header border-0"> <div class="modal-custom-header d-flex align-items-center justify-content-between w-100"> <h4 class="modal-title">Make Contact</h4> <button type="button" class="back-btn d-flex align-items-center justify-content-center" data-dismiss="modal"> <img src="custom/theme1/icon/color1/close.svg" alt="back" class="img-fluid"> </button> </div> </div> <div class="modal-body px-4"> <form action="https://buildteksolutions.com/vcardgo-saas/contacts/store" method="post"> <input type="hidden" name="_token" value="xJD6u4onIDv436gyZk58AE0D321TU3sSpnY0JjVt"> <div class="form-group"> <label for="recipient-name" class="col-form-label">Name:</label> <input type="text" name="name" placeholder="Enter your name" class="form-control" id="recipient-name"> </div> <div class="form-group"> <label for="message-text" class="col-form-label">Email:</label> <input type="email" name="email" placeholder="Enter your email" class="form-control" id="recipient-name"> </div> <div class="form-group"> <label for="message-text" class="col-form-label">Phone:</label> <input type="text" name="phone" placeholder="Enter your phone no." class="form-control" id="recipient-name"> </div> <div class="form-group"> <label for="message-text" class="col-form-label">Message:</label> <textarea name="message" placeholder="Enter your Message." class="form-control" id="recipient-name"></textarea> </div> <input type="hidden" name="business_id" value="11"> <div class="form-btn-group"> <button type="button" class="btn form-btn--close" data-dismiss="modal">Close</button> <button type="submit" class="btn form-btn--submit">Make Contact</button> </div> </form> </div> </div> </div> </div> <div class="modal fade modal appointment-modal" id="passwordmodel" role="dialog" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header border-0"> <div class="modal-custom-header d-flex align-items-center justify-content-between w-100"> <h4 class="modal-title mt-2">Enter Password</h4> </div> </div> <div class="modal-body px-4"> <form class="appointment-form"> <div class="form-group"> <label for="recipient-name" class="col-form-label">Password:</label> <input type="password" name="Password" placeholder="Enter password" class="form-control password_val" id="recipient-name" placeholder="Password"> <div class=""> <span class="text-danger h5 span-error-password"></span> </div> </div> <div class="form-btn-group "> <button type="button" class="btn form-btn--submit password-submit">Submit</button> </div> </form> </div> </div> </div> </div> <script src="../../cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> --> <script src="../../maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <script src="../../cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.3/picker.js"></script> <script src="../../cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.3/picker.date.js"></script> <script src="custom/js/jquery.qrcode.js"></script> <script type="text/javascript" src="../../jeromeetienne.github.io/jquery-qrcode/src/qrcode.js"></script> <script> //$(`.rating_preview`).attr('id'); let ispassword; var ispassenable = ''; var business_password = ''; if(ispassenable == 'on'){ $('.password-submit').click(function(){ ispassword = 'true'; passwordpopup('true'); }); function passwordpopup(type){ if(type == 'false'){ $('#passwordmodel').modal('show'); $('html').addClass('modal-open'); $('#passwordmodel').modal({ backdrop: 'static', keyboard: false }) }else{ var password_val = $('.password_val').val(); if(password_val == business_password){ $('#passwordmodel').modal('hide'); $('html').removeClass('modal-open'); }else{ $(`.span-error-password`).text("*Please enter correct password"); passwordpopup('false'); } } } if(ispassword == undefined){ passwordpopup('false'); } } $( document ).ready(function() { $(`.span-error-date`).text(""); $(`.span-error-time`).text(""); $(`.span-error-name`).text(""); $(`.span-error-email`).text(""); var slug = 'william-perez'; var url_link = `https://buildteksolutions.com/vcardgo-saas/${slug}`; $(`.qr-link`).text(url_link); $('.qrcode').qrcode({width: 180,height: 180,text: url_link}); }); $(`.rating_preview`).attr('id'); var from_$input = $('#input_from').pickadate(), from_picker = from_$input.pickadate('picker') var to_$input = $('#input_to').pickadate(), to_picker = to_$input.pickadate('picker') var is_enabled = "1"; if(is_enabled){ $('#business-hours-div').show(); }else{ $('#business-hours-div').hide(); } var is_enable_appoinment = "1"; if(is_enable_appoinment){ $('#appointment-div').show(); }else{ $('#appointment-div').hide(); } var is_enable_service = "1"; if(is_enable_service){ $('#services-div').show(); }else{ $('#services-div').hide(); } var is_enable_testimonials = "1"; if(is_enable_testimonials){ $('#testimonials-div').show(); }else{ $('#testimonials-div').hide(); } var is_enable_sociallinks = "1"; if(is_enable_sociallinks){ $('.social-div').show(); }else{ $('.social-div').hide(); } $( `#makeappointment` ).click(function() { $(`.span-error-date`).text(""); $(`.span-error-time`).text(""); $(`.span-error-name`).text(""); $(`.span-error-email`).text(""); var name = $(`.app_name`).val(); var email = $(`.app_email`).val(); var date = $(`.app_date`).val(); var phone = $(`.app_phone`).val(); var time = $("input[type='radio']:checked").data('id'); var business_id = '11'; function formatDate(date) { var d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear(); if (month.length < 2) month = '0' + month; if (day.length < 2) day = '0' + day; return [year, month, day].join('-'); } if(date == ""){ $(`.span-error-date`).text("*Please choose date"); $("[data-dismiss=modal]").trigger({ type: "click" }); } else if(document.querySelectorAll('input[type="radio"][name="time"]:checked').length < 1){ $(`.span-error-time`).text("*Please choose time"); $("[data-dismiss=modal]").trigger({ type: "click" }); } else if(name == ""){ $(`.span-error-name`).text("*Please enter your name"); } else if(email == ""){ $(`.span-error-email`).text("*Please enter your email"); } else if(phone == ""){ //alert("DSfgbn"); $(`.span-error-phone`).text("*Please enter your phone no."); } else{ $(`.span-error-date`).text(""); $(`.span-error-time`).text(""); $(`.span-error-name`).text(""); $(`.span-error-email`).text(""); date = formatDate(date); $.ajax({ url: 'https://buildteksolutions.com/vcardgo-saas/appoinment/make-appointment', type: 'POST', data: { "name": name,"email": email,"phone":phone,"date": date,"time": time,"business_id": business_id, "_token": "xJD6u4onIDv436gyZk58AE0D321TU3sSpnY0JjVt", "name": name,"email": email,"date": date,"time": time,"business_id": business_id, "_token": "xJD6u4onIDv436gyZk58AE0D321TU3sSpnY0JjVt", }, success: function (data) { location.reload(); $("[data-dismiss=modal]").trigger({ type: "click" }); } }); } }); /*$('.appointmentModal').click(function(){ $(`#appointmentModal`).modal("show"); }); $( ".appointmentModal" ).click(function() { alert( "Handler for .click() called." ); });*/ // Check if there’s a “from” or “to” date to start with. // if (from_picker.get('value')) { // to_picker.set('min', from_picker.get('select')) // } // if (to_picker.get('value')) { // from_picker.set('max', to_picker.get('select')) // } // When something is selected, update the “from” and “to” limits. // from_picker.on('set', function (event) { // if (event.select) { // to_picker.set('min', from_picker.get('select')) // } // else if ('clear' in event) { // to_picker.set('min', false) // } // }) // to_picker.on('set', function (event) { // if (event.select) { // from_picker.set('max', to_picker.get('select')) // } // else if ('clear' in event) { // from_picker.set('max', false) // } // }) </script> <!-- Google Analytic Code --> <script async src="https://www.googletagmanager.com/gtag/js?id=xxx-sdsds-DDDD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'xxx-sdsds-DDDD'); </script> <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', '../../connect.facebook.net/en_US/fbevents.js'); fbq('init', 'xxx-sdsds-DDDD-45656789'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=0000&ev=PageView&noscript=xxx-sdsds-DDDD-45656789" /></noscript> <!-- Custom Code --> <script type="text/javascript"> console.log('hello f'); </script> </body> </html>