-
Notifications
You must be signed in to change notification settings - Fork 4
/
toasts-position-flex.html
48 lines (39 loc) · 1.5 KB
/
toasts-position-flex.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap Hcode</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div aria-live="polit" aria-atomic="true" class="d-flex justify-content-center align-items-center" style="min-height: 100vh;">
<div class="toast m-2" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header bg-primary text-white">
<strong class="mr-auto">Notificação</strong>
<small>Agora</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
</div>
</div>
</div>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script>
$(function(){
//$('.toast').toast('show');
$('.toast').toast({
delay: 5000,
autohide: true,
animation: false
}).toast('show');
});
</script>
</body>
</html>