1 |
3fc08f2d
|
vastja
|
{% extends 'base.html.twig' %}
|
2 |
c6708024
|
vastja
|
|
3 |
|
|
{% block title %} Heatmap.ZČU {% endblock %}
|
4 |
3fc08f2d
|
vastja
|
{% block stylesheets %}
|
5 |
c6708024
|
vastja
|
<link rel="stylesheet" href="{{ asset('css/leaflet.css') }}" />
|
6 |
|
|
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}" />
|
7 |
|
|
<link rel="stylesheet" href="{{ asset('css/style.css') }}" />
|
8 |
3fc08f2d
|
vastja
|
{% endblock %}
|
9 |
|
|
|
10 |
c6708024
|
vastja
|
|
11 |
3fc08f2d
|
vastja
|
{% block body %}
|
12 |
|
|
|
13 |
c6708024
|
vastja
|
<header class="map">
|
14 |
|
|
<nav class="navbar navbar-expand-lg">
|
15 |
|
|
<a href="{{ path('heatmap') }}" class="navbar-brand">
|
16 |
|
|
<h1>Heatmap.ZČU</h1>
|
17 |
|
|
</a>
|
18 |
|
|
|
19 |
|
|
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
|
20 |
|
|
<span class="navbar-toggler-icon"></span>
|
21 |
|
|
</button>
|
22 |
|
|
|
23 |
|
|
<div class="collapse navbar-collapse" id="navigation">
|
24 |
|
|
<form method="get" class="ml-auto">
|
25 |
|
|
<ul class="navbar-nav">
|
26 |
|
|
<li class="nav-item">
|
27 |
|
|
<label for="date">Vyberte datum</label>
|
28 |
|
|
<input type="date" name="date" id="date" class="form-control" required>
|
29 |
|
|
</li>
|
30 |
|
|
|
31 |
|
|
<li class="nav-item">
|
32 |
|
|
<label for="hour">Vyberte čas</label>
|
33 |
|
|
<select name="hour" id="hour" class="custom-select">
|
34 |
|
|
<option value="0">0:00–1:00</option>
|
35 |
|
|
<option value="1">1:00–2:00</option>
|
36 |
|
|
<option value="2">2:00–3:00</option>
|
37 |
|
|
<option value="3">3:00–4:00</option>
|
38 |
|
|
<option value="4">4:00–5:00</option>
|
39 |
|
|
<option value="5">5:00–6:00</option>
|
40 |
|
|
<option value="6">6:00–7:00</option>
|
41 |
|
|
<option value="7">7:00–8:00</option>
|
42 |
|
|
<option value="8">8:00–9:00</option>
|
43 |
|
|
<option value="9">9:00–10:00</option>
|
44 |
|
|
<option value="10">10:00–11:00</option>
|
45 |
|
|
<option value="11">11:00–12:00</option>
|
46 |
|
|
<option value="12">12:00–13:00</option>
|
47 |
|
|
<option value="13">13:00–14:00</option>
|
48 |
|
|
<option value="14">14:00–15:00</option>
|
49 |
|
|
<option value="15">15:00–16:00</option>
|
50 |
|
|
<option value="16">16:00–17:00</option>
|
51 |
|
|
<option value="17">17:00–18:00</option>
|
52 |
|
|
<option value="18">18:00–19:00</option>
|
53 |
|
|
<option value="19">19:00–20:00</option>
|
54 |
|
|
<option value="20">20:00–21:00</option>
|
55 |
|
|
<option value="21">21:00–22:00</option>
|
56 |
|
|
<option value="22">22:00–23:00</option>
|
57 |
|
|
<option value="23">23:00–0:00</option>
|
58 |
|
|
</select>
|
59 |
|
|
</li>
|
60 |
3fc08f2d
|
vastja
|
|
61 |
c6708024
|
vastja
|
<li class="nav-item">
|
62 |
|
|
<label for="dataset">Vybrané datové sady</label>
|
63 |
|
|
<select name="dataset" id="dataset" class="custom-select">
|
64 |
|
|
<option value="scoobikes">koloběžky</option>
|
65 |
|
|
</select>
|
66 |
|
|
</li>
|
67 |
3fc08f2d
|
vastja
|
|
68 |
c6708024
|
vastja
|
<li class="nav-item">
|
69 |
|
|
<button class="btn btn-secondary" type="submit">
|
70 |
|
|
Potvrdit výběr
|
71 |
|
|
</button>
|
72 |
|
|
</li>
|
73 |
3fc08f2d
|
vastja
|
|
74 |
c6708024
|
vastja
|
<li class="nav-item button">
|
75 |
|
|
<h2>
|
76 |
|
|
<a href="{{ path('home') }}" class="nav-link">O projektu</a>
|
77 |
|
|
</h2>
|
78 |
|
|
</li>
|
79 |
|
|
</ul>
|
80 |
|
|
</form>
|
81 |
|
|
</div>
|
82 |
|
|
</nav>
|
83 |
|
|
</header>
|
84 |
3fc08f2d
|
vastja
|
|
85 |
c6708024
|
vastja
|
<div id="heatmap"></div>
|
86 |
|
|
|
87 |
3fc08f2d
|
vastja
|
{% endblock %}
|
88 |
|
|
|
89 |
|
|
{% block javascripts %}
|
90 |
|
|
|
91 |
c6708024
|
vastja
|
<script src="{{ asset('js/jquery-3.4.1.min.js') }}"></script>
|
92 |
|
|
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
|
93 |
3fc08f2d
|
vastja
|
<script src="{{ asset('js/leaflet.js') }}"></script>
|
94 |
|
|
<script src="{{ asset('js/leaflet-heat.js') }}"></script>
|
95 |
|
|
<script src="{{ asset('js/zcu-heatmap.js') }}"></script>
|
96 |
|
|
<script>
|
97 |
|
|
|
98 |
|
|
initMap();
|
99 |
|
|
showHeatmap("{{ path('opendata', {'collectionName':'open-data-db.KOLOBEZKY31102018'}) }}");
|
100 |
|
|
|
101 |
|
|
</script>
|
102 |
|
|
|
103 |
|
|
{% endblock %}
|