-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverificationScreen.html
102 lines (89 loc) · 5.34 KB
/
verificationScreen.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
<!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-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="CSS/verification.css">
<title>Verification</title>
</head>
<body class="text-center" style="background-color: #F5F6F9;">
<div id="main_card" class="card-background-container mx-auto mt-4">
<div class="header-text">
Verification Code
</div>
<div class="mt-4 verification-message">
Please type the verification code sent to your number
</div>
<div class="verification-input-boxs mt-4">
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_1" maxlength="1"
onkeyup="clickEvent(this, 'veri_2')"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_2" maxlength="1"
onkeyup="clickEvent(this, 'veri_3')"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_3" maxlength="1"
onkeyup="clickEvent(this, 'veri_4')"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_4" maxlength="1"
onkeyup="clickEvent(this, 'veri_5')"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_5" maxlength="1"
onkeyup="clickEvent(this, 'veri_6')"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
<div class="otp-textbox col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2">
<input class="input-box" type="text" id="veri_6" maxlength="1"
onkeypress="return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))">
</div>
</div>
<button id="pay_button" class="mt-4" onclick="pay()">Pay</button>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
-->
</body>
</html>
<script>
let card = document.styleSheets[2].rules[0].style;
let inputBox = document.styleSheets[2].rules[3].style;
let button = document.styleSheets[2].rules[6].style;
if (localStorage.getItem("screen") == "Debit") {
card.backgroundColor = "#ECB684";
inputBox.backgroundColor = "#F48A28";
button.color = "#F48A28";
} else if (localStorage.getItem("screen") == "UPI") {
card.backgroundColor = "#CE8788";
inputBox.backgroundColor = "#F05454";
button.color = "#F05454";
}
let veri_1 = document.getElementById("veri_1");
let veri_2 = document.getElementById("veri_2");
let veri_3 = document.getElementById("veri_3");
let veri_4 = document.getElementById("veri_4");
let veri_5 = document.getElementById("veri_5");
let veri_6 = document.getElementById("veri_6");
function clickEvent(first, second) {
if (first.value.length) {
document.getElementById(second).focus();
}
}
</script>