implement gain dialog with AGC option

This commit is contained in:
Jakob Ketterl
2021-02-19 21:07:13 +01:00
parent 86278ff44d
commit d0d946e09f
5 changed files with 61 additions and 4 deletions

View File

@ -0,0 +1,22 @@
$.fn.gainInput = function() {
this.each(function() {
var $container = $(this);
var update = function(value){
$container.find('.option').hide();
$container.find('.option.' + value).show();
}
var $select = $container.find('select');
$select.on('change', function(e) {
var value = $(e.target).val()
update(value);
if (value == 'auto') {
$input.val('auto');
} else {
$input
}
});
update($select.val());
});
}

View File

@ -1,8 +1,8 @@
$(function(){
$('.map-input').mapInput();
$('.sdrdevice').sdrdevice();
$('.imageupload').imageUpload();
$('.bookmarks').bookmarktable();
$('.wsjt-decoding-depths').wsjtDecodingDepthsInput();
$('#waterfall_scheme').waterfallDropdown();
$('#rf_gain').gainInput();
});