Forum Discussion
BdorAlotaibi
5 years agoCommunity Member
How to edit (prompt to resume) page
Hi everyone!
Is there any way to change the color and font on a (prompt to resume) page?
Thanks in advance!
MateuszSzuter
3 years agoCommunity Member
If you are still looking for a way to edit Resume page and you are ok with somehow non-100%-elegant way, you can do this:
1) Open in notepad (or similiar) your story.html
2) place your cursor right before </body>
3) paste following script
function addResumeText() {
var container = document.getElementsByClassName('mobile-start-course-title');
container[0].style.flexWrap = "wrap";
container[0].insertAdjacentHTML('beforeend','<p style="flex:1 0 2500px;">Your desired text go here</p>');
}
setTimeout(function() {
var isRestart = document.querySelector('.restart-text');
if (isRestart) {addResumeText();}
},2000); // adjust time in miliseconds
This will basically add some text between course title and resume button, like on the screen.
This is not elegant, because this will fire after adjusted time (in 2 seconds in this case) because I'm yet to discover how to fire script AFTER the dynamic content is loaded. If someone can help me with this, I'd greatly appreciate. :)
You can of course alter this script for your purposes. Well to be honest, if I'd use jQuery here, I could probably rewrite the whole page to my liking. :)