mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 15:04:45 +00:00
web3
This commit is contained in:
parent
365b9e1882
commit
7be5e15e9a
@ -243,7 +243,7 @@ function processAndAppendReturn(data, newloc) {
|
|||||||
} else if (questions[j][1]['type'] == 'stepper') {
|
} 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>";
|
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') {
|
} 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>" + (0).toString() + "<input type='button' onclick=\"inc('" + questions[j][0] + "')\" value='+'></input></span>";
|
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'] == 'slider') {
|
} else if (questions[j][1]['type'] == 'slider') {
|
||||||
document.getElementById(newloc + j.toString()).innerHTML += " " + questions[j][1]['min'] + " ";
|
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'] + "'>";
|
document.getElementById(newloc + j.toString()).innerHTML += "<input type='range' min='" + questions[j][1]['min'] + "' max='" + questions[j][1]['max'] + "'>";
|
||||||
@ -392,7 +392,7 @@ function subReport() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(currentComp).doc("team-" + teamNum).collection('matches').doc('match-' + matchNum).set(push, {
|
firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(currentComp).doc("team-" + teamNum).collection('matches').doc('match-' + matchNum).set(push, {merge:true}).then(function() {
|
||||||
alert('Submitted!')
|
alert('Submitted!')
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location.href = '../scout';
|
window.location.href = '../scout';
|
||||||
|
Loading…
Reference in New Issue
Block a user