$(document).ready(function(){
$("#cookiesuhlas").click(function(){
$.ajax({
type: 'POST',
url: 'moduly/cookies/cookies.php',
success: function(data) {
$('#cookies').css('display','none');
}
});
});
});
$(document).ready(function(){
$('#nav').slicknav({
allowParentLinks:"true"
});
});
$(document).ready(function() {
var s = $("#sticker");
var ss = $(".slicknav_menu");
var pos = s.position();
$(window).scroll(function() {
var windowpos = $(window).scrollTop();
if (windowpos >= pos.top+350) {
s.addClass("stick");
ss.addClass("stickmenu");
document.getElementById("stickerposun").style.display = "block";
s.removeClass("stick2");
} else {
s.removeClass("stick");
ss.removeClass("stickmenu");
document.getElementById("stickerposun").style.display = "none";
s.addClass("stick2");
}
});
});
$(function(){
$('#mapimage').mapster(
{
fillColor: 'f74e2f',
clickNavigate: true,
stroke: false,
strokeWidth: 0,
scaleMap: true,
fillOpacity: 1, showToolTip: true,
onMouseover: function (e) {
$(this).mapster('set', false).mapster('set', true);
},
onMouseout: function (e) {
$(this).mapster('set', false);
},
mapKey: 'name',
areas: [
{ key: "garaz9",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz22",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz23",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz24",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz25",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz26",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz27",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz28",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz29",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz30",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz31",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz10",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz32",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz33",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz34",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz35",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz36",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz37",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz38",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz39",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz40",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz41",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz15",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz42",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz43",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz44",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz45",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz46",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz47",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz48",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz49",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz50",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz51",
staticState: true,
toolTip: "
Rezervované ",
fillColor: 'faad35',
},
{ key: "garaz16",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz52",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz53",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz54",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz55",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz56",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz57",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz58",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz59",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz17",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz18",
staticState: true,
toolTip: "
Predané ",
fillColor: 'f74e2f',
},
{ key: "garaz19",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz20",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz21",
staticState: true,fillColor: 'aceedd',
},
]
});
});
$(function(){
$('#mapimage2').mapster(
{
fillColor: 'f74e2f',
clickNavigate: true,
stroke: false,
strokeWidth: 0,
scaleMap: true,
fillOpacity: 1, showToolTip: true,
onMouseover: function (e) {
$(this).mapster('set', false).mapster('set', true);
},
onMouseout: function (e) {
$(this).mapster('set', false);
},
mapKey: 'name',
areas: [
{ key: "garaz120",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz129",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz130",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz131",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz132",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz133",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz134",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz135",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz136",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz137",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz138",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz121",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "garaz139",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "garaz122",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz123",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz124",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "garaz125",
staticState: true,fillColor: 'aceedd',
},
{ key: "garaz126",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "garaz127",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "garaz128",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
]
});
});
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.back-to-top').fadeIn(duration);
} else {
jQuery('.back-to-top').fadeOut(duration);
}
});
jQuery('.back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});