Revize 9a772066
Přidáno uživatelem Tomáš před více než 3 roky(ů)
website/templates/heatmap.html.twig | ||
---|---|---|
36 | 36 |
'maxlength' : '10', |
37 | 37 |
'placeholder' : 'YYYY-MM-DD', |
38 | 38 |
'autocomplete' : 'off', |
39 |
'onchange' : 'checkDataSetsAvailability("' ~ path('available') ~ '")' |
|
39 |
'onchange' : 'js.checkDataSetsAvailability("' ~ path('available') ~ '")'
|
|
40 | 40 |
} |
41 | 41 |
}) |
42 | 42 |
}} |
... | ... | |
111 | 111 |
</div> |
112 | 112 |
|
113 | 113 |
<div class="player"> |
114 |
<div class="prev-btn" onclick="previous()"></div> |
|
115 |
<div class="animate-btn play" id="animate-btn" onclick="changeAnimationState()"></div> |
|
116 |
<div class="next-btn" onclick="next()"></div> |
|
114 |
<div class="prev-btn" onclick="js.previous()"></div>
|
|
115 |
<div class="animate-btn play" id="animate-btn" onclick="js.changeAnimationState()"></div>
|
|
116 |
<div class="next-btn" onclick="js.next()"></div>
|
|
117 | 117 |
|
118 | 118 |
<div class="timeline-wrapper"> |
119 | 119 |
{% if form.vars.value.date %} |
120 |
<div class="date" id="player-date" onclick="toggleDayLock()" title="Animovat pouze v rámci jednoho dne"> |
|
120 |
<div class="date" id="player-date" onclick="js.toggleDayLock()" title="Animovat pouze v rámci jednoho dne">
|
|
121 | 121 |
<span>{{ form.vars.value.date|date('j. n. Y') }}</span> |
122 | 122 |
<div class="lock-btn"></div> |
123 | 123 |
</div> |
... | ... | |
132 | 132 |
</div> |
133 | 133 |
|
134 | 134 |
{% for i in 0..23 %} |
135 |
<div class="hour" title="{{ i }}:00" onclick="onChangeHour('{{ i }}')"></div> |
|
135 |
<div class="hour" title="{{ i }}:00" onclick="js.onChangeHour('{{ i }}')"></div>
|
|
136 | 136 |
{% endfor %} |
137 | 137 |
|
138 | 138 |
<div class="end-dot"></div> |
... | ... | |
152 | 152 |
<script src="{{ asset('js/vendor/bootstrap-datepicker.cs.min.js') }}"></script> |
153 | 153 |
<script src="{{ asset('js/vendor/leaflet.js') }}"></script> |
154 | 154 |
<script src="{{ asset('js/vendor/leaflet-heat.js') }}"></script> |
155 |
<script src="{{ asset('js/zcu-heatmap.js') }}"></script>
|
|
155 |
<script src="{{ asset('js/index.bundle.js') }}"></script>
|
|
156 | 156 |
<script> |
157 |
initDatepicker("{{ path('dates') }}"); |
|
158 |
initLocationsMenu(); |
|
159 |
initMap(); |
|
157 |
js.initDatepicker("{{ path('dates') }}");
|
|
158 |
js.initLocationsMenu();
|
|
159 |
js.initMap();
|
|
160 | 160 |
|
161 | 161 |
$(document).ready(function() { |
162 |
onDocumentReady(); |
|
163 |
checkDataSetsAvailability("{{ path('available') }}") |
|
162 |
js.onDocumentReady();
|
|
163 |
js.checkDataSetsAvailability("{{ path('available') }}")
|
|
164 | 164 |
{% if submitted %} |
165 |
loadCurrentTimeHeatmap("{{ path('opendata') }}", "{{ path('positions') }}"); |
|
165 |
js.loadCurrentTimeHeatmap("{{ path('opendata') }}", "{{ path('positions') }}");
|
|
166 | 166 |
{% endif %} |
167 |
$('#player-time').draggable({ containment: 'parent', axis: 'x', drag: function(event, ui) { dragTimeline() }, cursor: 'ew-resize' }) |
|
167 |
$('#player-time').draggable({ containment: 'parent', axis: 'x', drag: function(event, ui) { js.dragTimeline() }, cursor: 'ew-resize' })
|
|
168 | 168 |
}); |
169 | 169 |
|
170 | 170 |
$(window).resize(function() { |
171 |
initLocationsMenu(); |
|
171 |
js.initLocationsMenu();
|
|
172 | 172 |
}); |
173 | 173 |
</script> |
174 | 174 |
{% endblock %} |
Také k dispozici: Unified diff
working webpack