250
| <![CDATA[<script type="text/javascript">
$(function(){
$('a[rel=group]').fancybox();
$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded', social_tools:'<a target="_blank" download href="#" class="download_image left btn btn-xs btn-default"><span class="glyphicon glyphicon-download-alt"></span> Download</a>'});
$('body').on('click', '.download_image', function() {
var foto_download = $('#fullResImage').attr('src');
$(this).attr('href', foto_download);
});
$('div.thumbnail').on('click', 'a', function(){
var base_url = "https://www.camarairupi.es.gov.br/";
var id = $(this).attr('id');
if (id.length) {
$.ajax({
url: base_url +'galeria/contador_acessos/'+id,
type: "post",
data: {'id':id}
});
}
});
});
</script>]]>
|
536
| <![CDATA[<script>
function cookies(functions) {
const clientName = 'camarairupi';
const container = document.querySelector('.cookies-container');
const save = document.querySelector('.cookies-save');
if (!container || !save) return null;
const localPref = JSON.parse(window.localStorage.getItem('cookies-pref' + clientName));
if (localPref) activateFunctions(localPref);
function getFormPref() {
return [...document.querySelectorAll('[data-function]')]
.filter((el) => el.checked)
.map((el) => el.getAttribute('data-function'));
}
function activateFunctions(pref) {
pref.forEach((f) => functions[f]());
container.style.display = 'none';
window.localStorage.setItem('cookies-pref' + clientName, JSON.stringify(pref));
}
function handleSave() {
const pref = getFormPref();
activateFunctions(pref);
}
save.addEventListener('click', handleSave);
}
function analytics() {
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-139795666-1');
console.log('Função anali..');
}
function simplecookie() {
console.log('Política de Privacidade Autorizada');
}
cookies({
analytics, });
</script>]]>
|