File: login.html

package info (click to toggle)
libjs-jsxc 3.4.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,704 kB
  • sloc: javascript: 68,510; makefile: 13; sh: 1
file content (67 lines) | stat: -rw-r--r-- 2,160 bytes parent folder | download
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
<!DOCTYPE HTML>
<html>

<head>
   <title>JSXC example application</title>
   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

   <link href="css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />

   <link href="css/jquery-ui.min.css" media="all" rel="stylesheet" type="text/css" />
   <link href="../build/css/jsxc.css" media="all" rel="stylesheet" type="text/css" />

   <script src="js/jquery.min.js"></script>
   <script src="js/jquery-ui.min.js"></script>
   <script src="../build/lib/jquery.slimscroll.js"></script>
   <script src="../build/lib/jquery.fullscreen.js"></script>

   <script src="../build/lib/jsxc.dep.js"></script>
   <script src="../build/jsxc.min.js"></script>

   <script src="js/example.js"></script>

</head>

<body>
   <div class="container">
      <h1 class="page-header">Restricted Area <small>simulated</small></h1>

      <p>This page simulates your protected area or your login target.</p>

      <div class="alert alert-info col-xs-6">
         <p>Checking status...</p>
      </div>

      <div class="alert alert-warning col-xs-6" style="display: none;">
         <p>You are not logged in! Maybe your password was wrong. <a href="index.html">Back</a></p>
      </div>

      <div class="alert alert-success col-xs-6" style="display: none;">
         <p>The following link has the <code>id</code> which was passed to jsxc as <code>logoutElement</code>:</p>

         <p><a href="index.html" id="logout" class="btn btn-default">Log out</a> and redirect to <code>index.html</code></p>
      </div>
   </div>

   <script>
      $(function() {
         var to = setTimeout(function() {
            $('.alert-warning').show('slow');
            $('.alert-info').hide();
         }, 1000);

         $(document).on('attached.jsxc', function() {
            clearTimeout(to);

            $('.alert-warning').hide();
            $('.alert-info').hide();
            $('.alert-success').show('slow');
         });
      });

   </script>
</body>

</html>