-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathindex.html
262 lines (226 loc) · 11.2 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!--------------------------------
Author: Mehmet Kahya
Created: 17 March 2024
Last Updated: 14 January 2025
-------------------------------->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
content="default-src 'self' https://api.guerrillamail.com https://cdnjs.cloudflare.com ws://127.0.0.1:* wss://127.0.0.1:*; connect-src 'self' https://api.guerrillamail.com ws://127.0.0.1:* wss://127.0.0.1:*; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com; script-src 'self' 'unsafe-inline' 'unsafe-eval'; font-src https://cdnjs.cloudflare.com; img-src 'self' data: https:;">
<title>TempMail</title>
<meta name="description"
content="TempMail ile geçici e-posta adresi oluşturun. Gelen kutunuzu spam ve gereksiz maillerden koruyun. Hızlı ve güvenli geçici e-posta hizmeti.">
<meta name="keywords" content="temp mail, geçici e-posta, email spam engelleme, hızlı geçici mail, güvenli e-posta">
<meta name="author" content="Mehmet Kahya">
<!-- Open Graph Meta Etiketleri Başlangıcı -->
<meta property="og:title" content="TempMail - Geçici Mail Adresiniz">
<meta property="og:description"
content="TempMail ile geçici e-posta adresi oluşturun. Gelen kutunuzu spam ve gereksiz maillerden koruyun. Hızlı ve güvenli geçici e-posta hizmeti.">
<meta property="og:image" content="https://mehmetkahya0.github.io/temp-mail/images/temp-mail-og-image.png">
<meta property="og:url" content="https://mehmetkahya0.github.io/temp-mail/">
<meta property="og:type" content="website">
<!-- Open Graph Meta Etiketleri Sonu -->
<link rel="canonical" href="https://mehmetkahya0.github.io/temp-mail/" />
<meta name="robots" content="index, follow" />
<!-- Twitter Card Meta Etiketleri Başlangıcı -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="TempMail - Geçici Mail Adresiniz">
<meta name="twitter:description"
content="TempMail ile geçici e-posta adresi oluşturun. Gelen kutunuzu spam ve gereksiz maillerden koruyun. Hızlı ve güvenli geçici e-posta hizmeti.">
<meta name="twitter:image" content="https://mehmetkahya0.github.io/temp-mail/images/temp-mail-twitter-image.png">
<!-- Twitter Card Meta Etiketleri Sonu -->
<!-- Diğer Meta ve Bağlantılar -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="icon" href="images/temp-mail-icon.png" type="image/x-icon">
<!-- Diğer Script ve Stil Dosyaları -->
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
<link rel="icon" href="images/temp-mail-icon.png" type="image/x-icon" />
<script id="_wau776">
var _wau = _wau || [];
_wau.push(["dynamic", "0pakxqe3b2", "776", "c4302bffffff", "small"]);
</script>
<script async src="//waust.at/d.js"></script>
</head>
<body>
<div class="app-container">
<div class="theme-switch">
<i class="fa-solid fa-moon"></i>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
<i class="fa-solid fa-sun"></i>
</div>
<header>
<div class="header-content">
<div class="ascii-art">
<pre>
████████╗███████╗███╗ ███╗██████╗ ███╗ ███╗ █████╗ ██╗██╗
╚══██╔══╝██╔════╝████╗ ████║██╔══██╗ ████╗ ████║██╔══██╗██║██║
██║ █████╗ ██╔████╔██║██████╔╝ ██╔████╔██║███████║██║██║
██║ ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██║╚██╔╝██║██╔══██║██║██║
██║ ███████╗██║ ╚═╝ ██║██║ ██║ ╚═╝ ██║██║ ██║██║███████╗
╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝
</pre>
</div>
<div class="system-status">
<div id="status-led" class="status-led offline"></div>
<span id="status-text">Offline</span>
</div>
</div>
</header>
<div id="update-notification" class="update-notification">
<span>Temp Mail V2 is out🔥 <br> Check new features🚀 <br> <br> ⬇️ Please rate the new UI ⬇️</span>
<!-- Poll for user feedback with 5-Star Rating -->
<div class="poll">
<iframe
src="https://docs.google.com/forms/d/e/1FAIpQLSc3IsMzVudebwEwWFRHBQnVf6Frxliya4A5wATDKN_u4s3c0g/viewform?embedded=true"
width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0">Yükleniyor…</iframe>
</div>
<button id="close-notification" class="close-notification">×</button>
<script>
let selectedRating = 0;
// Handle star click
document.querySelectorAll('.star-rating .fa-star').forEach(function (star) {
star.addEventListener('click', function () {
selectedRating = parseInt(this.getAttribute('data-value'));
highlightStars(selectedRating);
});
star.addEventListener('mouseover', function () {
const hoverValue = parseInt(this.getAttribute('data-value'));
highlightStars(hoverValue);
});
star.addEventListener('mouseout', function () {
highlightStars(selectedRating);
});
});
function highlightStars(rating) {
document.querySelectorAll('.star-rating .fa-star').forEach(function (star) {
if (parseInt(star.getAttribute('data-value')) <= rating) {
star.classList.add('checked');
} else {
star.classList.remove('checked');
}
});
}
function submitPoll() {
if (selectedRating > 0) {
// You can send this data to your server or handle it as needed
console.log(`User rated the new UI as: ${selectedRating} out of 5`);
alert("Thank you for your feedback!");
// Optionally, hide the poll after submission
document.querySelector('.poll').style.display = 'none';
} else {
alert("Please select a rating before submitting.");
}
}
</script>
</div>
<main class="main-content">
<div class="card">
<div class="email-controls">
<div class="email-input-group">
<i class="fa-solid fa-at input-icon"></i>
<input id="addr" placeholder="Email address" readonly />
<button onclick="copyEmail()" title="Copy email" class="icon-button">
<i class="fa-solid fa-copy"></i>
</button>
</div>
<div class="button-group">
<button onclick="refreshMail()" class="primary-button">
<i class="fa-solid fa-rotate"></i> Load Mail
</button>
<button onclick="genEmail()" class="primary-button">
<i class="fa-solid fa-wand-magic-sparkles"></i> New Address
</button>
</div>
<div class="auto-refresh">
<label class="checkbox-label">
<i class="fa-solid fa-arrows-rotate"></i>
<input type="checkbox" id="auto-refresh">
<span>Auto refresh</span>
</label>
<select id="refresh-interval" class="select-input">
<option value="10">10s</option>
<option value="30">30s</option>
<option value="60">1m</option>
</select>
</div>
</div>
</div>
<div class="card">
<div class="search-container">
<div class="search-input-group">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="text" id="email-search" placeholder="Search emails..." />
</div>
</div>
<div id="loading-spinner" class="spinner hidden" style="display: none;"></div>
<div id="error-message" class="error-message hidden"></div>
<div class="table-container">
<table id="emails">
<thead>
<tr>
<th><i class="fa-solid fa-hashtag"></i> ID</th>
<th><i class="fa-solid fa-user"></i> From</th>
<th><i class="fa-solid fa-envelope"></i> Subject</th>
<th><i class="fa-solid fa-calendar"></i> Date</th>
<th><i class="fa-solid fa-gear"></i> Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</main>
<footer>
<div class="footer-content">
<p>
<i class="fa-solid fa-code"></i>
Mehmet Kahya - 2025 - TempMail V2 -
<a href="https://www.guerrillamail.com" target="_blank">
<i class="fa-solid fa-link"></i> guerrillamail.com
</a>
</p>
<div class="social">
<a href="mailto:[email protected]" target="_blank" title="Email">
<i class="fa-solid fa-envelope"></i>
</a>
<a href="https://github.com/mehmetkahya0" target="_blank" title="GitHub">
<i class="fa-brands fa-github"></i>
</a>
<a href="https://linkedin.com/in/mehmet-kahya-0861a4286" target="_blank" title="LinkedIn">
<i class="fa-brands fa-linkedin"></i>
</a>
</div>
<div class="footer-buttons">
<button class="warning-button" onclick="showWarning()">
<i class="fa-solid fa-triangle-exclamation"></i> Warning Note
</button>
<button class="privacy-button">
<a href="privacy/privacy.html" target="_blank" style="text-decoration: none; color: inherit;">
<i class="fa-solid fa-shield"></i> Privacy Policy
</a>
</button>
</div>
</div>
</footer>
</div>
<script>
function showWarning() {
alert("⚠️ This project is purely for educational purposes. We do not allow illegal things to be done with this project and we are not responsible for any incidents that may occur. This project uses mail.gw's API for creating temporary emails. Use it legally and responsibly ⚠️");
}
</script>
<script>
alert("Hello, If you see the failed to load message, please clicked the 'New Address' button multiple times. If you see the failed to load message again, please contact me on GitHub or LinkedIn. Thank you for using my project. ❤️. I'm still developing this project. ");
</script>
<script src="js/config.js" type="module"></script>
<script src="js/api.js" type="module"></script>
<script src="js/theme.js" type="module"></script>
</body>
</html>