-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (46 loc) · 1.84 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
<html>
<head>
<meta charset="UTF-8">
<title>Celebrate with a confetti party popper</title>
<meta name="description" content="Instant, free, organic, confetti on your screen. Sourced responsibly.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="index.css">
</head>
<body>
<header>
<h1>Confetti Celebration</h1>
</header>
<article>
<p>For that special occasion, click the button and get some gratification. CLICK THE BUTTON.</p>
<button onclick="celebrate()">Celebrate</button>
</article>
<footer>Instant, free, online, JavaScript, simple, hassle free, organic, confetti. Sourced responsibly. By <a
href="https://twitter.com/ubershmekel">ubershmekel@</a>. See <a
href="https://github.com/ubershmekel/celebrate">source on github</a>.
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>
<script>
function addDarkmodeWidget() {
new Darkmode(
{
label: '🌓',
}).showWidget();
}
window.addEventListener('load', addDarkmodeWidget);
</script>
<script src="index.js"></script>
<!-- Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4533496-22");
pageTracker._trackPageview();
} catch (err) { }
</script>
</body>
</html>