Revize c892003d
Přidáno uživatelem Martin Sebela před více než 3 roky(ů)
website/templates/heatmap.html.twig | ||
---|---|---|
2 | 2 |
|
3 | 3 |
{% block title %}Heatmap.ZČU{% endblock %} |
4 | 4 |
{% block stylesheets %} |
5 |
<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 |
<link rel="stylesheet" href="{{ asset('css/bootstrap-datepicker3.css') }}"> |
|
5 |
<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 |
<link rel="stylesheet" href="{{ asset('css/bootstrap-datepicker3.css') }}">
|
|
9 | 9 |
{% endblock %} |
10 | 10 |
|
11 | 11 |
{% block body %} |
... | ... | |
47 | 47 |
<button type="button" class="btn dropdown-toggle" id="dropdownMenuButtonTime" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
48 | 48 |
{{ current_time }} |
49 | 49 |
</button> |
50 |
<div id="dataset-dropdown-time" class="dropdown-menu" aria-labelledby="dropdownMenuButtonTime">
|
|
50 |
<div id="dropdown-time" class="dropdown-menu" aria-labelledby="dropdownMenuButtonTime"> |
|
51 | 51 |
{% for hour in form.time.children %} |
52 | 52 |
<div class="dropdown-item custom-dropdown-item"> |
53 | 53 |
{{ form_widget(hour, {attr: {class: 'd-none'}}) }} |
... | ... | |
62 | 62 |
<button type="button" class="btn dropdown-toggle font-weight-bold" id="dropdownMenuButtonDataset" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
63 | 63 |
Vyberte datovou sadu |
64 | 64 |
</button> |
65 |
<div id="dataset-dropdown" class="dropdown-menu" aria-labelledby="dropdownMenuButtonDataset">
|
|
65 |
<div id="dropdown-dataset" class="dropdown-menu" aria-labelledby="dropdownMenuButtonDataset">
|
|
66 | 66 |
{% for dataset in form.type.children %} |
67 | 67 |
<div class="dropdown-item custom-dropdown-item"> |
68 | 68 |
<div class="custom-control custom-checkbox custom-checkbox-{{dataset.vars.value}}"> |
... | ... | |
84 | 84 |
<li class="nav-item"> |
85 | 85 |
{{ form_widget(form.submit, |
86 | 86 |
{ |
87 |
'name' : '', |
|
88 |
'label' : '', |
|
89 | 87 |
'type' : 'submit', |
88 |
'name' : '', |
|
90 | 89 |
'id' : 'btn-update-heatmap', |
91 | 90 |
'attr' : { |
92 | 91 |
'class': 'btn btn-secondary' |
... | ... | |
126 | 125 |
<div class="time hour-0" id="timeline">0:00</div> |
127 | 126 |
|
128 | 127 |
{% for i in 0..23 %} |
129 |
<div class="hour"></div> |
|
128 |
<div class="hour" title="{{ i }}:00" onclick="changeHour('{{ i }}')"></div>
|
|
130 | 129 |
{% endfor %} |
131 | 130 |
<div class="end-dot"></div> |
132 | 131 |
</div> |
... | ... | |
138 | 137 |
{% endblock %} |
139 | 138 |
|
140 | 139 |
{% block javascripts %} |
141 |
|
|
142 | 140 |
<script src="{{ asset('js/vendor/jquery-3.4.1.min.js') }}"></script> |
143 | 141 |
<script src="{{ asset('js/vendor/bootstrap.min.js') }}"></script> |
144 | 142 |
<script src="{{ asset('js/vendor/bootstrap-datepicker.min.js') }}"></script> |
... | ... | |
147 | 145 |
<script src="{{ asset('js/vendor/leaflet-heat.js') }}"></script> |
148 | 146 |
<script src="{{ asset('js/zcu-heatmap.js') }}"></script> |
149 | 147 |
<script> |
150 |
initDatepicker("{{ path('dates') }}"); |
|
148 |
initDatepicker("{{ path('dates') }}"); |
|
149 |
initLocationsMenu(); |
|
150 |
initMap(); |
|
151 |
|
|
152 |
$(document).ready(function() { |
|
153 |
onDocumentReady(); |
|
154 |
checkDataSetsAvailability("{{ path('available') }}") |
|
155 |
{% if submitted %} |
|
156 |
loadCurrentTimeHeatmap("{{ path('opendata') }}", "{{ path('positions') }}"); |
|
157 |
{% endif %} |
|
158 |
}); |
|
159 |
|
|
160 |
$(window).resize(function() { |
|
151 | 161 |
initLocationsMenu(); |
152 |
initMap(); |
|
153 |
|
|
154 |
$(document).ready(function() { |
|
155 |
onDocumentReady(); |
|
156 |
checkDataSetsAvailability("{{ path('available') }}") |
|
157 |
{% if submitted %} |
|
158 |
loadCurrentTimeHeatmap("{{ path('opendata') }}", "{{ path('positions') }}"); |
|
159 |
{% endif %} |
|
160 |
}); |
|
161 |
|
|
162 |
$(window).resize(function() { |
|
163 |
initLocationsMenu(); |
|
164 |
}); |
|
162 |
}); |
|
165 | 163 |
</script> |
166 |
|
|
167 | 164 |
{% endblock %} |
168 | 165 |
|
169 | 166 |
{% block style %} |
170 |
<style type="text/css">
|
|
171 |
{% for dataset_name, dataset_color in dataset_colors %}
|
|
172 |
.custom-control-input-{{ dataset_name }}:focus~.custom-control-label::before {
|
|
173 |
border-color: {{ dataset_color }} !important;
|
|
174 |
box-shadow: 0 0 0 0.2rem rgba(192,192,192, 0.4) !important;
|
|
175 |
}
|
|
176 |
|
|
177 |
.custom-control-input-{{ dataset_name }}:checked~.custom-control-label::before {
|
|
178 |
border-color: {{ dataset_color }} !important;
|
|
179 |
background-color: {{ dataset_color }} !important;
|
|
180 |
}
|
|
181 |
|
|
182 |
.custom-control-input-{{ dataset_name }}:focus:not(:checked)~.custom-control-label::before {
|
|
183 |
border-color: {{ dataset_color }} !important;
|
|
184 |
}
|
|
185 |
|
|
186 |
.custom-control-input-{{ dataset_name }}:not(:disabled):active~.custom-control-label::before {
|
|
187 |
background-color: {{ dataset_color }} !important;
|
|
188 |
border-color: {{ dataset_color }} !important;
|
|
189 |
}
|
|
190 |
|
|
191 |
.popup-{{ dataset_name }} > .leaflet-popup-content-wrapper, .popup-{{ dataset_name }} .leaflet-popup-tip {
|
|
192 |
background-color: {{ dataset_color }} !important;
|
|
193 |
}
|
|
194 |
{% endfor %}
|
|
195 |
</style>
|
|
167 |
<style type="text/css"> |
|
168 |
{% for dataset_name, dataset_color in dataset_colors %} |
|
169 |
.custom-control-input-{{ dataset_name }}:focus~.custom-control-label::before { |
|
170 |
border-color: {{ dataset_color }} !important; |
|
171 |
box-shadow: 0 0 0 0.2rem rgba(192,192,192, 0.4) !important; |
|
172 |
} |
|
173 |
|
|
174 |
.custom-control-input-{{ dataset_name }}:checked~.custom-control-label::before { |
|
175 |
border-color: {{ dataset_color }} !important; |
|
176 |
background-color: {{ dataset_color }} !important; |
|
177 |
} |
|
178 |
|
|
179 |
.custom-control-input-{{ dataset_name }}:focus:not(:checked)~.custom-control-label::before { |
|
180 |
border-color: {{ dataset_color }} !important; |
|
181 |
} |
|
182 |
|
|
183 |
.custom-control-input-{{ dataset_name }}:not(:disabled):active~.custom-control-label::before { |
|
184 |
background-color: {{ dataset_color }} !important; |
|
185 |
border-color: {{ dataset_color }} !important; |
|
186 |
} |
|
187 |
|
|
188 |
.popup-{{ dataset_name }} > .leaflet-popup-content-wrapper, .popup-{{ dataset_name }} .leaflet-popup-tip { |
|
189 |
background-color: {{ dataset_color }} !important; |
|
190 |
} |
|
191 |
{% endfor %} |
|
192 |
</style> |
|
196 | 193 |
{% endblock %} |
Také k dispozici: Unified diff
Re #8159 - CSS improvements, timeline clickable, code refactoring