This repository has been archived by the owner on Mar 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (84 loc) · 3.66 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 lang="en">
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png">
<link rel="manifest" href="favicons/manifest.json">
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<title>openDataBase</title>
<!-- AngularJS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase.js"></script>
<!-- AngularFire -->
<script src="https://cdn.firebase.com/libs/angularfire/2.3.0/angularfire.min.js"></script>
<script src="script.js"></script>
<!-- Semantic UI -->
<link rel="stylesheet" href="semantic.min.css">
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="semantic.min.js"></script>
</head>
<body class="ui container">
<div class="ui vertical masthead center aligned segment">
<div class="ui text container">
<h1 class="ui center aligned icon header">
<i class="database icon"></i>
openDataBase
<div class="sub header">A Collection of Open Data Sources and APIs</div>
</h1>
</div>
</div>
<div class="ui horizontal divider"></div>
<div class="ui container" ng-app="datasourcesApp" ng-controller="mainController">
<div class="ui secondary menu">
<a class="item" ng-click="toggleCategory($event, 'Health')">
<i class="heartbeat icon"></i>Health
</a>
<a class="item" ng-click="toggleCategory($event, 'Government'); ">
<i class="university icon"></i>Government
</a>
<a class="item" ng-click="toggleCategory($event, 'Facts')">
<i class="book icon"></i>Facts
</a>
<a class="item" ng-click="toggleCategory($event, 'Research Output')">
<i class="student icon"></i>Research Output
</a>
<div class="right menu">
<div class="item">
<div class="ui icon input">
<input type="text" placeholder="Search..." ng-model="searchTerm">
<i class="search link icon"></i>
</div>
</div>
</div>
</div>
<table class="ui compact celled table">
<thead>
<tr>
<th ng-click="sortType = 'name'; sortReverse = !sortReverse">
Name
</th>
<th ng-click="sortType = 'description'; sortReverse = !sortReverse">
Description
</th>
<th ng-click="sortType = 'category'; sortReverse = !sortReverse">
Category
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="datasource in datasources | orderBy:sortType:sortReverse | filter:showData">
<td><a href="{{ datasource.link }}">{{datasource.name}}</a></td>
<td>{{ datasource.description }}</td>
<td>{{ datasource.category }}</td>
</tr>
</tbody>
</table>
<br>
<br>
</div>
</body>
</html>