-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
93 lines (72 loc) · 1.95 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
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<script src="qtoasty.js" type="text/javascript"></script>
<style type="text/css">
html, body {
font-size: 1em;
margin: 0;
padding: 0;
background-color: rgb(13, 17, 23);
color: rgb(201, 209, 217);
font-family: sans-serif;
}
header {
background-color: rgb(22, 27, 34);
height: 62px;
display: flex;
align-items: center;
justify-content: center;
border: 5px solid transparent;
box-sizing: border-box;
font-size: 2em;
font-weight: bold;
}
div {
width: 500px;
text-align: left;
margin-left: auto;
margin-right: auto;
}
button {
background-color: hsl(212, 12%, 21%);
border: 1px solid rgba(115, 115, 115, 0.4);
outline: none;
transition: all ease 100ms;
}
button:hover {
border: 1px solid rgba(115, 115, 115, 0.9);
}
button:active {
background-color: hsl(212, 12%, 15%);
}
a:visited {
color: inherit;
}
</style>
</head>
<body>
<header>
QToasty.js Demo
</header>
<div>
<p>Try konami code: ↑ ↑ ↓ ↓ ← → ← → B A</p>
<p>Try uppercut: ↓ A</p>
<button id="toasty_btn">Toasty!</button>
</div>
<script type="text/javascript">
var toasty_def = new QToasty(params = {});
var toasty = new QToasty(params = { 'keyCodes': [40, 65], 'volume' : 0.5, 'imageSize': ''});
document.getElementById("toasty_btn").addEventListener("click", ev => {
ev.preventDefault();
toasty.trigger();
});
// document.addEventListener('load', ev => {
// setTimeout(() => {
// toasty.trigger();
// }, 1500);
// });
</script>
</body>
</html>