add new labels to config

This commit is contained in:
themohooks 2024-07-08 13:46:00 +03:00
parent eacb4f498e
commit 7d9ce1071f
2 changed files with 416 additions and 389 deletions

View file

@ -30,5 +30,11 @@ ngallery:
img:
proxy: true
percent: 50
photo:
upload:
premoderation: true
defaultindex: 5.0
comments:
premoderation: false

View file

@ -1,6 +1,8 @@
<?php
use \App\Services\{Auth, DB};
use \App\Models\User;
$user = new User(Auth::userid());
?>
<!DOCTYPE html>
@ -649,14 +651,31 @@ $user = new User(Auth::userid());
</td>
</tr>
<tr>
<td class="lcol">Место съёмки:</td>
<td style="padding-right:15px">
<table width="100%">
<tr>
<td style="padding:0; vertical-align:middle">
<input type="text" name="place" id="place" maxlength="255" style="width:506px" onfocus="showHint('place')" onblur="hideHint('place')" value="">
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</tr>
<tr><td colspan="2" style="height:7px"></td></tr><tr>
<tr>
<td colspan="2" style="height:7px"></td>
</tr>
<tr>
</tr></tbody><script>
</tr>
</tbody>
<script>
var map = L.map('map_canvas').setView([55.7558, 37.6176], 13);
var marker;
var geocoder;
@ -766,8 +785,13 @@ $user = new User(Auth::userid());
// Пример настройки интерактивности для меток
building.floors.forEach(function(floor) {
floor.markers.forEach(function(marker) {
var markerIcon = L.divIcon({ className: 'indoor-marker', html: marker.label });
L.marker(marker.latLng, { icon: markerIcon }).addTo(map.indoorLayer.getLevel(floor.level));
var markerIcon = L.divIcon({
className: 'indoor-marker',
html: marker.label
});
L.marker(marker.latLng, {
icon: markerIcon
}).addTo(map.indoorLayer.getLevel(floor.level));
});
});
}
@ -940,8 +964,7 @@ return xhr;
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
Notify.noty('danger', 'В посте больше 10 медиафайлов');
scrollProgressBarWidth(0);
}
else if (jsonData.errorcode == "0") {
} else if (jsonData.errorcode == "0") {
Notify.noty('success', 'Успешная публикация!');
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3" disabled>Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
//$("#r").html('<button id="uploadbtn" style="margin-right: 15px; background: none; border: none; color: aliceblue; " type="submit" name="createpost" class="mb-3 mt-3"><i style="position:relative; font-size: 25px; margin-right: 10px; color: aliceblue; top: 4px;" class="ti ti-message-share uploadbtn"></i>Опубликовать</button>');
@ -992,8 +1015,6 @@ return xhr;
});
});
</script>
</body>