#NewsPA – Scuola e mafia – Domani intitolazione a Giuseppe Di Matteo di un plesso scolastico

(AGENPARL) – Palermo domenica 16 settembre 2018

‘).appendTo(‘body’);

}

$(‘.cb-enable’).click(function() {

//consenso globale
$.cookie(“consent”, 1, {path: “/”, domain: “www.comune.palermo.it”, expires:365});
//scripts da integrare nei cookies
//google analytics
$.cookie(“pa_ga”, 1, {path: “/”, domain: “www.comune.palermo.it”, expires:365});
//search engine
$.cookie(“pa_gse”, 1, {path: “/”, domain: “www.comune.palermo.it”, expires:365});
//addtihs
$.cookie(“pa_addthis”, 1, {path: “/”, domain: “www.comune.palermo.it”, expires:365});

(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-35705714-1’, ‘comune.palermo.it’);
ga(‘send’, ‘pageview’);

$.ajax({
method: “POST”,
url: “includes/update_cookies.php”,
data: { ipadd: “46.254.39.25”, sid: “sg1l6l9dds82vud2rof8lumsn7”, cons: “1” }
}).done(function(data) {
console.log(‘Consenso inviato’);
console.debug(‘cookie:’+$.cookie(“consent”));
$(“#cookie-bar”).hide();
});

$.getScript(“//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50e5de6a0128bb3b”, function(){ });

(function() {
var cx = ‘004601980036908349058:qfba1ybb28m’;
var gcse = document.createElement(‘script’); gcse.type = ‘text/javascript’; gcse.async = true;
gcse.src = (document.location.protocol == ‘https:’ ? ‘https:’ : ‘http:’) +
‘//www.google.it/cse/cse.js?cx=’ + cx;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(gcse, s);
})();

});

$(‘.cb-disable’).click(function() {

$.cookie(“consent”, 0, {path: “/”, domain: “www.comune.palermo.it”, expires:365});

$.ajax({
method: “POST”,
url: “includes/update_cookies.php”,
data: { ipadd: “46.254.39.25”, sid: “sg1l6l9dds82vud2rof8lumsn7”, cons: “0” }
}).done(function(data) {
console.log(‘Diniego inviato’);
console.debug(‘cookie:’+$.cookie(“consent”));
$(“#cookie-bar”).hide();
});

});
$(“#m-subsel”).click(function(){
$(“.sub”).slideToggle(“700”);
return false;
//$(this).toggleClass(“active”);
});

////////////////////////////////////////////////////////////////////////////////////////////

$(“.hdrimg”).hover(
function() { this.src = this.src.replace(“_off”, “_on”);
},
function() { this.src = this.src.replace(“_on”, “_off”);
});

$(‘#m-menu’).slicknav({
prependTo:’#m-navbar’
});

$(‘.print’).click(function() {

var url=’scripts/do_pdf.php?id=’+19544;
location.href = url;
});

});