87
| <![CDATA[<script type="text/javascript">
(function($) {
$(document).ready(function() {
$.fancybox.defaults.i18n.en = {
CLOSE: 'Close',
NEXT: 'Next',
PREV: 'Previous',
ERROR: 'The requested content cannot be loaded.<br/>Please try again later.',
PLAY_START: 'Start slideshow',
PLAY_STOP: 'Pause slideshow',
FULL_SCREEN: 'Full screen',
THUMBS: 'Thumbnails',
DOWNLOAD: 'Download',
SHARE: 'Share',
ZOOM: 'Zoom'
};
$.fancybox.defaults.lang = 'en';
$('a.fancybox-gallery').fancybox({
buttons: [
'slideShow',
'fullScreen',
'thumbs',
'share',
'download',
//'zoom',
'close'
],
beforeShow: function(instance, current) {
if (current.type === 'image') {
var title = current.opts.$orig.attr('title');
current.opts.caption = (title.length ? '<b class="fancyboxCounter">Image ' + (current.index + 1) + ' of ' + instance.group.length + '</b>' + ' | ' + title : '');
}
}
});
});
})(jQuery);
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
var sp_preloader = '0';
var sp_gotop = '1';
var sp_offanimation = 'default';
jQuery(function($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });
/*=== EASY GOOGLE ANALYTICS : START TRACKING CODE ===*/
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
/*=== EASY GOOGLE ANALYTICS : END TRACKING CODE ===*/
</script>]]>
|
367
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function () {
var url = 'http://www.defesacivil.rj.gov.br/';
function setCookie(c_name,value,exdays,domain)
{
if (domain) {domain = '; domain=' + domain}
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + "; path=/" + domain;
document.cookie=c_name + "=" + c_value;
}
function readCookie(name) {
var nameEQ = name + "=";
var jb = document.cookie.split(';');
for(var i=0;i < jb.length;i++) {
var c = jb[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
var $jb_cookie = jQuery('.jb.cookie');
var $jb_infoaccept = jQuery('.jb.accept');
var jbcookies = readCookie('jbcookies');
if(!(jbcookies == "yes")){
$jb_cookie.delay(1000).slideDown('fast');
$jb_infoaccept.click(function(){
setCookie("jbcookies","yes",90,"");
$jb_cookie.slideUp('slow');
jQuery('.jb.cookie-decline').fadeIn('slow', function() {});
});
}
jQuery('.jb.decline').click(function(){
setCookie("jbcookies","",0,"");
window.location.reload();
});
});
</script>]]>
|