mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +00:00
web2
This commit is contained in:
parent
925087886c
commit
e0099aab60
@ -243,7 +243,7 @@ function processAndAppendReturn(data, newloc) {
|
||||
} else if (questions[j][1]['type'] == 'stepper') {
|
||||
document.getElementById(newloc + j.toString()).innerHTML += "<span id='" + questions[j][0] + "'><input type='button' onclick=\"dec('" + questions[j][0] + "')\" value='-'></input>" + (questions[j][1]['defaultValue']).toString() + "<input type='button' onclick=\"inc('" + questions[j][0] + "')\" value='+'></input></span>";
|
||||
} else if (questions[j][1]['type'] == 'label') {
|
||||
document.getElementById(newloc + j.toString()).innerHTML += "<span id='" + questions[j][0] + "'><input type='button' onclick=\"dec('" + questions[j][0] + "')\" value='-'></input>" + (questions[j][1]['defaultValue']).toString() + "<input type='button' onclick=\"inc('" + questions[j][0] + "')\" value='+'></input></span>";
|
||||
document.getElementById(newloc + j.toString()).innerHTML += "<span id='" + 0 + "'><input type='button' onclick=\"dec('" + questions[j][0] + "')\" value='-'></input>" + (questions[j][1]['defaultValue']).toString() + "<input type='button' onclick=\"inc('" + questions[j][0] + "')\" value='+'></input></span>";
|
||||
} else if (questions[j][1]['type'] == 'slider') {
|
||||
document.getElementById(newloc + j.toString()).innerHTML += " " + questions[j][1]['min'] + " ";
|
||||
document.getElementById(newloc + j.toString()).innerHTML += "<input type='range' min='" + questions[j][1]['min'] + "' max='" + questions[j][1]['max'] + "'>";
|
||||
|
Loading…
Reference in New Issue
Block a user