-
Notifications
You must be signed in to change notification settings - Fork 189
/
fields.htm
57 lines (55 loc) · 1.48 KB
/
fields.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Booking.js custom booking fields example</title>
<style type="text/css">
body { background-color: #E6E6E6; max-width: 700px; margin: 0 auto; }
</style>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="../dist/booking.js"></script>
<div id="bookingjs">
<script type="text/javascript">
TimekitBooking().init({
name: 'Doc Brown',
email: 'marty.mcfly@timekit.io',
apiToken: 'XT1JO879JF1qUXXzmETD5ucgxaDwsFsd',
calendar: '22f86f0c-ee80-470c-95e8-dadd9d05edd2',
avatar: '../misc/avatar-doc.jpg',
timekitConfig: {
app: 'bookingjs-demo'
},
bookingFields: {
name: {
placeholder: 'Your name please'
},
email: {
prefilled: 'doc.brown@timekit.io',
disabled: true
},
comment: {
enabled: true,
prefilled: 'This is a comment'
},
phone: {
enabled: true,
required: true
},
voip: {
enabled: true,
prefilled: 'doc.brown',
required: true,
locked: true
},
location: {
enabled: true,
placeholder: 'Place of meeting'
}
}
});
</script>
</div>
</body>
</html>