In fact only some minor changes to Tim’s version and its exactly as you need/want.
For your education… to ensure it has the proper format at show/start… the pageTransition ( a fade ) takes some time.
So when a transition is running other functions wont work…so adding some time-delay to the initial functions made sure that onShow properly shows the proper format.
Other change on Tim’s version was in the 2 inputfields. The first one was set to 10 characters limit. Changing that to 40 and you can go zillions 😉