mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 01:59:08 +00:00
dont be stupid
This commit is contained in:
parent
4671eacb6e
commit
e992483f35
@ -36,8 +36,8 @@
|
|||||||
Match: <select id="mselect" onchange="cmatch(document.getElementById('mselect').value)"></select>
|
Match: <select id="mselect" onchange="cmatch(document.getElementById('mselect').value)"></select>
|
||||||
Team: <select id="tselect"></Select>
|
Team: <select id="tselect"></Select>
|
||||||
Series: <select id="sselect" onchange="cseries(document.getElementById('sselect').value)">
|
Series: <select id="sselect" onchange="cseries(document.getElementById('sselect').value)">
|
||||||
<option value="Quantitative">Quantitative</option>
|
<option value="quantitative">Quantitative</option>
|
||||||
<option value="Qualitative">Qualitative</option>
|
<option value="qualitative">Qualitative</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div id=FormData>
|
<div id=FormData>
|
||||||
|
@ -313,6 +313,9 @@ function dec(id) {
|
|||||||
function inc(id) {
|
function inc(id) {
|
||||||
document.getElementById(id).innerHTML = "<input type='button' onclick=\"dec('" + id + "')\" value='-'></input>"+(parseInt(document.getElementById(id).textContent) + 1).toString()+"<input type='button' onclick=\"inc('" + id + "')\" value='+'></input>"
|
document.getElementById(id).innerHTML = "<input type='button' onclick=\"dec('" + id + "')\" value='-'></input>"+(parseInt(document.getElementById(id).textContent) + 1).toString()+"<input type='button' onclick=\"inc('" + id + "')\" value='+'></input>"
|
||||||
}
|
}
|
||||||
|
function capitalizeFirstLetter(string) {
|
||||||
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||||
|
}
|
||||||
|
|
||||||
function subReport() {
|
function subReport() {
|
||||||
var user = firebase.auth().currentUser;
|
var user = firebase.auth().currentUser;
|
||||||
@ -331,7 +334,7 @@ function subReport() {
|
|||||||
var submitTo = document.getElementById('tns').value;
|
var submitTo = document.getElementById('tns').value;
|
||||||
var teamNum = document.getElementById('tselect').value;
|
var teamNum = document.getElementById('tselect').value;
|
||||||
var matchNum = document.getElementById('mselect').value;
|
var matchNum = document.getElementById('mselect').value;
|
||||||
var series = document.getElementById('sselect').value;
|
var series = capitalizeFirstLetter(document.getElementById('sselect').value);
|
||||||
var push = {}
|
var push = {}
|
||||||
push[series+'-'+user.uid]={}
|
push[series+'-'+user.uid]={}
|
||||||
var x = document.getElementById('repsec1').children;
|
var x = document.getElementById('repsec1').children;
|
||||||
|
Loading…
Reference in New Issue
Block a user