mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -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('redguy').className = 'red hide';
|
||||
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('startcode').className = 'startcode show';
|
||||
|
@ -161,7 +166,7 @@ function indexSetUsage (e) {
|
|||
iOS.analyticsEvent('lobby', 'scratchjr_usage', usageText);
|
||||
AppUsage.setUsage(usageText);
|
||||
ScratchAudio.sndFX('tap.wav');
|
||||
window.location.href = 'index.html';
|
||||
indexLoadStart();
|
||||
}
|
||||
// For PBS KIDS edition only
|
||||
function indexInfo () {
|
||||
|
|
Loading…
Reference in a new issue