-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (172 loc) · 8.69 KB
/
index.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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>foodpanda Riders - Thailand</title>
<link rel="icon" href="https://micro-assets.foodora.com/favicons/fp/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src=" https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.21/js/dataTables.bootstrap4.min.js"></script> -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai&display=swap" rel="stylesheet">
<style>
.container-fluid {
padding:15px;
}
body {
font-family: 'Noto Sans Thai', sans-serif;
}
</style>
</head>
<body style="background-color:#F7F7F7;">
<div class="container-fluid" style="background-color: #F7F7F7;">
<center>
<img src="foodpanda_logo_banner.svg" alt="centered image" width="250" height="49" class="center">
</center>
</div>
</br>
<div class="ml-3 mr-3">
<form method="POST"
action="https://script.google.com/macros/s/AKfycbx_QKAGVct-D-A5j4EUWHoWIYXVwCJT7vj1ps337s9ykxnjxRlRagyfQ_X7Qv4pzBGo/exec"
class="needs-validation" novalidate>
<label for="is_current_foodpanda_rider" class="form-label">สถานะของคุณ<span style="color: #E21B70">*</span></label>
<div class="ml-3">
<div class="form-check">
<input type="radio" class="form-check-input" id="validationFormCheck5" value="yes" name="is_current_foodpanda_rider" required>
<label class="form-check-label" for="validationFormCheck5">ปัจจุบันเป็นไรเดอร์ฟู้ดแพนด้า</label>
</div>
<div class="form-check mb-3">
<input type="radio" class="form-check-input" id="validationFormCheck6" value="no" name="is_current_foodpanda_rider" required>
<label class="form-check-label" for="validationFormCheck6">สนใจเป็นไรเดอร์ฟู้ดแพนด้า</label>
<div class="invalid-feedback">โปรดเลือก 1 ตัวเลือก</div>
</div>
</div>
<div class="mb-3">
<label for="rider_id" class="form-label">รหัสไรเดอร์ / Rider ID (กรอกเฉพาะไรเดอร์ปัจจุบัน ห้ามใส่ข้อมูลหากสนใจสมัคร)</label>
<input type="text" class="form-control" name="rider_id" pattern="\d*" minlength="5" maxlength="7">
<div class="invalid-feedback">
กรุณากรอกรหัสไรเดอร์
</div>
<small class="form-text text-muted">
รหัสไรเดอร์ซึ่งสามารถตรวจสอบได้จากแอปฯวิ่งงาน
</small>
</div>
<div class="mb-3">
<label for="thai_national_id" class="form-label">รหัสบัตรประชาชน 13 หลัก<span style="color: #E21B70">*</span></label>
<input type="text" class="form-control" name="thai_national_id" pattern="\d*" minlength="13" maxlength="13" required>
<div class="invalid-feedback">
กรุณากรอกรหัสบัตรประชาชน 13 หลัก
</div>
<small class="form-text text-muted">
รหัสบัตรประชาชน 13 หลัก ตัวอย่างเช่น 1234567890123
</small>
</div>
<div class="mb-3">
<label for="mobile_number" class="form-label">เบอร์โทรศัพท์<span style="color: #E21B70">*</span></label>
<input type="text" class="form-control" name="mobile_number" pattern="\d*" minlength="10" maxlength="10" required>
<div class="invalid-feedback">
กรุณากรอกเบอร์โทรศัพท์
</div>
<small class="form-text text-muted">
เบอร์โทรศัพท์ 10 หลัก กรอกโดยไม่มีการเว้นวรรค ตัวอย่างเช่น 0123456789
</small>
</div>
<script type="text/javascript">
$(document).ready(function () {
var checkboxes = $('.checkboxes');
checkboxes.change(function () {
if ($('.checkboxes:checked').length > 0) {
checkboxes.removeAttr('required');
} else {
checkboxes.attr('required', 'required');
}
});
});
</script>
<div class="mb-3">
<input type="text" class="visually-hidden" id="LineUserID" name="LineUserID" onchange="XX()">
</div>
<div class="mb-3">
<input type="text" class="visually-hidden" id="LineDisplayName" name="LineDisplayName" onchange="XX()">
</div>
<div class="mb-3">
<input type="text" class="visually-hidden" id="statusMessage" name="statusMessage" onchange="XX()">
</div>
<div class="mb-3">
<input type="text" class="visually-hidden" id="Email" name="Email" onchange="XX()">
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="yes" id="Agreed" name="Agreed" required>
<label class="form-check-label" for="invalidCheck">
ข้าพเจ้าได้อ่านและยอมรับ<a href="terms-and-conditions.html" class="link-primary">ข้อกำหนดและเงื่อนไข</a>ในการยืนยันตัวตน
</label>
<div class="invalid-feedback">
กรุณายอมรับเงื่อนไขและข้อตกลง
</div>
</div>
</div>
<center>
<input type="image" id="submit" name="submit" src="Button-Example-thai.png" border="0" alt="Submit"
style="width: 130px;height: 50px;" />
</center>
</form>
</div>
<script>
$("body").on("submit", "form", function () {
$(this).submit(function () {
return false;
});
return true;
});
</script>
<!-- While testing disable following script -->
<script src="https://static.line-scdn.net/liff/edge/versions/2.9.0/sdk.js"></script>
<script>
function runApp() {
liff.getProfile().then(profile => {
document.getElementById("LineUserID").value = profile.userId;
document.getElementById("LineDisplayName").value = profile.displayName;
document.getElementById("statusMessage").value = profile.statusMessage;
document.getElementById("Email").value = liff.getDecodedIDToken().email;
}).catch(err => console.error(err));
}
liff.init({ liffId: "1660770212-OJ5amGqg" }, () => {
if (liff.isLoggedIn()) {
runApp()
} else {
liff.login();
}
}, err => console.error(err.code, error.message));
</script>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function () {
'use strict';
window.addEventListener('load', function () {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function (form) {
form.addEventListener('submit', function (event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
</body>
</html>