-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappointment.html
97 lines (82 loc) · 3.56 KB
/
appointment.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="appointment.css">
<title>Document</title>
</head>
<body style="background-color: #ffffff; padding: 20px;">
<div class="formbold-main-wrapper">
<!-- Author: FormBold Team -->
<!-- Learn More: https://formbold.com -->
<form class="formbold-form-wrapper" style="background-color: rgb(173, 192, 190); padding: 30px;" action="https://formspree.io/f/xvoewqoo" method="POST">
<form>
<div class="formbold-mb-5">
<label for="name" class="formbold-form-label"> Full Name </label>
<input type="text" id="name" name="name" class="formbold-form-input" required />
</div>
<div class="formbold-mb-5">
<label for="phone" class="formbold-form-label"> Phone Number </label>
<input type="tel" id="phone" name="phone" class="formbold-form-input" required />
</div>
<div class="formbold-mb-5">
<label for="email" class="formbold-form-label"> Email Address </label>
<input type="email" id="email" name="email" class="formbold-form-input" required />
</div>
<div class="flex flex-wrap formbold--mx-3">
<div class="w-full sm:w-half formbold-px-3">
<div class="formbold-mb-5 w-full">
<label for="date" class="formbold-form-label"> Date </label>
<input type="date" id="date" name="date" class="formbold-form-input" required />
</div>
</div>
<div class="w-full sm:w-half formbold-px-3">
<div class="formbold-mb-5">
<label for="time" class="formbold-form-label"> Time </label>
<input type="time" name="time" id="time" class="formbold-form-input" required />
</div>
</div>
</div>
<div class="formbold-mb-5">
<label for="message" class="formbold-form-label"> Reason for Appointment </label>
<input type="message" id="message" name="message" class="formbold-form-input" required />
</div>
<button type="submit" class="formbold-btn">Book Appointment</button>
</form>
</div>
</div>
<script>
</script>
<!-- <script>
function scheduleAppointment() {
var name = document.getElementById('name').value;
var phone = document.getElementById('phone').value;
var email = document.getElementById('email').value;
var date = document.getElementById('date').value;
var time = document.getElementById('time').value;
const templateParams = {
to_email: '[email protected]', // Replace with your recipient's email address
sender_name: name,
from_email: email,
sender_phone: phone,
appt_date : date,
appt_time : time,
// Add appointment date and time to templateParams if needed
};
emailjs.send('service_c4z771e', 'template_w2jm7lo', templateParams).then(
(response) => {
console.log('SUCCESS!', response.status, response.text);
},
(error) => {
console.log('FAILED...', error);
},
);
// if (name !== '' && phone !== '' && email !== '' && date !== '' && time !== '') {
// } else {
// alert("All fields are not filled");
// }
} -->
</script>
</body>
</html>