grachek

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • grachek
    Participant

    oops replying again because of a typo in my previous code example

    //change progress bar text
    const replaceProgressBarText = ()=>{
      const progressBarText = $(“.PennController-PennController > div”);
      if (progressBarText.length > 0 && progressBarText[0].innerHTML.match(/^<p>progress/))
        progressBarText.html(“<p>プログレスバー</p>”);
      window.requestAnimationFrame( replaceProgressBarText );
    };
    window.requestAnimationFrame( replaceProgressBarText );
    grachek
    Participant

    Hello Jeremy,

    Thank you! The trick from the post you linked to worked perfectly for the preloading message! It didn’t seem to work for the sendingResultsMessage or the progressBarText though. Is there something else that I have to do to change the text in those elements? Here is the code I tried for the progress bar for reference:

    //change progress bar text
    const replaceProgressBarText = ()=>{
        const progressBarText = $(".PennController-PennController > div");
        if (progressBarText.length > 0 && preloadingMessage[0].innerHTML.match(/^<p>progress/))
            progressBarText.html("<p>プログレスバー</p>");
        window.requestAnimationFrame( replaceProgressBarText );
    };
    window.requestAnimationFrame( replaceProgressBarText );

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)