Revize 90d3db28
Přidáno uživatelem Tomáš Ballák před téměř 5 roky(ů)
website/public/css/style.css | ||
---|---|---|
49 | 49 |
outline: none; |
50 | 50 |
border-radius: 50px; |
51 | 51 |
height: 40px; |
52 |
margin-top: -2px; |
|
53 | 52 |
color: #0048a9; |
54 | 53 |
background: rgba(255,255,255,1); |
55 | 54 |
-webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.17); |
... | ... | |
60 | 59 |
font-size: 11pt; |
61 | 60 |
padding-left: 20px; |
62 | 61 |
padding-right: 20px; |
62 |
padding-top: 3px; |
|
63 |
transition: all 0.2s ease-out; |
|
63 | 64 |
} |
64 | 65 |
header .btn-secondary:hover{ |
65 | 66 |
background: rgba(255,255,255,1) !important; |
66 | 67 |
color: #0048a9; |
68 |
-webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.22); |
|
69 |
-moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.22); |
|
70 |
box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.22); |
|
71 |
} |
|
72 |
header .btn-secondary:active, header .btn-secondary:focus{ |
|
73 |
background: rgba(240,240,240,1) !important; |
|
74 |
color: #0048a9 !important; |
|
67 | 75 |
} |
68 | 76 |
.nav-item input:focus{ |
69 | 77 |
color: black; |
... | ... | |
79 | 87 |
background: #0048a9; |
80 | 88 |
color: white; |
81 | 89 |
} |
90 |
.nav-item select:hover option { |
|
91 |
background: #0048a9; |
|
92 |
} |
|
82 | 93 |
.nav-item select:hover { |
83 | 94 |
cursor: pointer; |
95 |
} |
|
96 |
@media(max-width:991.98px){ |
|
97 |
header .btn-secondary{ |
|
98 |
border-radius: 5px; |
|
99 |
margin-left: 0px; |
|
100 |
margin-top: 10px; |
|
101 |
margin-bottom: -10px; |
|
102 |
} |
|
84 | 103 |
} |
website/public/js/zcu-heatmap.js | ||
---|---|---|
33 | 33 |
const genPopUp = (place, number, sum, currentPos, maxPos) => { |
34 | 34 |
const header = `<strong>Zařízení a počet:</strong><div id="place-info">${place}</div>` |
35 | 35 |
const currentNum = `<span id="digit-info">${number}</span>` |
36 |
const sumNum = `<span id="total-info" style="font-size: large">${sum ? '/' + sum : ''}</span>` |
|
36 |
// eslint-disable-next-line eqeqeq |
|
37 |
const sumNum = `<span id="total-info" style="font-size: large">${(sum && (sum != number)) ? '/' + sum : ''}</span>` |
|
37 | 38 |
const digitInfo = `<div id="number-info">${currentNum}${sumNum}</div>` |
38 | 39 |
let previousButton = '<button id="previous-info-btn" class="circle-button" onclick="previousInfo()"></button>' |
39 | 40 |
let nextButton = '<button id="next-info-btn" onclick="nextInfo()" class="circle-button next"></button>' |
... | ... | |
52 | 53 |
} |
53 | 54 |
// eslint-disable-next-line no-unused-vars |
54 | 55 |
function initMap () { |
55 |
|
|
56 |
startX = localStorage.getItem('lat') || startX; |
|
57 |
startY = localStorage.getItem('lng') || startY; |
|
58 |
startZoom = localStorage.getItem('zoom') || startZoom; |
|
56 |
startX = localStorage.getItem('lat') || startX |
|
57 |
startY = localStorage.getItem('lng') || startY |
|
58 |
startZoom = localStorage.getItem('zoom') || startZoom |
|
59 | 59 |
|
60 | 60 |
mymap = L.map('heatmap').setView([startX, startY], startZoom) |
61 | 61 |
|
... | ... | |
131 | 131 |
|
132 | 132 |
// eslint-disable-next-line no-unused-vars |
133 | 133 |
function setMapView (latitude, longitude, zoom) { |
134 |
localStorage.setItem('lat', latitude);
|
|
135 |
localStorage.setItem('lng', longitude);
|
|
136 |
localStorage.setItem('zoom', zoom);
|
|
134 |
localStorage.setItem('lat', latitude) |
|
135 |
localStorage.setItem('lng', longitude) |
|
136 |
localStorage.setItem('zoom', zoom) |
|
137 | 137 |
mymap.setView([latitude, longitude], zoom) |
138 | 138 |
} |
139 | 139 |
|
website/templates/index.html.twig | ||
---|---|---|
147 | 147 |
{% endblock %} |
148 | 148 |
{% block javascripts %} |
149 | 149 |
|
150 |
<script src="{{ asset('js/swiper.min.js') }}"></script> |
|
150 |
<script src="{{ asset('js/vendor/swiper.min.js') }}"></script>
|
|
151 | 151 |
<script> |
152 | 152 |
const swiper = new Swiper('.swiper-container', { |
153 | 153 |
calculateHeight: true, |
... | ... | |
166 | 166 |
} |
167 | 167 |
}); |
168 | 168 |
</script> |
169 |
<script src="{{ asset('js/jquery-3.4.1.min.js') }}"></script> |
|
170 |
<script src="{{ asset('js/bootstrap.min.js') }}"></script> |
|
169 |
<script src="{{ asset('js/vendor/jquery-3.4.1.min.js') }}"></script>
|
|
170 |
<script src="{{ asset('js/vendor/bootstrap.min.js') }}"></script>
|
|
171 | 171 |
|
172 | 172 |
{% endblock %} |
Také k dispozici: Unified diff
fix of popup,js path, button alignment