Fix contact form
This commit is contained in:
@@ -645,56 +645,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 +868,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 +881,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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user