51
| <![CDATA[<script type="text/javascript">
var contraste = 'ativar';
const url = "/zbox/contraste";
$("#pluginContrasteIsAtivo").click(function(){
let dataPost = {
contraste: contraste,
};
let xhr = $.ajax({
headers: {"Access-Control-Allow-Origin": "*"},
url: url,
method: "POST",
data: dataPost,
dataType: "json"
});
xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
xhr.setRequestHeader("Access-Control-Allow-Credentials", "true");
xhr.setRequestHeader("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
xhr.setRequestHeader("Access-Control-Allow-Headers", "Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers");
xhr.complete(function () {
location.reload();
});
});
</script>]]>
|
119
| <![CDATA[<script type="text/javascript">
$(function() {
//$('#topo-tempo').hide();
console.log('https://www.fecam.org.br/tempo.php?codPrevisao=3676');
$.ajax({
url: 'https://www.fecam.org.br/tempo.php?codPrevisao=3676',
jsonpCallback: 'jsonCallback',
contentType: "application/json",
dataType: 'jsonp',
cache: 'false',
success: function(data){
data = data['tempo'];
dc = 0; //Contador de dias;
while(dc <= 1){
prefix = "#previsao-tempo-dia-"+(dc+1);
dia = data['previsao'][dc];
$(prefix).html(dia['diaSemana']);
$(prefix+'-max').html(dia['maxima']+"C");
$(prefix+"-min").html(dia['minima']+"C");
$(prefix+"-icone img").attr("src","/styles/layouts/pm/default/images/previsao-tempo/"+dia['tempo']+".png");
$(prefix+"-previsao").html(dia['condicao']);
console.log(dia);
dc++;
}
}
});
});
</script>]]>
|
246
| <![CDATA[<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>]]>
|
266
| <![CDATA[<script type="text/javascript">
if(alterouForm == undefined)
{
var alterouForm = false;
}
function getUlErrorElement( element )
{
if( element.parent().children('.errors').html() == null)
{
element.parent().append('<ul class="errors"></ul>');
}
return element.parent().children('.errors');
}
function validaCampos_frmNormasBusca-0149464001642262881()
{
var validar = true;
var splitIni = $('#frmNormasBusca-0149464001642262881 #ini_data').val().split('/');
var splitFim = $('#frmNormasBusca-0149464001642262881 #fim_data').val().split('/');
if( splitIni.length != 3 )
{
splitIni[0] = 0;
splitIni[1] = 0;
splitIni[2] = 0;
}
if( splitFim.length != 3 )
{
splitFim[0] = 0;
splitFim[1] = 0;
splitFim[2] = 0;
}
var inicio = new Date( splitIni[2], splitIni[1], splitIni[0] );
var fim = new Date( splitFim[2], splitFim[1], splitFim[0] );
if( $('#frmNormasBusca-0149464001642262881 #ini_data').val() != "" &&
$('#frmNormasBusca-0149464001642262881 #fim_data').val() != "" )
{
if( ( inicio.getTime() - fim.getTime() ) > 0 )
{
var element = $('#frmNormasBusca-0149464001642262881 #data');
var ulErrors = getUlErrorElement(element);
ulErrors.append('<li>A data de inicio não deve ser maior que a data final.</li>');
validar = false;
}
}
return validar;
}
jQuery(function($)
{
$(document).ready(function(){
$('#frmNormasBusca-0149464001642262881 :input').each(function(){
var valor = "";
if( $(this).attr('type') == 'text' ||
$(this).attr('type') == 'select' )
{
$(this).bind('keypress', function(e) {
if(e.keyCode==13){
return false;
}
});
}
$(this).focus(function(){
valor = $(this).val();
});
$(this).blur(function(){
if( valor != $(this).val() )
{
alterouForm = true;
}
});
});
});
$('#frmNormasBusca-0149464001642262881').submit(function()
{
$('.erroAba').removeClass('erroAba');
$('.errors').remove();
var validar = validaCampos_frmNormasBusca-0149464001642262881();
if(validar == false)
{
$("#msgErroSalvar").fadeIn('slow');
// $("#msgErroSalvar").animate(
// {top: 300+$(document).scrollTop()+"px"},
// {duration:0,queue:false}
// );
// $(window).scroll(function()
// {
// $("#msgErroSalvar").animate(
// {top: 300+$(document).scrollTop()+"px"},
// {duration:0,queue:false}
// );
// });
setTimeout( function(){ $('#msgErroSalvar').fadeOut('normal'); }, 2000);
}
else
{
alterouForm = false;
}
return validar;
});
$('#frmNormasBusca-0149464001642262881 .required').append(' ;*');
$(window).bind('beforeunload', function(evt){
if(alterouForm == true )
{
var target = null
if(evt.target.activeElement.nodeName == 'BUTTON')
{
/* RegExp created via www.regexp.com.br */
var regExp = new RegExp('"(.*)"');
var myString = evt.target.activeElement.attributes.onclick.value;
myString = myString.match(regExp);
target = myString[1];
}
else if(evt.target.activeElement.nodeName == 'A')
{
target = evt.target.activeElement.href;
}
else if(evt.target.activeElement.nodeName == 'BODY')
{
target = '';
}
if(target != null)
{
$('#_urlRedirect').val(target);
//$('#frmNormasBusca-0149464001642262881').submit();
return null;
}
else{
return 'Você perderá todos os dados que não foram salvos.';
}
}
});
if($('#frmNormasBusca-0149464001642262881 .errors').size() > 0){
$("#msgErroSalvar").fadeIn('slow');
setTimeout( function(){ $('#msgErroSalvar').fadeOut('normal'); }, 4000);
}
});
</script>]]>
|
436
| <![CDATA[<script>
$('#frmNormasBusca-0149464001642262881').submit(function(evt){
$(this).find('[type="submit"]').each(function(){
if (validaCampos_frmNormasBusca-0149464001642262881() &&
!$(this).hasClass('not-disabled') ) {
$(this).attr('disabled', 'disabled').addClass("salvando");
}
});
});
</script>]]>
|
474
| <![CDATA[<script type="text/javascript">
jQuery(function($)
{
$('#ini_data').datepicker( { showOn: "both",
buttonImage: "/images/calendar.png",
buttonImageOnly: true,
numberOfMonths: 1,
dateFormat: 'dd/mm/yy',
beforeShow: function()
{
var selectedDate = $('#fim_data').datepicker( "getDate" );
if( selectedDate != null )
{
$(this).datepicker( "option", "maxDate", selectedDate );
}
},
} );
$('#ini_data').mask('99/99/9999');
});
</script>]]>
|
499
| <![CDATA[<script type="text/javascript">
jQuery(function($)
{
$('#fim_data').datepicker( { showOn: "both",
buttonImage: "/images/calendar.png",
buttonImageOnly: true,
numberOfMonths: 1,
dateFormat: 'dd/mm/yy',
beforeShow: function()
{
var selectedDate = $('#ini_data').datepicker( "getDate" );
if( selectedDate != null )
{
$(this).datepicker( "option", "minDate", selectedDate );
}
},
} );
$('#fim_data').mask('99/99/9999');
});
</script>]]>
|
663
| <![CDATA[<script type="text/javascript">
jQuery(function ($) {
var url = '/legislacao/index/lista-completa/codMapaItem/14109/pagina/%pagina%';
$('.botaoIrPagina').click(function () {
var paginaRedirect = parseInt($(this).parent().children('.pagina').val());
if (paginaRedirect <= 0)
paginaRedirect = 1;
if (paginaRedirect > 391 )
paginaRedirect = 391;
if (paginaRedirect > 0 && paginaRedirect <= 391) {
var urlRedirect = url.replace('%pagina%', paginaRedirect);
window.location = urlRedirect;
}
else {
alert('Página inválida!');
}
});
$('.pagina').keypress(function (e) {
if (e.which == 13) {
$(this).parent().children('.botaoIrPagina').click();
}
});
});
</script>]]>
|
726
| <![CDATA[<script>
var menu = document.getElementById("ordenacao");
menu.onchange = function() {
var chosenoption = this.options[this.selectedIndex];
if (chosenoption.value != "none") {
window.open(chosenoption.value, "_self", "");
}
}
</script>]]>
|
854
| <![CDATA[<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20438101-36']);
_gaq.push(['_trackPageview'], '/legislacao/index/lista-completa/codMapaItem/14109/pagina/298');
(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);
})();
jQuery(document).ajaxComplete(function(e, xhr, settings){
_gaq.push(['_trackPageview', settings.url]);
});
</script>]]>
|