-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (94 loc) · 3.94 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/magnific-popup.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body ng-controller="main">
<div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" ng-init="tab=1" ng-class="{active: tab===1}" ng-click="tab=1"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Latest Maps</a></li>
<li role="presentation" ng-class="{active: tab===2}" ng-click="tab=2"><a id="allMaps" href="#profile" aria-controls="profile" role="tab" data-toggle="tab">All Maps</a></li>
</ul>
<!-- Tab panes -->
<div>
<!--Latest maps-->
<div id="home" ng-show="tab===1">
<div class="box">
<div class="row">
<div class="card newest col-sm-4" ng-repeat="map in maps | orderBy: '-mdate' | limitTo: 12" ng-click="selectMap(map)">
<img ng-src="http://www.urtjumpers.com/img/maps/{{map.id}}/bandeau.jpg"/>
<div class="card-name">{{map.nom}}</div>
</div>
</div>
</div>
</div>
<!--All maps-->
<div ng-show="tab===2">
<div class="row">
<div class="col-sm-9">
<div ng-if="selectedMap">
<div class="card">
<img ng-src="http://www.urtjumpers.com/img/maps/{{selectedMap.id}}/bandeau.jpg"/>
<div class="card-name">
{{selectedMap.nom}} by {{selectedMap.mapper}}
</div>
</div>
<div class="card dark">
<table>
<tr ng-if="selectedMap.mdate">
<td>
Last Updated:
</td>
<td>
{{getDate(selectedMap.mdate)}}
</td>
</tr>
<tr ng-if="selectedMap.level">
<td>
Difficulty:
</td>
<td>
{{selectedMap.level}}/100
</td>
</tr>
<tr>
<td>PK3:</td>
<td>
<a ng-href="http://mirrors.urtctf.com/www.urtjumpers.com/q3ut4/{{selectedMap.pk3}}.pk3">Download ({{getSize(selectedMap)}} MB)</a>
</td>
</tr>
<tr ng-if="selectedMap.videos && selectedMap.videos.length">
<td>Videos:</td>
<td></td>
</tr>
</table>
<div class="videos" ng-if="selectedMap.videos && selectedMap.videos.length">
<div class="card" ng-repeat="video in selectedMap.videos">
<a class="video" ng-href="http://www.youtube.com/watch?v={{video.id}}">
<img ng-src="https://i.ytimg.com/vi/{{video.id}}/mqdefault.jpg"/>
<div class="card-name">{{video.title}}</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<ul class="list-group">
<li id="{{map.id}}" class="list-group-item" ng-repeat="map in maps" ng-click="selectMap(map)" ng-class="map==selectedMap ? 'selected' : ''">
{{map.nom}}
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script async data-main="js/config.js" src="js/lib/require.min.js"></script>
</body>
</html>