-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayground.html
211 lines (200 loc) · 7.78 KB
/
playground.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loud-it</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/playground.css">
<script src="./assets/js/color-mode.preload.js"></script>
<script src="./assets/library/plain/loud-it.js"></script>
</head>
<body>
<div id="announcement">🚀Recently released! • 25/06</div>
<header class='container'>
<h1>Loud-it Code Playground</h1>
</header>
<main class='container'>
<p class='desktop-info'>Insert any of the properties below and hit the button or press <kbd>CTRL + S</kbd></p>
<aside>
<div class="screen-container">
<h1>Display Screen</h1>
<div class="screen"></div>
</div>
<div class="playground-container">
<p class='info'>Insert any of the properties below and hit the button or press <kbd>CTRL + S</kbd></p>
<div class="playground">
<textarea id="jsPlayground" cols="30" rows="10" spellcheck="false">LoudIt(`<em>Squicky Bitbum</em>💖`, {
element: '.screen',
speed: 300,
width: '70%',
background: '#44B',
opacity: .8,
color: '#fffb'
});</textarea>
<button>Loud it!</button>
</div>
</div>
</aside>
<section class='hint'>
<h3>Hint</h3>
<p>Properties & their <em>possible</em> values</p>
<div class="table-container">
<table>
<tr>
<th>
Property
</th>
<td>
message
</td>
<td>
element
</td>
<td>
duration
</td>
<td>
speed
</td>
<td>
delay
</td>
<td>
position
</td>
<td>
mouseEffects
</td>
<td>
width
</td>
<td>
height
</td>
<td>
background
</td>
<td>
opacity
</td>
<td>
color
</td>
<td>
fontSize
</td>
<td>
fontWeight
</td>
<td>
top
</td>
<td>
left
</td>
<td>
right
</td>
<td>
borderRadius
</td>
<td>
padding
</td>
<td>
zIndex
</td>
</tr>
<tr>
<th>
Values
</th>
<td>
'Squicky Bitbum'
</td>
<td>
'div'
</td>
<td>
3000
</td>
<td>
500
</td>
<td>
300
</td>
<td>
'left'
</td>
<td>
false
</td>
<td>
'200px'
</td>
<td>
'10vh'
</td>
<td>
'chocolate'
</td>
<td>
'80%'
</td>
<td>
'#003663'
</td>
<td>
'2rem'
</td>
<td>
'lighter'
</td>
<td>
'30%'
</td>
<td>
'6vw'
</td>
<td>
'23ch'
</td>
<td>
'20px'
</td>
<td>
'1em'
</td>
<td>
2
</td>
</tr>
</table>
</div>
</section>
<div class="buttons">
<a href="https://twitter.com/intent/tweet?text=https%3A%2F%2Floud-it.netlify.app%0ALoud-it%21%20another%20amazing%20notification%20handler%20you%20could%20use%20in%20your%20project%F0%9F%8E%89" target='_blank' class='button twitter'>Loud-it on Twitter <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" fill='#fffb' /></svg></a>
<a class='button' href='https://github.com/EmekaOrji/loud-it' target='_blank' id='githubIcon' tabindex='0'>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" fill='#fffb' />
</svg>
</a>
</div>
</main>
<footer>
<p class='container'>Made with love💖, vscode and a browser by <a class='link' href="https://twitter.com/code_rabbi">Emeka Orji</a></p>
<a href="/" class="button">Back to home</a>
</footer>
<div class="color-mode container">
<button id="colorModeButton" tabindex='0'><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M16 319.1C16 245.9 118.3 89.43 166.9 19.3C179.2 1.585 204.8 1.585 217.1 19.3C265.7 89.43 368 245.9 368 319.1C368 417.2 289.2 496 192 496C94.8 496 16 417.2 16 319.1zM112 319.1C112 311.2 104.8 303.1 96 303.1C87.16 303.1 80 311.2 80 319.1C80 381.9 130.1 432 192 432C200.8 432 208 424.8 208 416C208 407.2 200.8 400 192 400C147.8 400 112 364.2 112 319.1z" fill='#fffb' /></svg></button>
</div>
<script src="./assets/js/color-mode.js"></script>
<script src="./assets/js/playground.js" type='module'></script>
</body>
</html>