window.addEventListener('DOMContentLoaded', ()=>{
if(window.angular) return
const body = document.querySelector('body')
const loader = document.querySelector('.pageloader')
const sVgs = loader.querySelectorAll('svg [class^="svg-elem-"]')
function quitaZindex(e){
if(e.propertyName !== 'transform') return
this.classList.add('qita-zIndex')
}
setTimeout(()=>{loader.classList.add('dimissloader')},50)
loader.addEventListener('transitionend',quitaZindex)
let retraso = 0
sVgs.forEach((sv)=>{
sv.style.transitionDelay = retraso + 'ms'
retraso += 50
})
window.addEventListener('beforeunload', function(){
loader.classList.remove('qita-zIndex')
body.classList.add('salida')
}, false)
})