ACC SHELL
function googleMaps() {
var point = new google.maps.MarkerImage("http://www.komunalpark.cz/wp-content/themes/web_komunalpark/img//pointer.png", new google.maps.Size(35, 50), new google.maps.Point(0,0), new google.maps.Point(30, 37));
var geocoder;
var map;
var loc = $("#map-box").html();
var position = new google.maps.LatLng(49.207311,16.582091);
var myOptions = {
zoom: 15,
draggable: false,
panControl: false,
zoomControl: true,
mapTypeControl: false,
scaleControl: false,
streetViewControl: false,
overviewMapControl: false,
scrollwheel: false,
center: position,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map-box'), myOptions);
var marker = new google.maps.Marker({
map: map,
icon: point,
position: position
});
};
function galleryLightbox() {
$(".gallery-link").magnificPopup({
type: 'image',
gallery:{
enabled:true
}
});
$('.gallery').each(function() { // the containers for all your galleries
$(this).magnificPopup({
delegate: 'a', // the selector for gallery item
type: 'image',
gallery: {
enabled:true
}
});
});
}
function showMassage(){
$(".massage-box__name").click(function(){
$(".massage-box__content").removeClass("show");
var parentBox = $(this).parent();
parentBox.find(".massage-box__content").addClass("show");
//$(this).find(".fa-chevron-right").removeClass("fa-chevron-right").addClass("fa-chevron-down");
});
}
//popup window
function popUpWindow() {
$('.popup-window').popup({
background: true,
transition: 'all 0.3s'
});
}
function sliderHomepage(){
$('.my-slider').slick({
autoplay: true,
dots: false,
infinite: true,
speed: 1000,
fade: true,
slide: 'div',
cssEase: 'linear',
centerMode: true,
arrows: true,
nextArrow: ".slider-arrow-right",
prevArrow: ".slider-arrow-left",
autoplaySpeed: 8000
});
}
$(document).ready(function(){
//initial homepage slider
sliderHomepage();
//initial gallery lightbox
galleryLightbox();
//initial google maps
googleMaps();
});
$(window).resize(function(){
});
ACC SHELL 2018