43
| <![CDATA[<script type="text/javascript">
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
jQuery(function($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });
</script>]]>
|
292
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
(function( $ ) {
$(function() {
$('.active > ul').toggle();
$('.active_filho').click().parent().parent().addClass('active');
$('.active > ul').show();
});
})(jQuery);
</script>]]>
|
311
| <![CDATA[<script>
// Read cookie
function getCookie(strCookie)
{
var strName = strCookie + "=";
var arrCookies = document.cookie.split(';');
for (var i = 0; i < arrCookies.length; i++) {
var strValorCookie = arrCookies[i];
while (strValorCookie.charAt(0) == ' ') {
strValorCookie = strValorCookie.substring(1, strValorCookie.length);
}
if (strValorCookie.indexOf(strName) == 0) {
return strValorCookie.substring(strName.length, strValorCookie.length);
}
}
return '';
}
// Set cookie
function setCookie(name, value, expires, path, domain, secure)
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );
/* if the expires variable is set, make the correct expires time, the current script below will set
it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24 */
path = '/';
if ( expires ) {
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
// Erase cookie
function eraseCookie(name)
{
setCookie(name, '', -1);
}
jQuery.noConflict();
(function( $ ) {
$(function() {
//Pega a temperatura
$.ajax({
url: 'http://api.weatherunlocked.com/api/current/-8.05428,-34.8813?app_id=6ec55f2f&app_key=ebefdb91fcc7ba69d7bbc624a7534ec4',
type: 'GET',
crossDomain: true,
dataType: 'text',
success: function(data) {
let jsonObject = JSON.parse(data);
$( ".weather" ).empty();
$( ".weather" ).append( jsonObject.temp_c+"° C" );
}
});
//aumenta o tamanho da fonte
$("#aumentar-fonte").click(function () {
var size = $("*").css('font-size');
size = size.replace('px', '');
size = parseInt(size) + 1;
$("*").animate({'font-size' : size + 'px'});
return false;
});
$("#diminuir-fonte").click(function () {
var size = $("*").css('font-size');
size = size.replace('px', '');
size = parseInt(size) - 1;
$("*").animate({'font-size' : size + 'px'});
return false;
});
//controle de contraste
var cookieContrast = getCookie("highContrast");
if (cookieContrast == "highContrast"){
$("body").addClass("highContrast");
}
$("a.highContrast").click(function(){
var x = getCookie("highContrast");
if (x == "highContrast") {
$("body").removeClass("highContrast");
eraseCookie("highContrast");
} else {
$("body").addClass("highContrast");
setCookie("highContrast", "highContrast");
}
return (false);
});
});
})(jQuery);
</script>]]>
|
537
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
(function( $ ) {
$(function() {
$( "#boom" ).click(function( event ) {
var category_selected = $("#category-select").val();
var campo_busca = $("#s").val();
var url = 'index.php?option=com_buscasite&busca='+campo_busca+'&catid='+category_selected;
window.location.href= url;
});
// $('#s').keypress(function(e) {
// console.log("porra");
// if(e.which == 13) {
// var category_selected = $("#category-select").val();
// var campo_busca = $(this).val();
// var url = 'index.php?option=com_buscasite&busca='+campo_busca+'&catid='+category_selected;
// window.location.href= url;
// }
// });
})(jQuery);
});
jQuery(document).ready(function(){
jQuery('#s').keypress(function(e) {
if(e.which == 13) {
var category_selected = jQuery("#category-select").val();
var campo_busca = jQuery(this).val();
var url = 'index.php?option=com_buscasite&busca='+campo_busca+'&catid='+category_selected;
window.location.href= url;
}
});
});
jQuery(document).ready(function(){
jQuery('#boom').click(function(e) {
var category_selected = jQuery("#category-select").val();
var campo_busca = jQuery("#s").val();
var url = 'index.php?option=com_buscasite&busca='+campo_busca+'&catid='+category_selected;
window.location.href= url;
});
});
</script>]]>
|
651
| <![CDATA[<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>]]>
|
661
| <![CDATA[<script src="https://apis.google.com/js/platform.js" async defer>
{lang: 'pt-BR'}
</script>]]>
|
665
| <![CDATA[<script>
window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
</script>]]>
|
752
| <![CDATA[<script type='text/javascript'>
document.getElementById('cloakd6be1085a9ebc5249ff528e84fc534d9').innerHTML = '';
var prefix = 'ma' + 'il' + 'to';
var path = 'hr' + 'ef' + '=';
var addyd6be1085a9ebc5249ff528e84fc534d9 = 'acastro' + '@';
addyd6be1085a9ebc5249ff528e84fc534d9 = addyd6be1085a9ebc5249ff528e84fc534d9 + 'irh' + '.' + 'pe' + '.' + 'gov' + '.' + 'br';
var addy_textd6be1085a9ebc5249ff528e84fc534d9 = 'acastro' + '@' + 'irh' + '.' + 'pe' + '.' + 'gov' + '.' + 'br';document.getElementById('cloakd6be1085a9ebc5249ff528e84fc534d9').innerHTML += '<a ' + path + '\'' + prefix + ':' + addyd6be1085a9ebc5249ff528e84fc534d9 + '\'>'+addy_textd6be1085a9ebc5249ff528e84fc534d9+'<\/a>';
</script>]]>
|