Don’t reload index

Instead of reloading the page, just load Start and have Start hide the usage parts.
This commit is contained in:
chrisgarrity 2017-08-10 17:03:30 -04:00
parent 852df3edbb
commit 952ce54b52

View file

@ -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 () {