-
Notifications
You must be signed in to change notification settings - Fork 2
/
gh-pages.html
86 lines (82 loc) · 1.98 KB
/
gh-pages.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Wavelert</title>
<link rel="shortcut icon" href="favicon.png" />
<script src="index.js"></script>
<style type="text/css">
html {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
padding: 0;
background: #78acdc url(http://i.imgur.com/iPTRtKC.jpg) center center;
background-size: cover;
height: 100%;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
flex-direction: column;
}
:global(.button) {
font: 0.7em tahoma, verdana, sans-serif;
text-decoration: none;
color: #000;
letter-spacing: 0.05em;
padding: 1em 2em;
-webkit-font-smoothing: none;
font-smoothing: none;
background: #c0c0c0;
border: 1px solid #000;
border-top-color: rgba(255, 255, 255, 0.75);
border-left-color: rgba(255, 255, 255, 0.75);
}
:global(.button):active {
border-bottom-color: rgba(255, 255, 255, 0.75);
border-right-color: rgba(255, 255, 255, 0.75);
border-top-color: #000;
border-left-color: #000;
}
:global(.button--larger) {
margin-bottom: 1em;
padding: 1.5em 6em;
text-transform: uppercase;
}
</style>
</head>
<body>
<button class="button button--larger" id="largor">Click for a demo</button>
<a class="button" href="https://github.com/walaura/Wavelert"
>Get the code</a
>
</body>
<script>
const { Confirm, Alert } = window.wavelert.promisified;
Alert({
title: 'Wavelert',
dark: true,
children:
'Wavelert is a small javascript library that lets you display Windows-98 styled alerts & confirms',
})();
largor.addEventListener('click', () => {
Confirm({
title: 'Wololo',
dark: true,
icon: 'alert',
})()
.then(() => {
Alert({
children: '✨ all is good ✨',
theme: 'pink',
})();
})
.catch(() => {
Alert({ children: '💩 you dismissed the alert 💩' })();
});
});
</script>
</html>