-
Notifications
You must be signed in to change notification settings - Fork 0
/
lottery.html
130 lines (88 loc) · 5.44 KB
/
lottery.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preload" href="./static/icons/tonlogo.svg" as="image">
<link rel="preload" href="./static/icons/lamp.png" as="image">
<link rel="preload" href="./static/icons/Ticket-white.svg" as="image">
<link rel="stylesheet" href="./style.css">
</head>
<body style="background: rgba(20, 4, 8, 1); overflow: hidden;">
<a href="./main2.html" style="color: white; text-decoration: none; font-size: 20px; position: fixed; right: 5%; user-select: none; outline: none; -webkit-tap-highlight-color: transparent">
X
</a>
<p class="button" style="top: 3%; justify-content: center; line-height: 50px; height: 50px; z-index: 2;">SQUID BANK DRAW</p>
<div class="container4">
<div class="timer"><p>59 <br> <span class="timer-text">DAYS</span></p></div>
<div class="timer"><p>43 <br> <span class="timer-text">HOURS</span></p></div>
<div class="timer"><p>33 <br> <span class="timer-text">MINUTES</span></p></div>
<div class="timer"><p>19 <br> <span class="timer-text">SECONDS</span></p></div>
</div>
<div></div>
<img src="./static/icons/lamp.png" alt="" style="position: fixed; z-index: 1; top: 12%; left: 5%; z-index: 1;">
<div style="user-select: none; display: flex; position: fixed; top: 23%; left: 20%; font-size: 20px;">
<img src="./static/icons/Ticket-white.svg" alt="">
<p style="color: white;">squid bank lottery</p></div>
<div style="display: flex; position: fixed; top: 25%; left: 34%; user-select: none; font-size: 35px; align-items: center; justify-content: center;">
<p style="color: white; padding-top: 10px;">12000</p>
<img src="./static/icons/tonlogo.svg" alt="">
</div>
<p style="color: white; position: fixed; top: 36%; left: 6%; font-size: 20px; text-align: center; width: 90%;">Participate in the big January draw and be one of the lucky 1000</p>
<div class="tickets" style="font-size: 17px;">
Number of Ticket
<Span >1</Span>
</div>
<button class="buy-button" id="open-popup">Buy Ticket</button>
<footer class="footer">
<a href="./main2.html" style="-webkit-tap-highlight-color: transparent;">
<img src="./static/icons/umbrella.svg" alt="" width="40" height="40"></a>
<a href="./earn.html" style="user-select: none; outline: none; -webkit-tap-highlight-color: transparent;">
<img src="./static/icons/circle.svg" alt="" width="28" height="28" ></a>
<a href="./friends.html" style="user-select: none; outline: none; -webkit-tap-highlight-color: transparent;">
<img src="./static/icons/triangle.svg" alt="" width="33" height="27"></a>
<a href="./tge.html" style="user-select: none; outline: none; -webkit-tap-highlight-color: transparent;">
<img src="./static/icons/Rectangle.svg" alt="" width="26" height="26"></a>
</footer>
<div class="pointer"><img src="./static/icons/navbaricon.svg" alt="" style="position: fixed; bottom: 0%; left: 13.7%;"></div>
<div id="popup-overlay"></div>
<!-- پاپآپ -->
<div id="popup-container">
<div style="border: 1px solid rgba(232, 67, 129, 1); z-index: 10;
border-radius: 16px 10px 0 0; height: 100%; background: rgba(20, 4, 8, 1); font-family: roboto;
">
<button id="close-popup" style="background: none; border: none; color: white; font-size: 25px; padding: 14px; margin-left: 87%;">X</button>
<button class="copy-button" style="width: 90%; left: 5%;">Connect Wallet</button>
<button class="copy-button" style="bottom: 5%; width: 90%; left: 5%;">Pay 0.5
<img src="./static/icons/tonlogo.svg" alt="">
</button>
</div>
</div>
<script>
// گرفتن عناصر مورد نیاز
const openPopupButton = document.getElementById('open-popup');
const popupOverlay = document.getElementById('popup-overlay');
const popupContainer = document.getElementById('popup-container');
// نمایش پاپآپ
openPopupButton.addEventListener('click', (e) => {
e.preventDefault();
document.body.classList.add('popup-active'); // اضافه کردن کلاس برای غیرفعال کردن اسکرول
popupOverlay.style.display = 'block';
popupContainer.style.display = 'block';
});
// بستن پاپآپ هنگام کلیک روی پسزمینه تاریک
popupOverlay.addEventListener('click', () => {
document.body.classList.remove('popup-active'); // حذف کلاس برای فعال کردن اسکرول
popupOverlay.style.display = 'none';
popupContainer.style.display = 'none';
});
// بستن پاپآپ هنگام کلیک روی لینک داخل پاپآپ (اختیاری)
document.getElementById('close-popup').addEventListener('click', () => {
document.body.classList.remove('popup-active');
popupOverlay.style.display = 'none';
popupContainer.style.display = 'none';
});
</script>
</body>
</html>