alert.html 1.19 KB
Newer Older
Rafael Ostertag's avatar
Rafael Ostertag committed
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="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-theme.min.css">
    <title>Alert</title>

    <style>
        #qfqAlertContainer {
            position: absolute;
            top: 100px;
            left: 0;
        }
    </style>
</head>
<body>

<button id="showalert1">Show Alert 1</button>
<button id="showalert2">Show Alert 2</button>
<button id="showalert3">Show Alert 3 primed</button>


<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/qfq-jqw.debug.js"></script>

<script>
    $(function () {
        $('#showalert1').click(function () {
            var alert = new QfqNS.Alert("This is alert 1");
            alert.show();
        });

        $('#showalert2').click(function () {
            var alert = new QfqNS.Alert("This is alert 2");
            alert.show();
        });

        $('#showalert3').click(function () {
            var alert = new QfqNS.Alert("This is alert 3. Disappears after 3 secs.");
            alert.timeout = 3000;
            alert.show();
        });
    });
</script>
</body>
</html>