Files
Base-QR-Spring-Boot/base-admin-web-configuration/src/main/resources/static/assets/js/base/base-loading.js
T
Alejandro Lara f8468350d5 Estado base antes de integración Cognito.
Incluye admin web Spring Boot, API JWT para escáner y app Flutter qrscanner con login y escaneo de pases.
2026-06-09 15:51:44 -06:00

50 lines
1.3 KiB
JavaScript

$(function() {
$.extend(Base, {
Loading: {
showTimeout: function(options){
if (document.getElementById('loaddiv')) {
document.getElementById('loaddiv').className = 'load';
setTimeout(options.calback, 50);
}
},
show: function (message=null) {
if (document.getElementById('loaddiv')) {
document.getElementById('loaddiv').className = 'load';
}
},
showInBlock: function (target, options) {
if (document.getElementById('loaddiv')) {
document.getElementById('loaddiv').className = 'load';
}
},
hide: function(){
if (document.getElementById('loaddiv')) {
document.getElementById('loaddiv').className = '';
}
},
_qxLoading: function (box) {
return {
ver: function () {
console.log("Base.Loading 1.0");
console.log("Requiere: Base 1.0");
}
}
}
}
});
$.fn.QxLoading = function () {
var loading = this;
return Base.Box._qxLoading(loading);
}
});