-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (89 loc) · 4.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotcup - Waitlist Page</title>
<link rel="shortcut icon" href="https://pbs.twimg.com/profile_images/1672068192859197440/RBmwPMYx_400x400.jpg" type="image/x-icon">
<!-- Primary Meta Tags -->
<meta name="title" content="Hotcup App - Public social media" />
<meta name="description" content="Freely social media by hotcupapp - Join now! - it's free!" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://wait.hotcup.app" />
<meta property="og:title" content="Hotcup App - Public social media" />
<meta property="og:description" content="Freely social media by hotcupapp - Join now! - it's free!" />
<meta property="og:image" content="https://gifdb.com/images/high/cool-anime-yui-hirasawa-k-on-b90459ws3s9us66w.gif" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://wait.hotcup.app" />
<meta property="twitter:title" content="Hotcup App - Public social media" />
<meta property="twitter:description" content="Freely social media by hotcupapp - Join now! - it's free!" />
<meta property="twitter:image" content="https://gifdb.com/images/high/cool-anime-yui-hirasawa-k-on-b90459ws3s9us66w.gif" />
<!-- addonials -->
<meta name="theme-color" content="#5ACCD0">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@nicekun" />
<meta name="twitter:creator" content="@nicekun" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp"></script>
<link rel="stylesheet" href="/inventories/css/main.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
</head>
<body onload="retrieveToast()">
<!-- Header -->
<!-- Content -->
<input type="email" name="verysusbyadminon@onecup.app" />
<!-- Test toast -->
<button onclick="showToast('Toast message!', 'success')">Show Success Toast</button>
<button onclick="showToast('Something went wrong!', 'error')">Show Error Toast</button>
<!-- Social Links -->
<a rel="me" href="https://mastodon.social/@nicekun">Mastodon</a>
<!-- Footer -->
<footer>
© 2023 Hotcup App. All Rights Reserved.
</footer>
<!-- Script Zone -->
<script>
function showToast(message, type) {
const toastContainer = document.getElementById('toast-container');
const toast = document.createElement('div');
toast.className = `animate__animated animate__fadeInRightBig ${type === 'error' ? 'bg-red-500' : 'bg-green-500'} text-white font-semibold px-4 py-2 rounded-md shadow-md mb-2`;
toast.textContent = message;
toastContainer.appendChild(toast);
setTimeout(() => {
toast.classList.remove('animate__fadeInRightBig');
toast.classList.add('animate__fadeOutRightBig');
setTimeout(() => {
toast.remove();
}, 1000);
}, 3000); // Show for 3 seconds
}
function retrieveToast() {
const toastMessage = localStorage.getItem('toastMessage');
const toastType = localStorage.getItem('toastType');
if (toastMessage && toastType) {
showToast(toastMessage, toastType);
localStorage.removeItem('toastMessage');
localStorage.removeItem('toastType');
}
}
</script>
<script>
function navigateToSecondPage() {
const toastMessage = 'Toast message on second page!';
const toastType = 'success';
localStorage.setItem('toastMessage', toastMessage);
localStorage.setItem('toastType', toastType);
window.location.href = 'thanks.html';
}
</script>
<div class="fixed bottom-0 right-0 m-4">
<div id="toast-container" class="z-50"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
</body>
</html>