-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPIScreen.html
97 lines (79 loc) · 4.06 KB
/
UPIScreen.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
<!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="stylesheet" href="CSS/upiscreen.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<title>Hello, world!</title>
</head>
<body class="text-center" style="margin-top:50px; background-color: #F5F6F9;">
<div class="mx-auto card-background-container col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 col-xxl-12">
<div class="card-div-header">
<div id="card_title" class="heading-title">
UPI
</div>
<div style="width: 12%;">
<img src="/debit-card.png" width="100%">
</div>
</div>
<div class="heading">
Select your UPI app
</div>
<select class="upi-app-list">
<option>BHIM</option>
<option>PhonePe</option>
<option>Paytm</option>
<option>Google pay</option>
</select>
<div class="heading" style="margin-top: 30px;">
Enter your UPI ID
</div>
<input type="text"
id="amount_textbox"
class="input-amount" placeholder="someone@upi" autofocus>
<div class="center-container" style="margin-top: 50px;">
<button id="submitBtn" type="button" class="btn btn-primary btn-circle btn-xl">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>
</svg>
</button>
</div>
</div>
<div id="myAlert" class="mx-auto alert-box alert alert-danger alert-dismissible collapse">
<strong>Error!</strong> Please enter amount.
<button id="alertClose" type="button" class="close" aria-label="Close">
Dismiss
</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>
$(document).ready(function() {
$('#submitBtn').click(function() {
let amount = document.getElementById('amount_textbox').value;
if (amount == "")
$('#myAlert').show('fade');
else {
localStorage.setItem("screen","UPI");
window.location.href = 'verificationScreen.html';
}
});
$('#alertClose').click(function() {
$('#myAlert').hide('fade');
});
});
</script>