forked from emergenzeHack/covid19italia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (59 loc) · 2.62 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
---
layout: homepage
title: Covid19Italia Help
subtitle: Un progetto per condividere informazioni e attivarsi a supporto dell'emergenza COVID19
---
<div class="homepage-categories">
{% assign categories_without_map = site.data.logos | where: "map", false %}
{% for category in categories_without_map %}
{% capture logo_alt %}
{{ category.name }}
{% if category.logo_credit and category.logo_credit != empty %}
logo by {{ category.logo_credit }}
{% endif %}
{% endcapture %}
{% assign logo_alt = logo_alt | strip %}
<a href="{{ site.baseurl }}/{{ category.link }}" class="thumbnail col-md-2" title="{{ logo_alt }}">
{% if category.logo and category.logo != empty %}
<img src="{{ site.baseurl }}{{ category.logo }}" alt="{{ category.logo-alt }}">
{% endif %}
{{ category.name }}
</a>
{% endfor %}
</div>
<hr class="col-lg-12">
<div class="row">
<div class="col-lg-12 col-xs-12">
<form class="global-search" role="form" action="/searchissues" method="get">
<div class="form-group">
<label for="search-box">Cosa cerchi?</label>
<input type="text" class="form-control" id="search-box" name="query" placeholder="">
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Cerca">
</div>
</form>
</div>
</div>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../js/moment.min.js"></script>
<script type="text/javascript" src="../js/masonry.min.js"></script>
<!-- form di ricerca delle news -->
<script src="../js/jquery.sieve.min.js" type="text/javascript"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/elasticlunr/0.9.5/elasticlunr.min.js"></script>
<script type="text/javascript" src="../js/lunr.stemmer.support.min.js"></script>
<script type="text/javascript" src="../js/lunr.it.min.js"></script>
<script type="text/javascript" src="../js/search.min.js"></script>
<script>
var searchTemplate="<div class='form-group'><div class='input-group'><div class='input-group-addon'>Cerca:</div><input type='text' class='form-control' placeholder='(cerca qui...)'></div></div>"
$("div.sieve").sieve({ itemSelector: ".panel-info" });
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/service-worker.js')
.then((reg) => {
console.log('Service worker registered.', reg);
});
});
}
</script>