-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecondary_validation.html
107 lines (89 loc) · 4.28 KB
/
secondary_validation.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
<!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>Riders Password Requests - 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:#FF2B85;">
<div class="container-fluid" style="background-color: #FF2B85;">
<!-- <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/AKfycbxyHQcOqURSvR56J0UpJR1_b8r0X_n4t7Fw7zlxj-ghcWJPYlN66o9iKpFYr6KJgSnK/exec">
<!-- <center>
<label class="form-label text-info">กรุณาส่งคำขอของคุณที่นี่เพื่อรับรหัสอีเมลและรหัสผ่านของคุณ/Please submit your request here for getting your email id and password</label>
</center> -->
<center>
<img src="rider_credential_request_confirmation.png" alt="Responsive image" width="950" height="900" class="img-fluid center">
</center>
<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="Email" name="Email" onchange="XX()">
</div>
<center>
<input type="image" id="submit" name="submit" src="Button-Example-thai.png" border="0" alt="Submit"
style="width: 260px;height: 100px;" />
</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({ redirectUri: "https://deliveryhero.github.io/fp-th-rider-line-liff/secondary_validation" });
}
}, err => console.error(err.code, error.message));
</script>
</body>
</html>