modified contact inform form
This commit is contained in:
parent
731981f36a
commit
158bd61be7
3 changed files with 210 additions and 226 deletions
|
@ -62,7 +62,7 @@ h3 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5{
|
h5 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,13 @@ p {
|
||||||
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
|
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: dotted #EAF6F6 6px;
|
||||||
|
border-bottom: none;
|
||||||
|
width: 20%;
|
||||||
|
/* margin: 100px auto; */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* navigation bar */
|
/* navigation bar */
|
||||||
|
|
||||||
|
@ -135,26 +142,24 @@ p {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Worker profiles */
|
/* Worker profiles */
|
||||||
.profile{
|
|
||||||
|
.profile {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile_names{
|
.profile_names {
|
||||||
font-size:25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name_text{
|
.name_text {
|
||||||
font-weight
|
font-weight
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Features section */
|
/* Features section */
|
||||||
|
|
||||||
#features {
|
#features {
|
||||||
|
@ -252,13 +257,13 @@ input:invalid+span:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '✖';
|
content: '✖';
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:valid+span:after {
|
input:valid+span:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '✓';
|
content: '✓';
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Footer section */
|
/* Footer section */
|
||||||
|
|
141
index.html
141
index.html
|
@ -5,34 +5,19 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Batuhan's Bikes</title>
|
<title>Batuhan's Bikes</title>
|
||||||
<!-- Google fonts -->
|
<!-- Google fonts -->
|
||||||
<link
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;900&family=Ubuntu:wght@300;400;700&display=swap" rel="stylesheet">
|
||||||
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;900&family=Ubuntu:wght@300;400;700&display=swap"
|
|
||||||
rel="stylesheet">
|
|
||||||
<!-- CSS stylesheet -->
|
<!-- CSS stylesheet -->
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet" href="css/styles.css">
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
<!-- fontawesome -->
|
<!-- fontawesome -->
|
||||||
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
|
||||||
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
|
|
||||||
|
|
||||||
<!-- Bootstrap Scripts -->
|
<!-- Bootstrap Scripts -->
|
||||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||||
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||||
crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
|
|
||||||
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
|
|
||||||
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
|
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
|
||||||
<link rel="stylesheet" href="/resources/demos/style.css">
|
<link rel="stylesheet" href="/resources/demos/style.css">
|
||||||
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
|
||||||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
|
||||||
<script>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -47,8 +32,7 @@
|
||||||
<!-- Nav Bar -->
|
<!-- Nav Bar -->
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||||
<a class="navbar-brand" href="#">Batuhan's Bikes</a>
|
<a class="navbar-brand" href="#">Batuhan's Bikes</a>
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02"
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
|
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
|
||||||
|
@ -71,8 +55,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<h1 class="big-heading">Nothing beats the high of a good bike ride. </h1>
|
<h1 class="big-heading">Nothing beats the high of a good bike ride. </h1>
|
||||||
<button type="button" onclick="toAppointment()" class="btn btn-lg btn-dark download-btn"><i
|
<button type="button" onclick="toAppointment()" class="btn btn-lg btn-dark download-btn"><i class="fas fa-bicycle"></i> Book an
|
||||||
class="fas fa-bicycle"></i> Book an
|
|
||||||
Appointment</button>
|
Appointment</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -229,8 +212,7 @@
|
||||||
<img class="title-image" src="images/brake.jpg" alt="bike1">
|
<img class="title-image" src="images/brake.jpg" alt="bike1">
|
||||||
<p>Repair Using Standard kit</p>
|
<p>Repair Using Standard kit</p>
|
||||||
<p>Part Replacement</p>
|
<p>Part Replacement</p>
|
||||||
<button type="button" onclick="toAppointment()"
|
<!-- <button type="button" onclick="toAppointment()" class="btn btn-block btn-outline-dark btn-lg">Select</button> -->
|
||||||
class="btn btn-block btn-outline-dark btn-lg">Select</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -245,8 +227,7 @@
|
||||||
<img class="title-image" src="images/tire.jpg" alt="bike2">
|
<img class="title-image" src="images/tire.jpg" alt="bike2">
|
||||||
<p> Repair Using Advanced Kit</p>
|
<p> Repair Using Advanced Kit</p>
|
||||||
<p> Part Replacement</p>
|
<p> Part Replacement</p>
|
||||||
<button type="button" onclick="toAppointment()"
|
<!-- <button type="button" onclick="toAppointment()" class="btn btn-block btn-outline-dark btn-lg">Select</button> -->
|
||||||
class="btn btn-block btn-outline-dark btn-lg">Select</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -262,8 +243,7 @@
|
||||||
<img class="title-image" src="images/maintenance.jpg" alt="bike3">
|
<img class="title-image" src="images/maintenance.jpg" alt="bike3">
|
||||||
<p>Full Part Replacement</p>
|
<p>Full Part Replacement</p>
|
||||||
<p>Full Cleaning</p>
|
<p>Full Cleaning</p>
|
||||||
<button type="button" onclick="toAppointment()"
|
<!-- <button type="button" onclick="toAppointment()" class="btn btn-block btn-outline-dark btn-lg">Select</button> -->
|
||||||
class="btn btn-block btn-outline-dark btn-lg">Select</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -306,8 +286,7 @@
|
||||||
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
|
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script
|
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC5TiZoTEwEcB_HUZRhe_rXrcSWW1Z5x8I&callback=myMap"></script>
|
||||||
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC5TiZoTEwEcB_HUZRhe_rXrcSWW1Z5x8I&callback=myMap"></script>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -319,21 +298,25 @@
|
||||||
|
|
||||||
<h2 class="big-heading"> <i class="far fa-clock"></i> Book an Appointment</h2>
|
<h2 class="big-heading"> <i class="far fa-clock"></i> Book an Appointment</h2>
|
||||||
<!-- Accordion for booking a service-->
|
<!-- Accordion for booking a service-->
|
||||||
|
<form onsubmit="validateForm()" method="post">
|
||||||
|
|
||||||
<div id="accordion">
|
<div id="accordion">
|
||||||
|
<!-- Service Accordion -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header" id="headingOne">
|
<div class="card-header" id="headingOne">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
||||||
Book Services
|
Book Services
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Service Accordion Content -->
|
||||||
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
|
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h2><i class="fas fa-toolbox"></i> Services</h2>
|
<h2><i class="fas fa-toolbox"></i> Services</h2>
|
||||||
<p>Please select services you require</p>
|
<p>Please select services you require</p>
|
||||||
<select class="form-select form-select-sm" aria-label=".form-select-sm example">
|
<!-- select services -->
|
||||||
|
<select class="form-select form-select-sm" id="selectService" name="services" aria-label=".form-select-sm example">
|
||||||
<option selected>Select Service</option>
|
<option selected>Select Service</option>
|
||||||
<option value="1">Brake Repair</option>
|
<option value="1">Brake Repair</option>
|
||||||
<option value="2">Fixing Punctures</option>
|
<option value="2">Fixing Punctures</option>
|
||||||
|
@ -343,7 +326,8 @@
|
||||||
<hr>
|
<hr>
|
||||||
<h2><i class="fas fa-users"></i> Mechanics</h2>
|
<h2><i class="fas fa-users"></i> Mechanics</h2>
|
||||||
<p>Please select your technican</p>
|
<p>Please select your technican</p>
|
||||||
<select class="form-select form-select-sm" aria-label=".form-select-sm example" onchange="getMechanic(this)">
|
<!-- select technican -->
|
||||||
|
<select class="form-select form-select-sm" id="selectTechnican" name="technicans" aria-label=".form-select-sm example" onchange="getMechanic(this)">
|
||||||
<option selected>Select technican</option>
|
<option selected>Select technican</option>
|
||||||
<option value="1">Batuhan</option>
|
<option value="1">Batuhan</option>
|
||||||
<option value="2">Mumen </option>
|
<option value="2">Mumen </option>
|
||||||
|
@ -354,32 +338,34 @@
|
||||||
<!-- notify user of the availability of technican before selecting time, let them block dates that arent bookable and let users know-->
|
<!-- notify user of the availability of technican before selecting time, let them block dates that arent bookable and let users know-->
|
||||||
<h2><i class="fas fa-calendar-plus"></i> Appointment Time</h2>
|
<h2><i class="fas fa-calendar-plus"></i> Appointment Time</h2>
|
||||||
<p>Please select an appointment time</p>
|
<p>Please select an appointment time</p>
|
||||||
|
<!-- Select Appointment Date and Time -->
|
||||||
<div class="request-label">
|
<div class="request-label">
|
||||||
<label for="appTime">Choose an appointment date: </label>
|
<label for="appTime">Choose an appointment date: </label>
|
||||||
<input type="text" id="datepicker">
|
<input type="text" id="datepicker">
|
||||||
<form>
|
<div>
|
||||||
<label for="appt-time">Choose an appointment time (8:30am - 10:00pm): </label>
|
<label for="appt-time">Choose an appointment time (8:30am - 10:00pm): </label>
|
||||||
<input id="appt-time" type="time" name="appt-time"
|
<input id="appt-time" type="time" name="appt-time" min="12:00" max="18:00">
|
||||||
min="12:00" max="18:00">
|
|
||||||
<span class="validity"></span>
|
<span class="validity"></span>
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Payment Accordion -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header" id="headingTwo">
|
<div class="card-header" id="headingTwo">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
<button type="button" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||||
Payment Details
|
Payment Details
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Payment Accordion content -->
|
||||||
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h2><i class="far fa-address-book"></i> Contact Information</h2>
|
<h2><i class="far fa-address-book"></i> Contact Information</h2>
|
||||||
<p>Please fill the spaces below with your contact information</p>
|
<p>Please fill the spaces below with your contact information</p>
|
||||||
<form>
|
<!-- <form> -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6" style="float: right;">
|
<div class="col-6" style="float: right;">
|
||||||
|
@ -430,32 +416,18 @@
|
||||||
<input type="text" id="expiryDate" name="cvv" placeholder="CVV">
|
<input type="text" id="expiryDate" name="cvv" placeholder="CVV">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- </form> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<!--<input type="submit" value="Submit"> -->
|
||||||
|
<button type="button" class="btn btn-lg btn-outline-secondary alert" id="submitButton"">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--<div class="card">
|
|
||||||
<div class="card-header" id="headingThree">
|
|
||||||
<h5 class="mb-0">
|
|
||||||
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
|
|
||||||
Account Details
|
|
||||||
</button>
|
|
||||||
</h5>
|
|
||||||
</div>
|
|
||||||
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
|
|
||||||
<div class="card-body">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
@ -471,39 +443,10 @@
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- script to scroll to appointment-->
|
<!--Scripts--->
|
||||||
<script>
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||||||
function toAppointment() {
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
document.getElementById('appointment').scrollIntoView();
|
<script src="scripts/index.js" charset="utf-8"></script>
|
||||||
}
|
|
||||||
|
|
||||||
var value = 0;
|
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$( "#datepicker").datepicker({ beforeShowDay: getAvailability});
|
|
||||||
});
|
|
||||||
|
|
||||||
function getMechanic(selectObject) {
|
|
||||||
value = selectObject.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getAvailability(date){
|
|
||||||
|
|
||||||
if (value == 1 && (date.getDay() === 0 || date.getDay()==6)) /* restrict weekends */
|
|
||||||
return [false]
|
|
||||||
if (value == 2 && (date.getDay() === 0 || date.getDay()==1 || date.getDay()==4 || date.getDay()==5 || date.getDay()==6)) /* restrict M,Thurs, Fri, Sat, Sun */
|
|
||||||
return [false]
|
|
||||||
if (value == 3 && (date.getDay() === 0 || date.getDay()==4 || date.getDay()==5 || date.getDay()==6 )) /* restrict Thurs, Fri, Sat, Sun */
|
|
||||||
return [false]
|
|
||||||
if (date.getDay() === 0 || date.getDay()== 6 ) /* weekends */
|
|
||||||
return [false]
|
|
||||||
else
|
|
||||||
return [ true, "", "" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
|
36
scripts/index.js
Normal file
36
scripts/index.js
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
// Calendar Validation
|
||||||
|
function toAppointment() {
|
||||||
|
document.getElementById('appointment').scrollIntoView();
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = 0;
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$("#datepicker").datepicker({
|
||||||
|
beforeShowDay: getAvailability
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function getMechanic(selectObject) {
|
||||||
|
value = selectObject.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAvailability(date) {
|
||||||
|
|
||||||
|
if (value == 1 && (date.getDay() === 0 || date.getDay() == 6)) /* restrict weekends */
|
||||||
|
return [false]
|
||||||
|
if (value == 2 && (date.getDay() === 0 || date.getDay() == 1 || date.getDay() == 4 || date.getDay() == 5 || date.getDay() == 6)) /* restrict M,Thurs, Fri, Sat, Sun */
|
||||||
|
return [false]
|
||||||
|
if (value == 3 && (date.getDay() === 0 || date.getDay() == 4 || date.getDay() == 5 || date.getDay() == 6)) /* restrict Thurs, Fri, Sat, Sun */
|
||||||
|
return [false]
|
||||||
|
if (date.getDay() === 0 || date.getDay() == 6) /* weekends */
|
||||||
|
return [false]
|
||||||
|
else
|
||||||
|
return [true, "", ""]
|
||||||
|
}
|
||||||
|
|
||||||
|
//Form Validation
|
||||||
|
function validateForm(){
|
||||||
|
//first check that the user has selected,
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue