-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
158 lines (148 loc) · 6.81 KB
/
index.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en" ng-app="lanoel">
<head>
<base href="/"></base>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>LANOEL!</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/lanoel.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/angular-animate.min.js"></script>
<script src="js/angular-route.min.js"></script>
<script src="js/angular-dragdrop.min.js"></script>
<script src="js/ui-bootstrap-tpls-2.1.2.min.js"></script>
<script src="js/angular-drag-and-drop-lists.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="lanoel.js"></script>
<script src="js/app/controllers/gameController.js"></script>
<script src="js/app/controllers/headerController.js"></script>
<script src="js/app/controllers/personController.js"></script>
<script src="js/app/controllers/tournamentController.js"></script>
<script src="js/app/controllers/updateScoresController.js"></script>
<script src="js/app/repositories/lanoelService.js"></script>
</head>
<body ng-controller="HeaderController">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a href="/" class="navbar-brand">LANoel 2017</a>
</div>
<div class="navbar-header">
<a class="navbar-brand" style="color:floralwhite" >Voting ends at Haloween</a>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li>
<a href="/tournaments">Tournaments</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right" id="accountList">
<li ng-show="!checkUserLogin()" id="loginLink"><a style="cursor:pointer" data-toggle="modal" data-target="#myModal">Login</a></li>
<li ng-show="checkUserLogin()"id="logoutLink"><a style="cursor:pointer" ng-click="logoutClick()" >Logout</a></li>
<li ng-show="checkUserLogin()"id="updateScoresLink">
<a style="cursor:pointer" ng-click="updateScoresClick()">Update Scores</a>
</li>
<li ng-show="checkUserLogin()"id="myAccountLink">
<a style="cursor:pointer" ng-click="getMyAccount()">My Account</a>
</li>
</ul>
</div>
</div>
</nav>
<br/>
<br/>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Login</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" ng-submit="onLogin()">
<fieldset>
<div class="form-group">
<label for="username" class="col-lg-2 control-label">Username</label>
<div class="col-lg-10">
<input autofocus type="text" class="form-control" id="usernameField" ng-model="user.username" placeholder="username">
</div>
</div>
<div class="form-group">
<label for="password" class="col-lg-2 control-label">Password</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="passwordField" ng-model="user.password" placeholder="password">
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-default" ng-click="onLogin()" data-dismiss="modal">Login</button>
<button type="button" class="btn btn-default" data-dismiss="modal" data-toggle="modal" data-target="#passwordResetModal">Forgot Password</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="passwordResetModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Reset Password</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<fieldset>
<div class="form-group">
<label for="username" class="col-lg-2 control-label">Email</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="emailfield" ng-model="user.email" placeholder="Email">
</div>
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="onPasswordReset()" ng-keypress="onPasswordReset()" data-dismiss="modal" data-toggle="modal" data-target="#passwordResetSuccessModal">Reset Password</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="passwordResetSuccessModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Success!</h4>
</div>
<div class="modal-body">
<p>Check your email for a password reset email from [email protected]</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- angular templating -->
<!-- this is where content will be injected -->
<div ng-view></div>
</body>
</html>