-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (40 loc) · 1.15 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
<!DOCTYPE html>
<html ng-app="codeChallengesApp" lang="en">
<head>
<meta charset="utf-8">
<title>Code Challenges</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="bootstrap.css">
<script src="angular.js"> </script>
<script src="app.js"> </script>
</head>
<body ng-controller="ExcerciseListCtrl" id="home">
<div class="container-fluid">
<h1>Code Challenges</h1>
<div class="row">
<div class="col-md-12">Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="name">Name</option>
<option value="snippet">Snippet</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-2">
<div class="list-group">
<a ng-repeat="excercise in excercises" href="#" class="list-group-item" ng-class="{active:isSelected(excercise)}" ng-click="setSelected(excercise)"> <!-- filtert und updated -->
<span>{{excercise.name}}</span>
</a>
</div>
</div>
<div class="col-md-10">
<div class="list-group">
<span >{{currentExcercise.name}}</span>
<p>{{currentExcercise.snippet}}</p>
</div>
</div>
</div>
</div>
</body>
</html>