Hi again,
Yes you are correct that they are simply hooks that I added a while back for some reason (I recall adding them but not for what purpose or project)...
They are page level hooks, i.e. if you add a custom page then you have init, pageChanged, pageResized, onTimerTick and onTimerZero - however none of the current pages appear to use onTimerTick or onTimerZero... A timer can be added on any of the pages now (Page Timer in optional properties)
but not sure which if any pages use the Page Timer onTimerZero is used in the Wordsearch page, within Games.
If you need to access the current page object in script then you can use:
window[x_pageInfo[x_currentPage].type]
and thus you could modify the page object in script by doing
window[x_pageInfo[x_currentPage].type].onTimerTick = function (timer) {
console.log(timer);
}
Tick doesn't fire on zero so this will print numbers: ...,10, 9, 8, 7, 6, 5,4,3,2,1
If you want zero then wire up the zero hook
window[x_pageInfo[x_currentPage].type].onTimerZero = function () {
console.log('Zero');
}
While it's possible to do this it is undocumented behaviour, could be deprecated or changed at any time and could make the learning object unstable.
Here be dragons...