51
| <![CDATA[<script type="text/javascript">
var contraste = 'ativar';
const __URL__ = "//formosa.sc.gov.br/";
const url = __URL__ + "zbox/contraste/index/";
$("#pluginContrasteIsAtivo").click(function(){
let dataPost = {
contraste: contraste,
};
let xhr = $.ajax({
url: url,
method: "POST",
data: dataPost,
dataType: "json"
});
xhr.complete(function () {
location.reload();
});
});
</script>]]>
|
115
| <![CDATA[<script type="text/javascript">
$(function() {
//$('#topo-tempo').hide();
console.log('https://www.fecam.org.br/tempo.php?codPrevisao=2040');
$.ajax({
url: 'https://www.fecam.org.br/tempo.php?codPrevisao=2040',
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","https://cdn.fecam.net.br/styles/layouts/pm/default/images/previsao-tempo/"+dia['tempo']+".png");
$(prefix+"-previsao").html(dia['condicao']);
console.log(dia);
dc++;
}
}
});
});
</script>]]>
|
263
| <![CDATA[<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>]]>
|
283
| <![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-0011224001613753112()
{
var validar = true;
var splitIni = $('#frmNormasBusca-0011224001613753112 #ini_data').val().split('/');
var splitFim = $('#frmNormasBusca-0011224001613753112 #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-0011224001613753112 #ini_data').val() != "" &&
$('#frmNormasBusca-0011224001613753112 #fim_data').val() != "" )
{
if( ( inicio.getTime() - fim.getTime() ) > 0 )
{
var element = $('#frmNormasBusca-0011224001613753112 #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-0011224001613753112 :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-0011224001613753112').submit(function()
{
$('.erroAba').removeClass('erroAba');
$('.errors').remove();
var validar = validaCampos_frmNormasBusca-0011224001613753112();
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-0011224001613753112 .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-0011224001613753112').submit();
return null;
}
else{
return 'Você perderá todos os dados que não foram salvos.';
}
}
});
if($('#frmNormasBusca-0011224001613753112 .errors').size() > 0){
$("#msgErroSalvar").fadeIn('slow');
setTimeout( function(){ $('#msgErroSalvar').fadeOut('normal'); }, 4000);
}
});
</script>]]>
|
453
| <![CDATA[<script>
$('#frmNormasBusca-0011224001613753112').submit(function(evt){
$(this).find('[type="submit"]').each(function(){
if (validaCampos_frmNormasBusca-0011224001613753112() &&
!$(this).hasClass('not-disabled') ) {
$(this).attr('disabled', 'disabled').addClass("salvando");
}
});
});
</script>]]>
|
491
| <![CDATA[<script type="text/javascript">
jQuery(function($)
{
$('#ini_data').datepicker( { showOn: "both",
buttonImage: "https://cdn.fecam.net.br/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>]]>
|
516
| <![CDATA[<script type="text/javascript">
jQuery(function($)
{
$('#fim_data').datepicker( { showOn: "both",
buttonImage: "https://cdn.fecam.net.br/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>]]>
|
792
| <![CDATA[<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20438656-47']);
_gaq.push(['_trackPageview'], '/legislacao/index/index/codMapaItem/11730');
(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>]]>
|