<script type="text/javascript" src="{{ asset('js/jquery.ihavecookies.js') }}?v={{ random() }}"></script>
<script type="text/javascript">
var options = {
title: '🍪 I mi koristimo kolačiće 😎',
message: 'Koristimo kolačiće u svrhu pružanja boljeg korisničkog iskustva na stranici. Ukoliko nastavite s pregledavanjem ove stranice pretpostavit ćemo da se slažete s tim. Pročitajte više na sljedećem linku:',
delay: 600,
expires: 1,
link: '{{ path('web_info', {'slug': 'pravila-o-kolacicima'}) }}',
onAccept: function(){
var myPreferences = $.fn.ihavecookies.cookie();
console.log('Yay! The following preferences were saved...');
console.log(myPreferences);
},
uncheckBoxes: true,
acceptBtnLabel: 'Prihvati',
moreInfoLabel: 'Više o kolačićima',
cookieTypesTitle: 'Odaberite kolačiće koje želite prihvatiti',
fixedCookieTypeLabel: 'Nužni',
fixedCookieTypeDesc: 'These are essential for the website to work correctly.'
}
$(document).ready(function() {
$('body').ihavecookies(options);
if ($.fn.ihavecookies.preference('marketing') === true) {
console.log('This should run because marketing is accepted.');
}
$('#ihavecookiesBtn').on('click', function(){
$('body').ihavecookies(options, 'reinit');
});
});
</script>