62
| <![CDATA[<script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start' : new Date().getTime(),
event : 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-PMBQH65');
</script>]]>
|
99
| <![CDATA[<script type="text/javascript">
//<![CDATA[
Sys.Application.setServerId("smaMasterPrincipal", "ctl00$smaMasterPrincipal");
Sys.Application._enableHistoryInScriptManager();
//]]>
</script>]]>
|
439
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|
447
| <![CDATA[<script>
function AtribuirMascaras() {
j("#cphMasterPrincipal_txtDataInicial").mask("99/99/9999");
j("#cphMasterPrincipal_txtDataFinal").mask("99/99/9999");
j("#cphMasterPrincipal_txtNumeroEmpenho").mask("9?9999999");
}
function validarFiltro(valor, opcoes) {
if (valor != "" && valor != "Todos") {
opcoes.toArray().forEach(function (opt, i) {
if (opt.text != "Todos" && opt.text.indexOf(".") != -1) {
var filtro = opt.text.substring(0, valor.length);
if (filtro != valor)
opt.style.display = "none";
else
opt.style.display = "";
}
});
}
}
function Categoria_OnChange() {
var valorSelecionado = j("[id*=ddlCategoria] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlNatureza] option");
j("[id*=ddlNatureza]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlModalidade] option");
j("[id*=ddlModalidade]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlElemento] option");
j("[id*=ddlElemento]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlSubElemento] option");
j("[id*=ddlSubElemento]").val("");
validarFiltro(valorSelecionado, list);
}
function Natureza_OnChange() {
var valorSelecionado = j("[id*=ddlNatureza] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlModalidade] option");
j("[id*=ddlModalidade]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlElemento] option");
j("[id*=ddlElemento]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlSubElemento] option");
j("[id*=ddlSubElemento]").val("");
validarFiltro(valorSelecionado, list);
}
function Modalidade_OnChange() {
var valorSelecionado = j("[id*=ddlModalidade] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlElemento] option");
j("[id*=ddlElemento]").val("");
validarFiltro(valorSelecionado, list);
list = j("[id*=ddlSubElemento] option");
j("[id*=ddlSubElemento]").val("");
validarFiltro(valorSelecionado, list);
}
function Elemento_OnChange() {
var valorSelecionado = j("[id*=ddlElemento] option:selected").text().split(' ')[0].trim();
list = j("[id*=ddlSubElemento] option");
j("[id*=ddlSubElemento]").val("");
validarFiltro(valorSelecionado, list);
}
function ManterFiltrosAvancados() {
var valorSelecionado = j("[id*=ddlElemento] option:selected").text().split(' ')[0].trim();
list = j("[id*=ddlSubElemento] option");
validarFiltro(valorSelecionado, list);
valorSelecionado = j("[id*=ddlModalidade] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlElemento] option");
validarFiltro(valorSelecionado, list);
valorSelecionado = j("[id*=ddlNatureza] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlModalidade] option");
validarFiltro(valorSelecionado, list);
valorSelecionado = j("[id*=ddlCategoria] option:selected").text().split(' ')[0].trim();
var list = j("[id*=ddlNatureza] option");
validarFiltro(valorSelecionado, list);
}
</script>]]>
|
552
| <![CDATA[<script>
j(function () {
j.widget("custom.combobox", {
_create: function () {
this.wrapper = j("<span>").addClass("custom-combobox").insertAfter(this.element);
this.element.hide();
this._createAutocomplete();
this._createShowAllButton();
},
_createAutocomplete: function () {
var selected = this.element.children(":selected"),
value = selected.val() ? selected.text() : "";
this.input = j("<input>")
.appendTo(this.wrapper)
.val(value)
.attr("title", "")
.addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left")
.autocomplete({
delay: 0,
minLength: 0,
source: this._source.bind(this)
})
.tooltip({
classes: {
"ui-tooltip": "ui-state-highlight"
}
});
this._on(this.input, {
autocompleteselect: function (event, ui) {
ui.item.option.selected = true;
this._trigger("select", event, {
item: ui.item.option
});
},
autocompletechange: "_removeIfInvalid"
});
},
_createShowAllButton: function () {
var input = this.input,
wasOpen = false;
j("<a>")
.attr("tabIndex", -1)
.attr("title", "Mostrar Todos")
.tooltip()
.appendTo(this.wrapper)
.button({
text: true
})
.removeClass("ui-corner-all")
.addClass("custom-combobox-toggle ui-corner-right")
.on("mousedown", function () {
wasOpen = input.autocomplete("widget").is(":visible");
})
.on("click", function () {
input.trigger("focus");
// Close if already visible
if (wasOpen) {
return;
}
// Pass empty string as value to search for, displaying all results
input.autocomplete("search", "");
});
},
_source: function (request, response) {
var matcher = new RegExp(j.ui.autocomplete.escapeRegex(request.term), "i");
response(this.element.children("option").map(function () {
var text = j(this).text();
if (this.value && (!request.term || matcher.test(text)))
return {
label: text,
value: text,
option: this
};
}));
},
_removeIfInvalid: function (event, ui) {
// Selected an item, nothing to do
if (ui.item) {
return;
}
// Search for a match (case-insensitive)
var value = this.input.val(),
valueLowerCase = value.toLowerCase(),
valid = false;
this.element.children("option").each(function () {
if (j(this).text().toLowerCase() === valueLowerCase) {
this.selected = valid = true;
return false;
}
});
// Found a match, nothing to do
if (valid) {
return;
}
// Remove invalid value
this.input.val("").attr("title", value + " Nenhum item correspondente").tooltip("open");
this.element.val("");
this._delay(function () {
this.input.tooltip("close").attr("title", "");
}, 2500);
this.input.autocomplete("instance").term = "";
},
_destroy: function () {
this.wrapper.remove();
this.element.show();
}
}, null);
j("#cphMasterPrincipal_ddlFonte").combobox();
j("#toggle").on("click", function () {
j("#cphMasterPrincipal_ddlFonte").toggle();
});
////reinicia o combo quando atualiza o update panel
//Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function () { j("#cphMasterPrincipal_ddlFonte").combobox(); });
});
</script>]]>
|
684
| <![CDATA[<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-16502298-2','auto');ga('send','pageview');</script>]]>
|
685
| <![CDATA[<script type="text/javascript">
//<![CDATA[
AtribuirMascaras();HabilitarExportacao();//]]>
</script>]]>
|
689
| <![CDATA[<script type='text/javascript'>new Sys.WebForms.Menu({ element: 'menuTopo', disappearAfter: 500, orientation: 'horizontal', tabIndex: 0, disabled: false });</script>]]>
|