From 02d3035057a56f81db56155561fcd79302ce3595 Mon Sep 17 00:00:00 2001 From: Yueyu Date: Thu, 13 May 2021 07:08:01 +0800 Subject: [PATCH] hide gears on init options page --- src/entry/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/entry/index.js b/src/entry/index.js index 0b4ec84..06f0600 100644 --- a/src/entry/index.js +++ b/src/entry/index.js @@ -111,6 +111,7 @@ function indexSetAnalyticsPrefs () { function indexLoadStart () { indexHideSplash(); showLogo(); + showGear(); gn('gettings').className = 'gettings show'; gn('startcode').className = 'startcode show'; @@ -143,6 +144,14 @@ function showLogo () { gn('jrlogo').className = 'jrlogo show'; } +function hideGear () { + gn('gear').className = 'gear hide'; +} + +function showGear () { + gn('gear').className = 'gear show'; +} + function indexAskPlace () { gn('authors').className = 'credits show'; gn('authorsText').className = 'creditsText hide'; @@ -227,6 +236,7 @@ function optionTouched (elem) { function indexShowQuestion (key) { indexHideSplash(); hideLogo(); + hideGear(); var optionType = InitialOptions.optionTypeForKey(key); if (optionType === 'place_preference') { indexAskPlace();