This commit is contained in:
2026-03-28 12:14:05 +01:00
parent 7f4827eae8
commit f8af79f232
13 changed files with 1734 additions and 58 deletions

View File

@@ -202,6 +202,12 @@
</div>
</div>
<div class="c-col c-col-2">
<?php if (isset($_GET['form_sent']) && $_GET['form_sent'] == '1') : ?>
<div class="contact-success-message" style="position: relative; z-index: 2; background: #1e2832; text-align: center; padding: 20px; border-radius: 15px; margin-bottom: 20px;">
<p style="font-size: 20px; font-weight: 300; margin-bottom: 8px; color: #fff !important;">&#10003; Dziękujemy za wiadomość!</p>
<p style="font-size: 14px; font-weight: 300; margin-bottom: 0; color: rgba(255,255,255,0.8) !important;">Twoje zgłoszenie zostało wysłane. Skontaktujemy się z Tobą najszybciej jak to możliwe.</p>
</div>
<?php endif; ?>
<section class="box-nav">
<div class="box-nav-title">
<h3>Wybierz, kim jesteś:</h3>
@@ -645,56 +651,17 @@
<link class="footer" href="/plugins/fileuploader/jquery.fileuploader.min.css" rel="stylesheet" type="text/css">
<link class="footer" href="/plugins/fileuploader/font/font-fileuploader.css" rel="stylesheet" type="text/css">
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo $google_map_api; ?>&callback=initMap" defer></script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo $google_map_api; ?>" defer></script>
<script class="footer" type="text/javascript" src="/plugins/fileuploader/jquery.fileuploader.min.js"></script>
<script class="footer" type="text/javascript">
// Initialize Google Maps API
function initMap() {
// This function is called when Google Maps API is loaded
console.log('Google Maps API loaded');
const mapOptions = {
zoom: 6.62,
center: { lat: 52.068, lng: 19.479 },
mapTypeControl: false,
styles: getMapStyles() // Pobieranie stylów z osobnej funkcji
};
const bigMap = new google.maps.Map(
document.getElementById("big-map"),
{
...mapOptions,
center: {lat: 50.0411, lng: 21.9991},
zoom: 11.2,
}
);
}
/**
* Style mapy (Greyscale)
*/
function getMapStyles() {
return [{"featureType":"all","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"administrative","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"landscape","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"on"},{"saturation":"-100"},{"gamma":"1"}]},{"featureType":"poi","elementType":"all","stylers":[{"saturation":"-100"},{"visibility":"simplified"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"saturation":"-100"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"poi","elementType":"labels.text.fill","stylers":[{"saturation":"-100"},{"weight":"6.61"},{"lightness":"0"},{"gamma":"1.5"}]},{"featureType":"poi","elementType":"labels.icon","stylers":[{"saturation":"-100"},{"gamma":"1.5"},{"weight":"0.01"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"saturation":"-100"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"transit","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"transit","elementType":"labels.text","stylers":[{"saturation":"-100"}]},{"featureType":"transit","elementType":"labels.icon","stylers":[{"saturation":"-100"}]},{"featureType":"water","elementType":"all","stylers":[{"saturation":"-100"}]}];
}
$(document).ready(function() {
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
/**
* More info under map
*/
$('body').on('click', '.box-6 .box-info .box-info-right', function(e){
e.preventDefault()
$(this).toggleClass('active')
$('.box-6 .c-row-2').slideToggle()
$('.box-6 .c-row-1').toggleClass('active')
})
/**
* File uploader
*/
@@ -907,18 +874,6 @@
$select.trigger('change');
}
// Klik w województwo na mapie (SVG)
$('body').on('click', '#interactive-map .mapsvg-region', function(e) {
e.preventDefault();
const mapId = this.id; // np. "PL-PK"
const voivodeshipId = voivodeshipByMapId[mapId];
if (!voivodeshipId) return;
setVoivodeshipSelectById(voivodeshipId);
});
// Domyślnie: podkarpackie (id=9) — tylko jeśli select istnieje
if ($('#voivodeship').length) {
setVoivodeshipSelectById(9);
@@ -932,8 +887,6 @@
});
$('body').on('click', '.tabs-content', function(e) {
e.preventDefault();
if ($(this).attr('data-active') === 'false') {
const $el = $('.box-nav .tabs-nav .tabs-nav-item p');