Revize dfcface9
Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)
website/public/js/zcu-heatmap.js | ||
---|---|---|
57 | 57 |
|
58 | 58 |
|
59 | 59 |
if (info.length > 0) { |
60 |
var popup = L.popup() |
|
60 |
var popup = L.popup({ |
|
61 |
autoPan: false |
|
62 |
}) |
|
61 | 63 |
.setLatLng([lat / i, lng / i]) |
62 | 64 |
.setContent('<div id=\'place-info\'>Umístění: ' + info[currenInfo].place + '</div>' + |
63 | 65 |
'<div id=\'number-info\'>Počet: ' + info[currenInfo].number + '</div>' + |
64 | 66 |
'<div class=\'popup-controls\'>' + |
65 |
'<button id=\'previous-info-btn\' onclick=\'previousInfo()\'><</button>' +
|
|
67 |
'<button id=\'previous-info-btn\' class=\'circle-button\' onclick=\'previousInfo()\'></button>' +
|
|
66 | 68 |
'<div id=\'count-info\'>' + (currenInfo + 1) + '/' + info.length + '</div>' + |
67 |
'<button id=\'next-info-btn\' onclick=\'nextInfo()\'>></button>' +
|
|
69 |
'<button id=\'next-info-btn\' onclick=\'nextInfo()\' class=\'circle-button next\'></button>' +
|
|
68 | 70 |
'</div>' |
69 | 71 |
) |
70 | 72 |
.openOn(mymap); |
Také k dispozici: Unified diff
Re #7942 cron done + style changes of popup