73
| <![CDATA[<script type="text/javascript">jQuery.noConflict();</script>]]>
|
74
| <![CDATA[<script type="text/javascript">
jQuery(document).on("mobileinit",function(){
jQuery.mobile.pageLoadErrorMessage = "Um erro aconteceu, tente novamente.";
jQuery.mobile.loader.prototype.options.text = "Carregando...";
jQuery.mobile.loader.prototype.options.textVisible = true;
jQuery.mobile.loader.prototype.options.theme = "a";
jQuery.mobile.loader.prototype.options.html = "";
});
</script>]]>
|
107
| <![CDATA[<script type="text/javascript">
jQuery(document).bind("contextmenu",function(event){
return true;
});
</script>]]>
|
112
| <![CDATA[<script type="text/javascript">
var validNavigation = false;
function wireUpEvents() {
window.onbeforeunload = function() {
if (!validNavigation) {
return '';
}
};
}
jQuery(document).ready(function(){
jQuery(document).bind('keypress', function(event) {
if (event.keyCode == 116){
validNavigation = true;
}
});
jQuery("input[type='text']").bind("change", function(event) {
validNavigation = false;
});
jQuery("select").bind("change", function(event) {
validNavigation = false;
jQuery.mobile.activePage.focus();
});
jQuery("a").bind("vclick", function(event) {
//event.preventDefault();
validNavigation = true;
//return false;
});
jQuery("form").bind("submit", function(event) {
validNavigation = true;
});
jQuery("input[type=submit]").bind("vclick", function(event) {
//event.preventDefault();
validNavigation = true;
//return false;
});
wireUpEvents();
});
var RecaptchaOptions = {
theme : 'red',
lang: 'pt',
callback: function(){
jQuery("#container_recaptcha_a").find('a').removeClass("ui-link");
jQuery("#container_recaptcha_a").find('a').attr("data-role","none");
jQuery("#recaptcha_response_field").removeClass("ui-input-text ui-body-a");
jQuery("#recaptcha_response_field").attr("data-role","none");
jQuery(".recaptcha_input_area").find("div").removeClass("ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-a");
jQuery(".recaptcha_input_area").find("div").attr("data-role","none");
jQuery("#recaptcha_image").css('line-height', '110%');
}
};
jQuery(document).ready(function($){
var deviceAgent = navigator.userAgent.toLowerCase();
var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/);
if (agentID) {
jQuery("#footer_container").hide();
} else {
jQuery("#footer_container").show();
}
});
</script>]]>
|
178
| <![CDATA[<script type="text/javascript">
jQuery(window).load(function(){
try{ if(Recaptcha){ Recaptcha.reload("t"); } }catch(ex){ }
});
// Desabilita o clique duplo no menu.
jQuery(document).ready(function(){
jQuery("*").dblclick(function(e){
e.preventDefault();
});
});
</script>]]>
|
293
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#alertamensagem").find("a:first").bind("vclick",function(event){
event.preventDefault();
var collapsible = jQuery("#alertamensagem");
var collapsed = collapsible.collapsible("option","collapsed");
//se estiver aberto, entao fechar-lo!!!
if( collapsed == false ){
jQuery("#errosPlaceholder").fadeOut("slow");
collapsible.collapsible("option","collapsed",true);
}else{
collapsible.collapsible("option","collapsed",false);
}
return false;
});
});
</script>]]>
|
324
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
var btnReset = jQuery("#limpar");
btnReset.bind("vclick",function(event){
event.preventDefault();
jQuery("#formulario").get(0).reset();
return false;
});
var btnSubmit = jQuery("#submit");
btnSubmit.bind("vclick",function(event){
jQuery(this).addClass("ui-disabled");
jQuery(".ui-loader").loader("resetHtml");
jQuery(".ui-loader").loader("option","text","Carregando...");
jQuery(".ui-loader").loader("show");
//jQuery("body").addClass("ui-loading");
event.preventDefault();
var formulario = jQuery("#formulario");
formulario.validate();
if(formulario.valid()){
jQuery("#formulario").submit();
//prevents too many submits.
jQuery(this).addClass("ui-disabled");
return true;
}else{
// Controlando abertura do painel de mensagem de alertas
jQuery("#errosContainerServidor").remove();
jQuery("#errosPlaceholder").show();
jQuery(this).removeClass("ui-disabled");
jQuery(".ui-loader").loader("hide");
//jQuery("body").removeClass("ui-loading");
return false;
}
});
jQuery('#formulario').validate({
rules: {
recaptcha_response_field: "required"
},
messages: {
recaptcha_response_field : "O campo 'Recaptcha' é de preenchimento obrigatório."
},
errorContainer: jQuery('#errosContainer'),
errorLabelContainer: jQuery('#errosContainer ul'),
wrapper: 'li',
showErrors:function(errorMap, errorList){
var collapsible = jQuery("#alertamensagem");
var collapsed = collapsible.collapsible("option","collapsed");
if(errorList.length != 0){
this.defaultShowErrors();
collapsible.trigger("expand");
jQuery("html,body").animate({ scrollTop: 0 }, "slow");
}else{
//se estiver aberto, entao fechar-lo!!!
if( collapsed == false ){
jQuery("#errosPlaceholder").fadeOut("slow");
}
}
}
});
});
</script>]]>
|
396
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
var valorJuros = jQuery('#valorSugerido');
valorJuros.mask('000.000.000,00', {reverse: true});
valorJuros.bind("blur",function(){
var valor = jQuery.trim(jQuery(this).val());
if( valor.length != 0 ) {
valor = valor.replace(/\./gi, '');
valor = valor.replace(',', '.');
valor = (parseFloat(valor));
jQuery(this).val('');
jQuery(this).val(valor.toFixed(2));
jQuery(this).mask('000.000.000,00', {reverse: true});
}
});
var chassi = jQuery("#chassi");
chassi.val("");
jQuery("#formulario").validate();
chassi.rules("add",{
required: true ,
maxlength: 17 ,
minlength: 17 ,
messages:{
required: "O campo 'Chassi' é de preenchimento obrigatório." ,
maxlength: "O campo 'Chassi' deve possuir tamanho de 17 dígitos.",
minlength: "O campo 'Chassi' deve possuir tamanho de 17 dígitos."
}
});
chassi.keydown(function(event){
return isDigitsLettersOnKeyDownEvent(this,event);
});
chassi.keyup(function(event){
return isDigitsLettersOnKeyUpEvent(this,event);
});
chassi.bind("drop",function(event){
event.preventDefault();
return false;
});
var chaveAcesso = jQuery("#chaveAcesso");
chaveAcesso.val("");
jQuery("#formulario").validate();
chaveAcesso.rules("add",{
required: true ,
minlength: 44 ,
messages:{
required: "O campo 'Chave de Acesso NF-e' é de preenchimento obrigatório." ,
minlength: "O campo 'Chave de Acesso' deve possuir tamanho de 44 dígitos."
}
});
// chaveAcesso.keydown(function(event){
// return isDigitsOnKeyDownEvent(this,event);
// });
// chaveAcesso.keyup(function(event){
// return isDigitsOnKeyUpEvent(this,event);
// });
chaveAcesso.bind("drop",function(event){
event.preventDefault();
return false;
});
});
</script>]]>
|
567
| <![CDATA[<script type="text/javascript">
jQuery("#recaptcha_area").css({"margin-left":"auto","margin-right":"auto","text-align":"center"});
</script>]]>
|
570
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#comandoRetornar").bind("vclick",function(event){
event.preventDefault();
var action = jQuery("#actionRetornar").val();
var formulario = jQuery("#formulario");
if(formulario.length > 0){
formulario.validate().cancelSubmit = true;
formulario.attr('action', action);
formulario.submit();
}
return false;
});
jQuery("#comandoHome").bind("vclick",function(event){
var link = jQuery(this);
link.attr("href","/daeonline/Home.action");
return true;
});
});
</script>]]>
|