Commit d60907f8 authored by Porter Libby's avatar Porter Libby
Browse files

feedback for empty sets

parent 7b982d5d
......@@ -68,7 +68,7 @@ h1 span{
}
}
.elem-1{
background-color: var(--theme4);
background-color: #aaa;
}
.elem-0{
background-color: var(--theme4);
......
......@@ -46,7 +46,14 @@ function switchToData(){
// generalized formula
function createRadioElement(name, id, label, f, count=999){
var radioHtml = '<div class="elem-div elem-0">'
var radioHtml = '<div class="elem-div elem-'
if (count == 0){
radioHtml += "1"
}else{
radioHtml += "0"
}
radioHtml += '">';
if (typeof id === 'string' || id instanceof String){
radioHtml += '<input class="data-radio form-radio" onchange="'+ f +'(';
radioHtml += "'" + id + "'";
......@@ -83,8 +90,15 @@ function createRadioElementSectors( mode, name, count, label, id ) {
}
function createRadioElementSpots( mode, name, count, label,id ) {
var f = "getReadings";
var radioHtml = '<div class="elem-div elem-';
//return createRadioElement(name, id, label, f);
var radioHtml = '<div class="elem-div elem-0">'
if (count == 0){
radioHtml += '1">';
}else{
radioHtml += '0">';
}
if (typeof id === 'string' || id instanceof String){
radioHtml += '<input class="data-radio form-check" onchange="'+ f +'(';
radioHtml += "'" + id + "'";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment