-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathauth.html
More file actions
84 lines (78 loc) · 2.82 KB
/
Copy pathauth.html
File metadata and controls
84 lines (78 loc) · 2.82 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset = "utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Authentication</title>
<!--Bootstrap-->
<link href = "static/css/bootstrap.min.css" rel = "stylesheet" />
<!--Custom CSS-->
<link href = "static/css/main.css" rel = "stylesheet" />
<link href = "media/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href = "media/favicon.ico" rel="icon" type="image/x-icon"/>
</head>
<body>
<div id = "sp-header-wrapper" class = "navbar navbar-defaul navbar-fixed-top">
<div class = "container-fluid">
<div class = "navbar-header">
<a class="navbar-brand" href = "http://www.ipho2015.in">
<img alt="logo" src = "media/ipho-logo1.png" />
</a>
</div>
</div>
<div id = "tifr-mast">
<div id = "tifr-logo"><img alt="tifr-logo" src = "/media/tifr-logo-s.png" /></div>
<div id = "hbc-tifr">
<div id = "hbc">Homi Bhabha Centre for Education</div>
<div id = "tifr">Tata Institute of Fundamental Research</div>
</div>
</div>
</div>
<div style = "width:100%" id = "document">
<form id="form-auth">
<div class="form-group">
<label for="pass" class = "control-label">Password</label>
<input type = "password" name="pass" class="form-control" id = "form-auth-pass" /><br />
</div>
<div id = "form-auth-submit">
<button type="submit" class="btn btn-default">Log In</button>
</div>
</form>
</div>
<footer id="sp-footer-wrapper" style="bottom:0px;">
<div class="container">
<div class="row-fluid" id="footer">
<div id="sp-footer1" class="span6" style="text-align:center">
<span>Copyright © Homi Bhabha Centre for Science Education, TIFR</span>
<br /><span>Mumbai - India </span>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src = "static/js/jquery.min.js"></script>
<script src = "static/js/bootstrap.min.js"></script>
<script src = "/socket.io/socket.io.js"></script>
<script>
$(document).ready(function ()
{
$("#form-auth-pass").focus();
});
var socket = io();
socket.on('syn-err',function(){
$("#form-auth-pass").parent().addClass("has-error");
});
socket.on('fin',function(){
window.location = "/";
});
$("#form-auth").submit(function()
{
$("#form-auth-pass").parent().removeClass("has-error");
socket.emit('syn',$("#form-auth-pass").val());
$("#form-auth-pass").val('');
return false;
});
</script>
</body>
</html>