Reply To: .zip file problems

PennController for IBEX Forums Support .zip file problems Reply To: .zip file problems

#4932
Jeremy
Keymaster

Hi Elise,

I’m not able to reproduce the bug on my end, but I think I know where the problem is coming from. Try replacing the replacePreloadingText function with this:

let replacePreloadingText = ()=>{
    let mainPs = $(".PennController-PennController div p");
    if (mainPs.length == 2 && mainPs[0].innerHTML == "Please wait while the resources are preloading")
        mainPs.parent().empty().append('

Laden...

') else window.requestAnimationFrame( replacePreloadingText ); }; window.requestAnimationFrame( replacePreloadingText );

And create a file named global_z.css in your Aesthetics folder to define your nice preloading loop animation:

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid cadetblue;
    width: 120px;height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
    0% { 
        -webkit-transform: rotate(0deg); 
        
    }100% { 
        -webkit-transform: rotate(360deg); 
        
    }
}
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

Hopefully that should fix the HTML structure of your document and PennController should no longer fail to set the style of its DOM element

Let me know if that fixed your problem

Jeremy