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-0362568001613764379()
{
var validar = true;
var splitIni = $('#frmNormasBusca-0362568001613764379 #ini_data').val().split('/');
var splitFim = $('#frmNormasBusca-0362568001613764379 #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-0362568001613764379 #ini_data').val() != "" &&
$('#frmNormasBusca-0362568001613764379 #fim_data').val() != "" )
{
if( ( inicio.getTime() - fim.getTime() ) > 0 )
{
var element = $('#frmNormasBusca-0362568001613764379 #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-0362568001613764379 :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-0362568001613764379').submit(function()
{
$('.erroAba').removeClass('erroAba');
$('.errors').remove();
var validar = validaCampos_frmNormasBusca-0362568001613764379();
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-0362568001613764379 .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-0362568001613764379').submit();
return null;
}
else{
return 'Você perderá todos os dados que não foram salvos.';
}
}
});
if($('#frmNormasBusca-0362568001613764379 .errors').size() > 0){
$("#msgErroSalvar").fadeIn('slow');
setTimeout( function(){ $('#msgErroSalvar').fadeOut('normal'); }, 4000);
}
});
</script>]]>
|
453
| <![CDATA[<script>
$('#frmNormasBusca-0362568001613764379').submit(function(evt){
$(this).find('[type="submit"]').each(function(){
if (validaCampos_frmNormasBusca-0362568001613764379() &&
!$(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>]]>
|
689
| <![CDATA[<script type="text/javascript">
jQuery(function ($) {
var url = '/legislacao/index/lista-completa/codMapaItem/11730/tipo/2/pagina/%pagina%';
$('.botaoIrPagina').click(function () {
var paginaRedirect = parseInt($(this).parent().children('.pagina').val());
if (paginaRedirect <= 0)
paginaRedirect = 1;
if (paginaRedirect > 36 )
paginaRedirect = 36;
if (paginaRedirect > 0 && paginaRedirect <= 36) {
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>]]>
|
752
| <![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>]]>
|
900
| <![CDATA[<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20438656-47']);
_gaq.push(['_trackPageview'], '/legislacao/index/lista-completa/codMapaItem/11730/tipo/2/pagina/3');
(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>]]>
|