Forum Discussion
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!
16 Replies
- BarryStoner-7deCommunity Member
Hello all,
I would like to show a prompt text on the Modern Player resume screen. (Idealy I would like to make my own resume screen, but that's a question for another time).
Please see the attached image for where I would expect an instruction to appear.
I expected to the the words 'Would you like to resume where you left off?' that appear on row 161 om the Player Text Lablels. Is this not the case for the Modern Player?
Thanks in advance. - BarryStoner-7deCommunity Member
Much like Steve Walsh's comment above, I would rather not put a paragraph in a button.
Why is the Resume page so simple? - MateuszSzuterCommunity 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 scriptfunction 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 milisecondsThis 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. :)
Related Content
- 10 months ago
- 2 months ago