From 952ce54b52e1f0b108a6bca89f33eab8acc90195 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Thu, 10 Aug 2017 17:03:30 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20reload=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of reloading the page, just load Start and have Start hide the usage parts. --- src/entry/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/entry/index.js b/src/entry/index.js index c506aaa..324abf6 100644 --- a/src/entry/index.js +++ b/src/entry/index.js @@ -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 () {