mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-29 02:25:39 -05:00
Don’t reload index
Instead of reloading the page, just load Start and have Start hide the usage parts.
This commit is contained in:
parent
852df3edbb
commit
952ce54b52
1 changed files with 6 additions and 1 deletions
|
@ -84,6 +84,11 @@ function indexLoadStart () {
|
||||||
gn('blueguy').className = 'blue hide';
|
gn('blueguy').className = 'blue hide';
|
||||||
gn('redguy').className = 'red hide';
|
gn('redguy').className = 'red hide';
|
||||||
gn('gear').className = 'gear show';
|
gn('gear').className = 'gear show';
|
||||||
|
gn('usageQuestion').className = 'usageQuestion hide';
|
||||||
|
gn('usageSchool').className = 'usageSchool hide';
|
||||||
|
gn('usageHome').className = 'usageHome hide';
|
||||||
|
gn('usageOther').className = 'usageOther hide';
|
||||||
|
gn('usageNoanswer').className = 'usageNoanswer hide';
|
||||||
}
|
}
|
||||||
gn('gettings').className = 'gettings show';
|
gn('gettings').className = 'gettings show';
|
||||||
gn('startcode').className = 'startcode show';
|
gn('startcode').className = 'startcode show';
|
||||||
|
@ -161,7 +166,7 @@ function indexSetUsage (e) {
|
||||||
iOS.analyticsEvent('lobby', 'scratchjr_usage', usageText);
|
iOS.analyticsEvent('lobby', 'scratchjr_usage', usageText);
|
||||||
AppUsage.setUsage(usageText);
|
AppUsage.setUsage(usageText);
|
||||||
ScratchAudio.sndFX('tap.wav');
|
ScratchAudio.sndFX('tap.wav');
|
||||||
window.location.href = 'index.html';
|
indexLoadStart();
|
||||||
}
|
}
|
||||||
// For PBS KIDS edition only
|
// For PBS KIDS edition only
|
||||||
function indexInfo () {
|
function indexInfo () {
|
||||||
|
|
Loading…
Reference in a new issue