-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScheduling.html
More file actions
100 lines (85 loc) · 3.73 KB
/
Scheduling.html
File metadata and controls
100 lines (85 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/index.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/signup.css" media="screen">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title> </title>
<script src="js/validator.js"></script>
<script>
window.onload = function(){
var scheduleForm = document.getElementById('scheduleForm');
scheduleForm.addEventListener('submit', function (event) {
var isInputNotEmpty = !validator.isEmpty(document.getElementById('date').value) &&
!validator.isEmpty(document.getElementById('time').value) &&
!validator.isEmpty(document.getElementById('message').value) &&
!validator.isEmpty(document.getElementById('email').value) &&
!validator.isEmpty(document.getElementById('phone').value);
var isDateValid = validator.isDate(document.getElementById('date').value) &&
validator.isBeforeToday(document.getElementById('date').value);
var isPhoneValid = validator.isPhoneNumber(document.getElementById('phone').value);
var isEmailValid = validator.isEmailAddress(document.getElementById('email').value);
event.preventDefault();
if (!isInputNotEmpty || !isDateValid || !isPhoneValid || !isEmailValid)
document.getElementById('sForm').className = 'invalid';
else
document.getElementById('sForm').className = 'valid';
});
}
</script>
</head>
<body>
<div class="header">
<h1>Tom Narainpursat</h1>
<h4>
Modern Front End Developer
</br>
<span class='quote'>"Where ever you go that's where you are"</span>
</h4>
</div>
<div class ='space'>
<div class='nav'>
<h3>Menu</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Button.html">Button</a></li>
<li><a href="SideBar.html">Profile Card</a></li>
<li><a href="Signup.html">Signup</a></li>
<li><a href="Search.html">Search</a></li>
<li><a href="Questionairre.html">Questionaire</a></li>
<li><a href="Login.html">Login</a></li>
<li><a href="Colours.html">Colour Builder</a></li>
<li><a href="ShippingBilling.html">Shipping & Billing</a></li>
<li><a href="CreditDebitCard.html">Payment Info</a></li>
<li><a href="Calculator.html">Calculator</a></li>
<li><a href="ProductListing.html">Products</a></li>
</ul>
</div>
<div id='content'>
<div class='form_main'>
<h1>Scheduling</h1>
<!--Signup Form Markup -->
<div class = "form" id="scheduleForm">
<form id ='sForm'>
<fieldset>
<label for="Date"><span>Date</span><input type="date" class="input-field" name="date" id="date" /></label>
<label for="Time"><span>Time</span><input type="time" class="input-field" name="time" id="time" /></label>
<label for="timezone"><span>TimeZone</span>
<select name="timezone" class="select-field">
<option value="GMT">GMT</option>
<option value="CAT">CAT</option>
<option value="GMT2">GMT+2</option>
<option value="GMT_2">GMT-2</option>
</select>
</label>
<label for="message"><span>Message </span><textarea name="message" class="textarea-field" id = "message"></textarea></label>
<label for="email"><span>Email</span><input type="email" class="input-field" name="email" id="email" /></label>
<label for="contactNo"><span>Contact Number</span><input type="text" class="input-field" name="contactNo" id="phone" /></label>
<label><input type="submit" value="Submit" /></label>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>