-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (35 loc) · 1.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Toast playground</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./index.scss">
</head>
<body>
<h1>Toast JS vanilla, usage</h1>
<p>In next versions:</p>
<ul>
<li>Auto destroying alerts</li>
<li>Smooth appearing/dissapearing</li>
<li>...loading</li>
</ul>
<br />
<h4>Message</h4>
<pre>toast.message({ message: 'This is a message!' })</pre>
<button class="button_message">Try!</button>
<br />
<h4>Message with title</h4>
<pre>toast.message({ title: 'Some title', message: 'This is a message!' })</pre>
<button class="button_message_title">Try!</button>
<br />
<h4>Alert with message</h4>
<pre>toast.alert({ message: 'This is an alert!' })</pre>
<button class="button_alert">Try!</button>
<br />
<h4>Alert with message and title</h4>
<pre>toast.alert({title: 'Any title', message: 'Alert with title'})</pre>
<button class="button_alert_title">Try!</button>
<script src="index.js"></script>
</body>
</html>