-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
222 lines (196 loc) · 9.09 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="description" content="Advent Of Code" />
<meta name="keywords" content="advent,code,aoc" />
<meta name="author" content="Alex Hedley" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/vendor/bootstrap.min.css" />
<link rel="stylesheet" href="css/vendor/sticky-footer.css" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous"
/>
<!-- <link rel="stylesheet" href="css/vendor/jquery-ui.min.css"> -->
<link rel="stylesheet" href="css/vendor/jquery-ui.1.12.1.min.css" />
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/stats.css" />
<link rel="shortcut icon" href="favicon.ico" />
<!-- Fonts -->
<!-- <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'> -->
<title>Advent Of Code</title>
</head>
<body ng-app="myApp">
<main role="main" class="container">
<section class="jumbotron title-container text-center">
<div>
<h1>🎄 Advent Of Code 🎄</h1>
<div class="row justify-content-md-center">
<div class="col-lg-8">
<div class="input-group search-bar">
<input type="text" class="form-control" ng-model="searchText" placeholder="Search for a year..." aria-label="Search"
/>
<button type="submit" class="btn btn-success">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- <button class="btn btn-warning float-right" type="button" data-toggle="collapse" data-target="#image" aria-expanded="false" aria-controls="image">
Show/Hide
</button>
<div class="collapse" id="image">
<div class="row justify-content-md-center">
<img src="images/.jpeg" width="500px" alt="Game" />
</div>
</div> -->
<br />
<div ng-controller="myController">
<div class="container">
<!-- Nav tabs -->
<ul class="nav nav-tabs">
<li class='nav-item'>
<a class='nav-link active' data-toggle='tab' href='#years'>Years</a>
</li>
<li class='nav-item'>
<a class='nav-link' data-toggle='tab' href='#stats'>Stats</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Years -->
<div class='tab-pane container fade in show active' id='years'>
<h2>Years</h2>
<br />
<div class="row justify-content-md-center">
<div class="">
<table id="years">
<thead>
<tr>
<th>Year</th>
<th>Description</th>
<!-- <th>Dates</th> -->
<th>Supporter</th>
<th>Silver</th>
<th>Gold ⭐</th>
<th>Total</th>
<!-- <th>Site</th> -->
<!-- <th>Repo</th> -->
<!-- <th>AoC Site</th> -->
</tr>
</thead>
<tbody>
<tr ng-repeat="year in years | filter:searchText">
<td>{{year.name}}</td>
<td>{{year.description}}</td>
<!-- <td>{{year.startDate | date:'d MMM yyyy'}} - {{year.endDate | date:'d MMM yyyy'}}</td> -->
<td>{{year.supporter | supporter}}</td>
<td>{{year.stars.silver}}</td>
<td>{{year.stars.gold}}</td>
<td>{{year.stars.silver + (year.stars.gold * 2)}}</td>
<!-- <td>{{year.site}}</td> -->
<!-- <td>{{year.code}}</td> -->
<!-- <td>{{year.aoc_site}}</td> -->
</tr>
</tbody>
</table>
</div>
</div>
<br />
<br />
<div class="row">
<div ng-repeat="year in years | filter:searchText" class="col-md-4" style="margin-bottom: 50px">
<div class="card" style="width: 18rem">
<img ng-if="year.image.length > 0" ng-src="{{year.image}}" class="card-img-top" alt="{{year.name}}">
<div class="card-header">
{{year.name}}
</div>
<div class="card-body">
<p class="card-text">{{year.description}}</p>
<p class="card-text">
<span class="badge badge-secondary" style="margin-left: 5px" title="Silver">{{year.stars.silver}}</span>
<span class="badge badge-warning" style="margin-left: 5px" title="Gold">{{year.stars.gold}}</span>
<span ng-if="year.supporter == true" class="badge badge-warning" style="margin-left: 5px" title="Supporter">++</span>
</p>
<div class="btn-group">
<button ng-click="OpenRepository(year)" type="button" class="btn btn-sm btn-success card-button">
<i class="fab fa-github"></i> View Code
</button>
<!-- <button ng-click="OpenRepositoryHomepage(year)" type="button" class="btn btn-sm btn-outline-success card-button">
<i class="fas fa-globe-europe"></i>View Site
</button> -->
</div>
<div class="btn-group">
<button ng-click="OpenAoCHomepage(year)" type="button" class="btn btn-sm btn-success card-button">
<i class="fas fa-globe-europe"></i>View Site
</button>
</div>
<!-- <div class="card-topics-container">
<div ng-repeat="topic in year.topics">
<span class="badge badge-pill card-pill-primary" style="margin-left:5px;">{{topic}}</span>
</div>
</div> -->
</div>
<div class="card-footer text-muted">
{{year.startDate | date:'d MMM yyyy'}} - {{year.endDate | date:'d MMM yyyy'}}
</div>
</div>
</div>
</div>
<!-- </div> -->
</div>
<!-- Stats -->
<div class='tab-pane container fade' id='stats'>
<!-- <div class="tab-pane fade show" id="stats" role="tabpanel" aria-labelledby="stats-tab"> -->
<h2>Stats</h2>
<br />
<p style="color: yellow;">WIP: add actual times...</p>
<div class="row">
<div class="col">
<div id="stats-container"></div>
</div>
</div>
<br />
<div class="row">
<div class="col">
<p>Thanks Jeroen Heijmans - <a href="https://codepen.io/jeroenheijmans/pen/GPomRd" target="_blank" style="color: red;">Advent of Code Personal Stats Comparison</a></p>
</div>
</div>
<!-- </div> -->
</div>
<!-- </div> -->
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="container">
<span class="text-muted"><a href="https://alexhedley.github.io/" target="_blank">Alex Hedley</a>.</span>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/vendor/jquery-3.3.1.min.js"></script>
<script>
window.jQuery || document.write('<script src="js/vendor/jquery-slim.min.js"><\/script>');
</script>
<script src="js/vendor/jquery-ui.min.js"></script>
<!-- <script src="js/vendor/jquery-ui.1.12.1.min.js"></script> -->
<!-- <script src="js/vendor/popper.min.js"></script> -->
<script src="js/vendor/bootstrap.min.js"></script>
<!-- <script src="js/vendor/jquery.pretty-text-diff.min.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min.js"></script> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script> -->
<script src="js/vendor/angular.min.js"></script>
<!-- <script src="js/vendor/angular-filter.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>
<script src="js/app.js"></script>
<script src="js/stats.js"></script>
</body>
</html>