-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
182 lines (158 loc) · 5.91 KB
/
Copy pathindex.html
File metadata and controls
182 lines (158 loc) · 5.91 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE HTML>
<!--
Twenty by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Appointment</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-animate.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.8.2.js"></script>
</head>
<body class="no-sidebar is-preload" ng-app="ngApp">
<div id="page-wrapper">
<header id="header">
<h1 id="logo"><a href="index.html"> <span> </span></a></h1>
<br>
<nav id="nav">
<ul>
<li>
<a href="index.html" class="button primary">Home</a>
</li>
<li><a href="queryN.html">Search Appointment</a></li>
</ul>
</nav>
</header>
</div>
<script type='text/javascript'>
$(function(){
var overlay = $('<div id="overlay"></div>');
overlay.show();
overlay.appendTo(document.body);
$('.popup').show();
$('.close').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});
$('.x').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});
});
</script>
<div class='popup'>
<div class='cnt223'>
<h1>Help</h1>
<p>
For your phone number, please ensure you enter it as one long string without dashes, parenthesis, or periods, such as 5555555555
<br/>
<br/>
<a href='' class='close'>Close</a>
</p>
</div>
</div>
<div class="container">
<br><br>
<h2>Make An Appointment</h2>
<p>Please fill in this form to make your appointment.</p>
<div>
<hr>
<form method="POST" action="add.php" name="makeApt">
<label for="first_name"><b>First Name</b></label>
<input type="text" placeholder="Enter First Name" name="first_name" ng-model="first_name" required>
<span style="color:red" ng-show="makeApt.first_name.$touched && makeApt.first_name.$invalid"><b>First name is required.</b><br></span>
<label for="last_name"><b>Last Name</b></label>
<input type="text" placeholder="Enter Last Name" name="last_name" ng-model="last_name" required>
<span style="color:red" ng-show="makeApt.last_name.$touched && makeApt.last_name.$invalid"><b>Last name is required.</b><br></span>
<label for="phone"><b>Phone Number</b></label>
<input type="text" placeholder="Enter Phone Number, No Dashes" name="phone" ng-model="phone" required>
<span style="color:red" ng-show="makeApt.phone.$touched && makeApt.phone.$invalid"><b>Phone number is required.</b><br></span>
<label for="email"><b>Email</b></label>
<input type="email" placeholder="Enter Email" name="email" ng-model="email" required>
<span style="color:red" ng-show="makeApt.email.$touched && makeApt.email.$invalid">
<span ng-show="makeApt.email.$error.required"><b>Email is required.</b><br></span>
<span ng-show="makeApt.email.$error.email"><b>Email is invalid.</b><br></span>
</span>
<label for="treatment"><b>What We Can Do For You?</b></label>
<select name="apt_type">
<option value="Haircut">Haircut</option>
<option value="Coloring">Coloring</option>
<option value="Haircut and Coloring">Haircut and Coloring</option>
<option value="Nails">Nails</option>
<option value="Pedicure/Manicure">Pedicure/Manicure</option>
</select>
<label for="name"><b>Select Stylist:</b></label>
<select name="stylist">
<option value="John Lee">Jon Lee</option>
<option value="Joe Wessel">Joe Wessel</option>
<option value="Tim Mullins">Tim Mullins</option>
<option value="John Lee">NO PREFERENCE</option>
</select>
<br>
<b>Appointment (Preferred Date):</b><input type="datetime-local" name="apt_date" required>
<div class="clearfix">
<br>
<button type="submit" class="button primary">Set Appointment</button>
</div>
</form>
<div class="col-12">
<ul class="buttons">
<a href="index.html" class="button">Cancel</a>
</ul>
<hr>
</div>
</form>
<div id="wrapper">
<header>
<h1>Tip Calculator</h1>
</header>
<form action="javascript:void(calc())">
Amount: $<input id="bill" type="text">
<br>
Tip Amount (in percent, NO Percent sign): $<input id="tipp" type="text">
<input type="submit" value="Calculate">
<br>
Tip: <span id="tip"></span>
<br>
Total: <span id="total"></span>
</form>
</div>
<script>
function calc() {
var bill = Number(document.getElementById('bill').value);
var tipp = Number(document.getElementById('tipp').value);
var tip = bill * (tipp/100);
var total_bill = bill + tip;
document.getElementById("tip").innerHTML= "$"+Number(tip).toFixed(2);
document.getElementById("total").innerHTML= "$"+Number(total_bill).toFixed(2);
}
</script>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollgress.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script> var app = angular.module('ngApp', ['ngAnimate']); </script>
<!-- Footer -->
<footer id="footer">
<ul class="copyright">
<li>© We Don't Know</li><li>FrontDesk: <a href="query.html">View Today's Appointments</a></li>
</ul>
</footer>
</div>
</body>
</html>