mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #419 from yueyuzhao/dev-hide-gears-on-init-options-page
hide gears on init options page
This commit is contained in:
commit
cb39b8010d
1 changed files with 10 additions and 0 deletions
|
@ -111,6 +111,7 @@ function indexSetAnalyticsPrefs () {
|
||||||
function indexLoadStart () {
|
function indexLoadStart () {
|
||||||
indexHideSplash();
|
indexHideSplash();
|
||||||
showLogo();
|
showLogo();
|
||||||
|
showGear();
|
||||||
gn('gettings').className = 'gettings show';
|
gn('gettings').className = 'gettings show';
|
||||||
gn('startcode').className = 'startcode show';
|
gn('startcode').className = 'startcode show';
|
||||||
|
|
||||||
|
@ -143,6 +144,14 @@ function showLogo () {
|
||||||
gn('jrlogo').className = 'jrlogo show';
|
gn('jrlogo').className = 'jrlogo show';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hideGear () {
|
||||||
|
gn('gear').className = 'gear hide';
|
||||||
|
}
|
||||||
|
|
||||||
|
function showGear () {
|
||||||
|
gn('gear').className = 'gear show';
|
||||||
|
}
|
||||||
|
|
||||||
function indexAskPlace () {
|
function indexAskPlace () {
|
||||||
gn('authors').className = 'credits show';
|
gn('authors').className = 'credits show';
|
||||||
gn('authorsText').className = 'creditsText hide';
|
gn('authorsText').className = 'creditsText hide';
|
||||||
|
@ -227,6 +236,7 @@ function optionSelected (elem) {
|
||||||
function indexShowQuestion (key) {
|
function indexShowQuestion (key) {
|
||||||
indexHideSplash();
|
indexHideSplash();
|
||||||
hideLogo();
|
hideLogo();
|
||||||
|
hideGear();
|
||||||
var optionType = InitialOptions.optionTypeForKey(key);
|
var optionType = InitialOptions.optionTypeForKey(key);
|
||||||
if (optionType === 'place_preference') {
|
if (optionType === 'place_preference') {
|
||||||
indexAskPlace();
|
indexAskPlace();
|
||||||
|
|
Loading…
Reference in a new issue