-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·66 lines (63 loc) · 2.96 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
<!DOCTYPE html>
<html ng-app="hackInTNApp" ng-controller="PageCtrl">
<head>
<link rel="stylesheet" href="css/style.css" />
<title ng-controller="PageCtrl" ng-bind="'HackInTN' + Page.title()">Hack In TN</title>
<script src="/js/angular.min.js"></script>
<script src="/js/app.js"></script>
<meta charset="utf-8" />
</head>
<body>
<label id="cover">
<input type="radio" name="radiocb"
ng-model="Page.cover"
ng-true-value="false"
ng-false-value="true"
ng-model-options="{ getterSetter: true }" checked/>
<div ng-if="Page.cover()"> </div>
</label>
<div id="title" ><h1 ng-bind="'Hack In TN' + Page.title()">Hack In TN</h1></div>
<div ng-if="!User.logged()" id="main" class="center">
<div ng-if="!Page.cover()">
<form name="loginForm" ng-controller="LoginFormCtrl" ng-submit="login()" class="login">
<label>Username : <input name="username" type="text" ng-model="username" /></label><br />
<label>Password : <input name="password" type="password" ng-model="password" /></label><br />
<input type="submit" value="Ok" />
</form>
</div>
<div ng-if="Page.cover()" ng-cloak>
LOADING...
</div>
</div>
<div id="main" ng-controller="ExListCtrl" ng-if="User.logged()" ng-cloak>
<label ng-repeat="exercise in User.exercises()" class="exContainer">
<div class="icon" ng-class="getGlobalClass(exercise)"></div>
<h3>{{exercise.name}}</h3>
<p>{{exercise.description}}</p>
<input type="checkbox" class="cb" />
<div class="content">
<h3>{{exercise.name}}</h3>
<p>{{exercise.description}}</p>
<span class="status" ng-class="getStatusClass(exercise)"><label>Exercise progress : </label>{{exercise.status ? "Finished" : "Not finished"; }}</span><br />
<span class="launched" ng-class="getStartedClass(exercise)"><label>Launched since : </label>{{exercise.started || "Not started";}}</span><br />
<div ng-if="exercise.started == None">
<form><label>Answer : <input name="validcodeEX1" type="text" disabled="disabled"/><input type="submit" value="ok" disabled="disabled"/></label></form>
<form class="launch" ng-if="User.level() >= 1"><input type="submit" value="Launch Exercise"/></form>
<form class="launch" ng-if="User.level() < 1"><input type="submit" value="Launch Exercise" disabled="disabled" title="Your account is not approved." /></form>
</div>
<div ng-if="exercise.started != None">
<form><label>Answer : <input name="validcodeEX1" type="text"/><input type="submit" value="ok"/></label></form>
<form class="go" action="{{"/ex/" + exercise.id}}"><input type="submit" value="Go to exercise"/></form>
<form class="stop"><input type="submit" value="Stop Exercise"/></form>
</div>
</div>
</label>
<form ng-submit="User.reloadExercises()" class="exEnd">
<input type="submit" value="Load more..." />
</form>
</div>
<div id="footer">
©Telecom Nancy 2015-2015 - <a href="credits.html">Credits</a>
</div>
</body>
</html>