| 1 |
<!DOCTYPE HTML> |
| 2 |
<html> |
| 3 |
|
| 4 |
<head> |
| 5 |
<title>JSXC example application</title> |
| 6 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 8 |
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> |
| 9 |
|
| 10 |
<link href="css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" /> |
| 11 |
|
| 12 |
<link href="css/jquery-ui.min.css" media="all" rel="stylesheet" type="text/css" /> |
| 13 |
<link href="../build/css/jsxc.css" media="all" rel="stylesheet" type="text/css" /> |
| 14 |
|
| 15 |
<script src="js/jquery.min.js"></script> |
| 16 |
<script src="js/jquery-ui.min.js"></script> |
| 17 |
<script src="../build/lib/jquery.slimscroll.js"></script> |
| 18 |
<script src="../build/lib/jquery.fullscreen.js"></script> |
| 19 |
|
| 20 |
<script src="../build/lib/jsxc.dep.js"></script> |
| 21 |
<script src="../build/jsxc.min.js"></script> |
| 22 |
|
| 23 |
<script src="js/example.js"></script> |
| 24 |
|
| 25 |
</head> |
| 26 |
|
| 27 |
<body> |
| 28 |
<div class="container"> |
| 29 |
<h1 class="page-header">Restricted Area <small>simulated</small></h1> |
| 30 |
|
| 31 |
<p>This page simulates your protected area or your login target.</p> |
| 32 |
|
| 33 |
<div class="alert alert-info col-xs-6"> |
| 34 |
<p>Checking status...</p> |
| 35 |
</div> |
| 36 |
|
| 37 |
<div class="alert alert-warning col-xs-6" style="display: none;"> |
| 38 |
<p>You are not logged in! Maybe your password was wrong. <a href="index.html">Back</a></p> |
| 39 |
</div> |
| 40 |
|
| 41 |
<div class="alert alert-success col-xs-6" style="display: none;"> |
| 42 |
<p>The following link has the <code>id</code> which was passed to jsxc as <code>logoutElement</code>:</p> |
| 43 |
|
| 44 |
<p><a href="index.html" id="logout" class="btn btn-default">Log out</a> and redirect to <code>index.html</code></p> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
|
| 48 |
<script> |
| 49 |
$(function() { |
| 50 |
var to = setTimeout(function() { |
| 51 |
$('.alert-warning').show('slow'); |
| 52 |
$('.alert-info').hide(); |
| 53 |
}, 1000); |
| 54 |
|
| 55 |
$(document).on('attached.jsxc', function() { |
| 56 |
clearTimeout(to); |
| 57 |
|
| 58 |
$('.alert-warning').hide(); |
| 59 |
$('.alert-info').hide(); |
| 60 |
$('.alert-success').show('slow'); |
| 61 |
}); |
| 62 |
}); |
| 63 |
|
| 64 |
</script> |
| 65 |
</body> |
| 66 |
|
| 67 |
</html> |