-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfriend.html
87 lines (75 loc) · 3.43 KB
/
friend.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="3.4.5"></script>
<style>
body ,
html {
height: 100%;
margin: 0;
}
.full-height {
height: 108%;
}
</style>
<link rel="stylesheet" href="style-2.css">
<link rel="stylesheet" href="responsive-1.css">
</head>
<body class="boost">
<div class=" text-white p-4 rounded-lg max-w-md mx-auto full-height flex flex-col">
<div class="flex justify-between items-center mb-4">
<a>
<svg width="35px" height="35px" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22 11.9299H2" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M8.00009 19L2.84009 14C2.5677 13.7429 2.35071 13.433 2.20239 13.0891C2.05407 12.7452 1.97754 12.3745 1.97754 12C1.97754 11.6255 2.05407 11.2548 2.20239 10.9109C2.35071 10.567 2.5677 10.2571 2.84009 10L8.00009 5" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</a>
</div>
<div class="flex-grow overflow-auto">
<h2 class="text-center text-2xl font-bold mb-2">Invite friends!</h2>
<p class="text-center mb-4">You and your friend will receive bonuses</p>
<div class="space-y-4">
<div class="bg-slate-900 p-4 flex items-center rounded-3xl shadow-lg">
<img src="friend.png" width="50px" height="50px" alt="gift" class="w-12 h-12 mr-4">
<div>
<p class="font-bold">Invite a friend</p>
<p class="text-yellow-400">+5,000 for you and your friend</p>
</div>
</div>
</div>
<h3 class="mt-6 mb-2">List of your friends (0)</h3><div class="space-y-2"><div class="space-y-2"></div> </div>
</div>
<button id="inviteButton" class="bg-slate-900 hover:bg-slate-900/95 text-white w-full py-6 mt-4 rounded-3xl shadow-lg flex items-center justify-center">
<span>Invite a friend</span>
</button>
<p id="copyMessage" class="text-center text-green-500 mt-4 hidden">Copy Success..!</p>
</div>
<script>
document.getElementById('inviteButton').addEventListener('click', function() {
const chatId = "";
const textToCopy = "https://t.me/share/url?url=https://t.me/tele_birr_tap_bot?start=" + chatId + "&text=Join%20me%20in%20AnzabCoin%20and%20start%20mining%20today!%20Let's%20earn%20together!";
navigator.clipboard.writeText(textToCopy).then(function() {
const copyMessage = document.getElementById('copyMessage');
copyMessage.classList.remove('hidden');
copyMessage.classList.add('block');
setTimeout(function() {
copyMessage.classList.remove('block');
copyMessage.classList.add('hidden');
window.location = "https://t.me/share/url?url=https://t.me/AnzabCoin_bot?start=" + chatId + "&text=Join%20me%20in%20AnzabCoin%20and%20start%20mining%20today!%20Let's%20earn%20together!"
}, 2000);
}).catch(function(err) {
console.error('Error in copying text: ', err);
});
});
<?php
include("config.json");
if (isset($_GET["chat_id"]) and isset($_GET["username"])) {
$chat_id = htmlspecialchars($_GET["chat_id"]);
$username = htmlspecialchars($_GET["username"]);
}
?>
</script>
</body>
</html>