let stypes=new Map(); stypes.set('4', 'RS41'); stypes.set('R', 'RS92'); stypes.set('D', 'DFM'); stypes.set('M', 'M10/M20'); stypes.set('3', 'MP3H'); function footer() { document.addEventListener("DOMContentLoaded", function(){ var form = document.querySelector(".wrapper"); form.addEventListener("input", function() { document.querySelector(".save").disabled = false; }); document.querySelector(".save").disabled = true; }); } /* Used by qrg.html in RX_FSK.ino */ function prep() { var stlist=document.querySelectorAll("input.stype"); for(txt of stlist){ var val=txt.getAttribute('value'); var nam=txt.getAttribute('name'); if(val=='2') { val='M'; } var sel=document.createElement('select'); sel.setAttribute('name',nam); for(stype of stypes) { var opt=document.createElement('option'); opt.value=stype[0]; opt.innerHTML=stype[1]; if(stype[0]==val) { opt.setAttribute('selected','selected'); } sel.appendChild(opt); } txt.replaceWith(sel); } } function qrgTable() { var tab=document.getElementById("divTable"); var table = ""; for(i=0; i" + (i+1) + ""; table += ""; table += ""; table += ""; } table += "
ChActiveFrequencyDecoderLaunchsite
"; tab.innerHTML = table; prep(); footer(); }