Change preload message

PennController for IBEX Forums Support Change preload message

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10948
    Mercedes
    Participant

    Hi Jeremy,

    I am running an experiment that has a lot of media files. I added the Checkpreloaded() command to my code but I want to add a customize message to the preloading screen.

    I saw in another reply this option to modify the text of the message:

    const replacePreloadingMessage = ()=>{
    const preloadingMessage = $(“.PennController-PennController > div”);
    if (preloadingMessage.length > 0 && preloadingMessage[0].innerHTML.match(/^<p>Please wait while the resources are preloading/))
    preloadingMessage.html(“Espere mientras los recursos se están cargando.<p> Si el problema persiste, refresque la página</p> “);
    window.requestAnimationFrame( replacePreloadingMessage );
    };
    window.requestAnimationFrame( replacePreloadingMessage );

    I would like to make the preloading screen an html file so I can have more control on what it looks like. Do you have an idea on how I could achieve this? I tried moddifying the code above to make it take an html argument, but that is not working.

    Thank you!
    Mercedes.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.