$(document).ready(funkce);
$(window).resize(funkce);
function funkce()
{
$('#povolit_souhlas').click(function(){
$.get('https://prf.osu.eu/cookies/cookies-2022-souhlas-ano.php?verze=eu',
{ odkud: "52612918" },
function(d) {
$('#souhlas').hide();
$('.nastaveni').show();
$('.souhlastext').html('You are utilizing the web fullyThe user gave consent to store cookie data and use analytical advertising tools. By refusing, only essential cookies will be loaded.');
$('#povolit_souhlas').hide();
$('#odmitnout_souhlas').show();
$.get("https://prf.osu.eu/cookies/cookies-skripty-head.php?95169539&verze=eu&stredisko=31990", function(data){
$('head').append(data);
});
$.get("https://prf.osu.eu/cookies/cookies-skripty-body.php?21391065&verze=eu&stredisko=31990", function(data){
$(document.body).prepend(data);
});
//setTimeout(function() {
//location.reload();
//},100);
});
if ($(".zobrazit_tlacitko_souhlas_podminky").length ) {
$('.zobrazit_tlacitko_souhlas_podminky').show();
}
//var b_replaced = $("body").html().replaceAll('deaktivace-','');
//$("body").html(b_replaced);
$('[deaktivace-src]').each(function() {
var $t = $(this);
$t.attr({
src: $t.attr('deaktivace-src')
})
.removeAttr('deaktivace-src');
});
$("#page").css("margin-top",0);
$('.cookies_social').hide();
$('.cookies_ostatni').hide();
$('.cookies_mapy').hide();
$('iframe').removeClass("class_deaktivace");
$('script').removeClass("class_deaktivace");
setTimeout(function() {
if ($("#mapa").length )
{
location.reload();
}
},100);
});
$('#odmitnout_souhlas').click(function(){
$.get('https://prf.osu.eu/cookies/cookies-2022-souhlas-ne.php?verze=eu',
{ odkud: "31867990" },
function(d) {
$('#souhlas').hide();
$('.nastaveni').show();
$('#souhlastext').html('Utilize the web fullyThanks to cookies, browsing the web will be easier and more comfortable. To process some of them, we need your consent which you can give by clicking the “Accept all” button. More information about cookies and their settings. By refusing, only essential cookies will be loaded.');
$('#povolit_souhlas').show();
$('#odmitnout_souhlas').show();
document.cookie = 'my_cookie=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.google.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.google.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.facebook.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.facebook.net; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.seznam.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.doubleclick.net; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.youtube.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.youtube-nocookie.com; expires=' + new Date(0).toUTCString();
document.cookie = '_ga_H59W12ZKVK=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
$("#page").css("margin-top",0);
//location.href = location.origin + location.pathname + '?odvolan_souhlas_lista';
location.href = location.origin + location.pathname + window.location.search;
});
});
$('#odvolat_souhlas_ok').click(function(){
$.get('https://prf.osu.eu/cookies/cookies-2022-souhlas-odvolat_ok.php?verze=eu',
{ odkud: "11438915" },
function(d) {
$('#souhlas').hide();
$('.souhlastext').html('Utilize the web fullyThanks to cookies, browsing the web will be easier and more comfortable. To process some of them, we need your consent which you can give by clicking the “Accept all” button. More information about cookies and their settings. By refusing, only essential cookies will be loaded.');
$('#povolit_souhlas').show();
$('#odmitnout_souhlas').show();
window.location = window.location.href.split("?")[0];
document.cookie = 'my_cookie=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.google.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.google.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.facebook.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.facebook.net; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.seznam.cz; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.doubleclick.net; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.youtube.com; expires=' + new Date(0).toUTCString();
document.cookie = 'my_cookie=; path=/; domain=.youtube-nocookie.com; expires=' + new Date(0).toUTCString();
document.cookie = '_ga_H59W12ZKVK=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
document.cookie = '_fbp=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
document.cookie = '_gcl_au=; path=/; domain=.osu.cz; expires=' + new Date(0).toUTCString();
$("#page").css("margin-top",0);
//location.href = location.origin + location.pathname + '?odvolan_souhlas_lista';
location.href = location.origin + location.pathname + window.location.search;
});
});
$('#nastaveni, .cookies_ostatni, .cookies_social, .cookies_mapy').click(function(){
$('#souhlas').show();
$('.nastaveni').hide();
$("#page").css("margin-top",$("#souhlas").height());
});
if($("#souhlas").is(":visible"))
{
$("#page").css("margin-top",$("#souhlas").height());
}
else
{
$("#page").css("margin-top",0);
}
}