Merge pull request #419 from yueyuzhao/dev-hide-gears-on-init-options-page

hide gears on init options page
This commit is contained in:
chrisgarrity 2021-05-25 10:04:12 -04:00 committed by GitHub
commit cb39b8010d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 optionSelected (elem) {
function indexShowQuestion (key) {
indexHideSplash();
hideLogo();
hideGear();
var optionType = InitialOptions.optionTypeForKey(key);
if (optionType === 'place_preference') {
indexAskPlace();