-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (62 loc) · 2.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="assets/logo.png" type="image/x-icon" />
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
<title>UPI Ritu Raj's</title>
</head>
<body>
<div class="container">
<div class="qr-container">
<div class="qr-code">
<img src="assets/qr-code.png" alt="UPI QR Code">
</div>
<div class="upi-id">
<p>Scan the QR code or use the UPI ID:</p>
<div class="upi-id-content">
<strong id="upi-id">riturajps@centralbank</strong>
<button id="copy-button" class="copy-button">Copy</button>
<button id="copy-button" class="copy-button" onclick="window.location.href='upi://pay?pa=riturajps@centralbank&pn=UPI Ritu Raj'">Pay</button>
<lottie-player
src="https://lottie.host/2b51d7af-7099-49f5-93df-f8190dde11bb/WU9eejAueC.json"
background="#FFFFFF"
speed="1.5"
loop
autoplay
direction="1"
mode="normal" class="upi-icon"
></lottie-player>
</div>
</div>
</div>
</div>
<script>document.addEventListener("DOMContentLoaded", function () {
const copyButton = document.getElementById("copy-button");
const upiIdText = document.getElementById("upi-id");
copyButton.addEventListener("click", function () {
const textToCopy = upiIdText.textContent;
const tempInput = document.createElement("input");
tempInput.value = textToCopy;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand("copy");
document.body.removeChild(tempInput);
copyButton.textContent = "Copied!";
setTimeout(function () {
copyButton.textContent = "Copy";
}, 2500);
});
document.addEventListener("contextmenu", function(event) {
event.preventDefault();
});
});
</script>
</body>
</html>