forked from HarvardOpenData/HarvardOpenData.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcatalog.html
executable file
·60 lines (52 loc) · 1.87 KB
/
catalog.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
---
title: Catalog
layout: default
permalink: /catalog/
# we need d3 scripts to load and visualize the catalog
scripts:
- https://d3js.org/d3-collection.v1.min.js
- https://d3js.org/d3-dispatch.v1.min.js
- https://d3js.org/d3-dsv.v1.min.js
- https://d3js.org/d3-request.v1.min.js
- https://d3js.org/d3-selection.v1.min.js
- https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js
- /js/catalog.js
---
<div class="container">
<h1 class="page-title centered">Bases de Dados</h1>
</p>
<!-- Search box -->
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-search"></i>
</span>
<input type="text" id="catalog-search-text" class="form-control" placeholder="Digite para pesquisar datasets">
</div>
<br />
<div class="col-sm-3">
<h3 class="page-header">Categorias</h3>
<div class="list-group" id="filter-category">
{% for category in site.data.categories %}
<a href="{{ site.baseurl }}/catalog/index.html?category={{ category.slug }}" class="list-group-item" id="filter-category-{{ category.slug }}">
<i class="fa fa-fw fa-{{ category.icon }}"></i> {{ category.name }}
</a>
{% endfor %}
</div>
<h3 class="page-header">Tipos</h3>
<div class="list-group" id="filter-type">
{% for filetype in site.data.filetypes %}
<a href="{{ site.baseurl }}/catalog/index.html?type={{ filetype.name }}" class="list-group-item" id="filter-type-{{ filetype.name }}">
<i class="fa fa-fw fa-{{ filetype.icon }}"></i> {{ filetype.name }}
</a>
{% endfor %}
</div>
</div>
<div class="col-sm-9">
<div class="alert alert-danger hidden" id="catalog-error">
Nenhuma base encontrada! Tente outra busca.
</div>
<div id="catalog-results">
<!-- search results here -->
</div>
</div>
</div>