-
Notifications
You must be signed in to change notification settings - Fork 40
/
sawo.html
59 lines (52 loc) · 1.83 KB
/
sawo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./Images/banner.jpg">
<link rel="stylesheet" href="sawo.css">
<link rel="stylesheet" href="index.css">
<title>SAWO Login</title>
</head>
<body>
<header>
<a href="index.html" class="logo">
<img src="./Images/banner.jpg" class="fav">
</a>
<ul id="navbarNav" class="list">
<li><a href="index.html">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</a>
</header>
<h2 class="h">LOGIN TO PROCEED FURTHER</h2>
<div id="sawo-container" style="height: 300px; width: 400px;"></div>
<script src="https://websdk.sawolabs.com/sawo.min.js"></script>
<script>
var config = {
// should be same as the id of the container created on 3rd step
containerID: "sawo-container",
// can be one of 'email' or 'phone_number_sms'
identifierType: "email",
// Add the API key copied from 2nd step
apiKey: "bf4e4952-5413-4d3b-a374-6f42f7554bdd",
// Add a callback here to handle the payload sent by sdk
onSuccess: (payload) => {
window.location = './index.html'
},
};
var sawo = new Sawo(config);
sawo.showForm();
</script>
<!-- Sticky navbar -->
<script type="text/javascript">
window.addEventListener("scroll",function() {
var header =document.querySelector("header")
header.classList.toggle("sticky",window.scrollY > 0);
});
</script>
</body>
</html>