diff --git a/assets/mainWindow/css/loading.css b/assets/mainWindow/css/loading.css index ce2afc5..3e58082 100644 --- a/assets/mainWindow/css/loading.css +++ b/assets/mainWindow/css/loading.css @@ -175,6 +175,7 @@ body.agama-app-settings-window { top: 0; right: 0; cursor: pointer; + z-index: 100; } .btn-close img { @@ -466,4 +467,47 @@ small { .padding-top-40 { padding-top: 40px; +} + +.agama-modes-help { + background: rgba(255, 255, 255, 0.85); + width: 420px; + height: auto; + position: absolute; + color: #000; + border-radius: 4px; + font-weight: normal; + font-size: 14px; + text-align: left; + padding: 10px; + top: 60px; + left: 40px; + z-index: 1000; +} + +.agama-modes-help .close-btn { + float: right; + width: 10px; + height: 10px; + cursor: pointer; +} + +.pointer { + cursor: pointer; +} + +.mode-desc { + top: 173px; + position: absolute; +} +.mode-desc.native { + left: 88px; +} +.mode-desc.spv { + left: 293px; +} + +.intro { + position: relative; + top: -15px; } \ No newline at end of file diff --git a/assets/mainWindow/js/loading.js b/assets/mainWindow/js/loading.js index 83063a5..10fce43 100644 --- a/assets/mainWindow/js/loading.js +++ b/assets/mainWindow/js/loading.js @@ -1,6 +1,16 @@ // TODO: merge into react app let _configCopy; +function toggleMainWindowHelp() { + const _help = $('.agama-modes-help'); + + if (_help.is(':visible')) { + _help.hide(); + } else { + _help.show(); + } +} + function toggleDropdown(type) { const _dropdown = $('.dropdown-menu.' + (type === 'lite' ? 'lite' : 'native')); @@ -10,7 +20,7 @@ function toggleDropdown(type) { _dropdown.addClass('hide'); } - $('.dropdown-menu.' + (type === 'lite' ? 'native' : 'lite')).addClass('hide');; + $('.dropdown-menu.' + (type === 'lite' ? 'native' : 'lite')).addClass('hide'); } function initSettingsForm() {