mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
reworked questions to comply with Ian's app
This commit is contained in:
parent
1ee9867ea6
commit
a7def3c367
@ -44,7 +44,34 @@
|
|||||||
<option value="Ludicrous">Ludicrous</option>
|
<option value="Ludicrous">Ludicrous</option>
|
||||||
</select>
|
</select>
|
||||||
<div>
|
<div>
|
||||||
Strategy: <input type="text" name="" value="" id="strat">
|
Team Contribution: <select id="contrib">
|
||||||
|
<option value="Weak">Weak</option>
|
||||||
|
<option value="Equal">Equal</option>
|
||||||
|
<option value="Strong">Strong</option>
|
||||||
|
<option value="IDK">IDK</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Endgame Size: <select class="" name="" id="egs">
|
||||||
|
<option value="Small">Small</option>
|
||||||
|
<option value="Medium">Medium</option>
|
||||||
|
<option value="Large">Large</option>
|
||||||
|
<option value="Jumbo">Jumbo</option>
|
||||||
|
<option value="IDK">IDK</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
HAB Start:
|
||||||
|
<select class="" name="" id="habs">
|
||||||
|
<option value="None">None</option>
|
||||||
|
<option value="Hab I">Hab I</option>
|
||||||
|
<option value="Hab II">Hab II</option>
|
||||||
|
<option value="Hab III">Hab III</option>
|
||||||
|
<option value="IDK">IDK</option>
|
||||||
|
</select>
|
||||||
|
<div>
|
||||||
|
Strategy: <input type="text" name="" value="" id="strat">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h3>Sandstorm:</h3>
|
<h3>Sandstorm:</h3>
|
||||||
<div>
|
<div>
|
||||||
@ -55,54 +82,65 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Cargo Ship Hatch Panels Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="3" id="SCHS">
|
Strongest Object: <select id="SSO">
|
||||||
|
<option value="Neither">Neither</option>
|
||||||
|
<option value="Ball">Cargo</option>
|
||||||
|
<option value="Hatch">Hatch Panels</option>
|
||||||
|
<option value="Both">Both</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Cargo Ship Hatch Panels Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="3" id="SCHU">
|
Was Functional:
|
||||||
|
<select id="DOA">
|
||||||
|
<option value="Yes">Yes</option>
|
||||||
|
<option value="Sorta">Sorta</option>
|
||||||
|
<option value="No">No</option>
|
||||||
|
<option value="IDK">IDK</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Rocket Hatch Panels Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="9" id="SRHS">
|
Fill Choice: <select id="SFill">
|
||||||
</div>
|
<option value="Low Rocket">Low-Mid Rocket</option>
|
||||||
<div>
|
<option value="High Rocket">Mid-High Rocket</option>
|
||||||
Rocket Hatch Panels Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="9" id="SRHU">
|
<option value="Cargo">Cargo Ship</option>
|
||||||
</div>
|
<option value="None">None</option>
|
||||||
<div>
|
</select>
|
||||||
Cargo Ship Cargo Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="3" id="SCCS">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Cargo Ship Cargo Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="3" id="SCCU">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Rocket Cargo Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="18" id="SRCS">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Rocket Cargo Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="18" id="SRCU">
|
|
||||||
</div>
|
</div>
|
||||||
<h3>Tele-Op:</h3>
|
<h3>Tele-Op:</h3>
|
||||||
<div>
|
<div>
|
||||||
Cargo Ship Hatch Panels Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="3" id="TCHS">
|
Strongest Object: <select id="TSO">
|
||||||
|
<option value="Neither">Neither</option>
|
||||||
|
<option value="Ball">Cargo</option>
|
||||||
|
<option value="Hatch">Hatch Panels</option>
|
||||||
|
<option value="Both">Both</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Cargo Ship Hatch Panels Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="3" id="TCHU">
|
Fill Choice: <select id="TFill">
|
||||||
</div>
|
<option value="Low Rocket">Low-Mid Rocket</option>
|
||||||
<div>
|
<option value="High Rocket">Mid-High Rocket</option>
|
||||||
Rocket Hatch Panels Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="9" id="TRHS">
|
<option value="Cargo">Cargo Ship</option>
|
||||||
</div>
|
<option value="None">None</option>
|
||||||
<div>
|
</select>
|
||||||
Rocket Hatch Panels Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="9" id="TRHU">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Cargo Ship Cargo Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="3" id="TCCS">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Cargo Ship Cargo Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="3" id="TCCU">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Rocket Cargo Placed Successfully: <input type="number" name="quantity" value="0" min="0" max="18" id="TRCS">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Rocket Cargo Placed Unsuccessfully: <input type="number" name="quantity" value="0" min="0" max="18" id="TRCU">
|
|
||||||
</div>
|
</div>
|
||||||
|
Cargo Ship Success Rate: <select id="CSSR">
|
||||||
|
<option value="N/A">N/A</option>
|
||||||
|
<option value="Low">Low</option>
|
||||||
|
<option value="Mid">Medium</option>
|
||||||
|
<option value="High">High</option>
|
||||||
|
</select>
|
||||||
|
Low Rocket Success Rate: <select id="LRSR">
|
||||||
|
<option value="N/A">N/A</option>
|
||||||
|
<option value="Low">Low</option>
|
||||||
|
<option value="Mid">Medium</option>
|
||||||
|
<option value="High">High</option>
|
||||||
|
</select>
|
||||||
|
High Rocket Success Rate: <select id="HRSR">
|
||||||
|
<option value="N/A">N/A</option>
|
||||||
|
<option value="Low">Low</option>
|
||||||
|
<option value="Mid">Medium</option>
|
||||||
|
<option value="High">High</option>
|
||||||
|
</select>
|
||||||
<h3>Endgame:</h3>
|
<h3>Endgame:</h3>
|
||||||
<div>
|
<div>
|
||||||
HAB Climb: <select id="HAB">
|
HAB Climb: <select id="HAB">
|
||||||
|
@ -67,26 +67,24 @@ function subRes() {
|
|||||||
push['speed'] = document.getElementById('speed').value
|
push['speed'] = document.getElementById('speed').value
|
||||||
push['sandstormCross'] = document.getElementById('SCross').value
|
push['sandstormCross'] = document.getElementById('SCross').value
|
||||||
push['strategy']= document.getElementById('strat').value
|
push['strategy']= document.getElementById('strat').value
|
||||||
|
push['contrubution'] = document.getElementById('contrib').value
|
||||||
|
push['startingHatch'] = document.getElementById('habs').value
|
||||||
|
push['size'] = document.getElementById('egs').value
|
||||||
|
|
||||||
push['sandstormCargoShipHatchSuccess'] = document.getElementById('SCHS').value
|
push['fillChoice'] = document.getElementById('SFill').value
|
||||||
push['sandstormCargoShipHatchFailure'] = document.getElementById('SCHU').value
|
push['functional'] = document.getElementById('DOA').value
|
||||||
push['sandstormRocketHatchSuccess'] = document.getElementById('SRHS').value
|
push['strongMedium'] = document.getElementById('SSO').value
|
||||||
push['sandstormRocketHatchFailure'] = document.getElementById('SRHU').value
|
push['sandstormCrossBonus'] = document.getElementById('SCross').value
|
||||||
push['sandstormCargoShipCargoSuccess'] = document.getElementById('SCCS').value
|
|
||||||
push['sandstormCargoShipCargoFailure'] = document.getElementById('SCCU').value
|
|
||||||
push['sandstormRocketCargoSuccess'] = document.getElementById('SRCS').value
|
|
||||||
push['sandstormRocketCargoFailure'] = document.getElementById('SRHU').value
|
|
||||||
|
|
||||||
push['teleOpCargoShipHatchSuccess'] = document.getElementById('TCHS').value
|
push['fillChoiceTeleop'] = document.getElementById('TFill').value
|
||||||
push['teleOpCargoShipHatchFailure'] = document.getElementById('TCHU').value
|
push['strongMediumTeleop'] = document.getElementById('TSO').value
|
||||||
push['teleOpRocketHatchSuccess'] = document.getElementById('TRHS').value
|
|
||||||
push['teleOpRocketHatchFailure'] = document.getElementById('TRHU').value
|
push['cargoSuccessTeleop'] = document.getElementById('CSSR').value
|
||||||
push['teleOpCargoShipCargoSuccess'] = document.getElementById('TCCS').value
|
push['hiRocketSuccessTeleop'] = document.getElementById('HRSR').value
|
||||||
push['teleOpCargoShipCargoFailure'] = document.getElementById('SCCU').value
|
push['lowRocketSuccessTeleop'] = document.getElementById('LRSR').value
|
||||||
push['teleOpRocketCargoSuccess'] = document.getElementById('TRCS').value
|
|
||||||
push['teleOpRocketCargoFailure'] = document.getElementById('TRHU').value
|
push['endingHab'] = document.getElementById('HAB').value
|
||||||
|
|
||||||
push['HABClimb'] = document.getElementById('HAB').value
|
|
||||||
firebase.firestore().collection("teamData").doc('team-' + document.getElementById('tns').value).collection('scouts').doc(user.uid).collection(comp).doc("team-" + document.getElementById('tsn').value + "-match-" + document.getElementById('mn').value).set(push, {
|
firebase.firestore().collection("teamData").doc('team-' + document.getElementById('tns').value).collection('scouts').doc(user.uid).collection(comp).doc("team-" + document.getElementById('tsn').value + "-match-" + document.getElementById('mn').value).set(push, {
|
||||||
merge: true
|
merge: true
|
||||||
})
|
})
|
||||||
@ -97,26 +95,24 @@ function subRes() {
|
|||||||
push['teamDBRef'] = 'team-' + document.getElementById('tsn').value
|
push['teamDBRef'] = 'team-' + document.getElementById('tsn').value
|
||||||
push['speed'] = document.getElementById('speed').value
|
push['speed'] = document.getElementById('speed').value
|
||||||
push['sandstormCross'] = document.getElementById('SCross').value
|
push['sandstormCross'] = document.getElementById('SCross').value
|
||||||
|
push['strategy']= document.getElementById('strat').value
|
||||||
|
push['contrubution'] = document.getElementById('contrib').value
|
||||||
|
push['startingHatch'] = document.getElementById('habs').value
|
||||||
|
push['size'] = document.getElementById('egs').value
|
||||||
|
|
||||||
push['sandstormCargoShipHatchSuccess'] = document.getElementById('SCHS').value
|
push['fillChoice'] = document.getElementById('SFill').value
|
||||||
push['sandstormCargoShipHatchFailure'] = document.getElementById('SCHU').value
|
push['functional'] = document.getElementById('DOA').value
|
||||||
push['sandstormRocketHatchSuccess'] = document.getElementById('SRHS').value
|
push['strongMedium'] = document.getElementById('SSO').value
|
||||||
push['sandstormRocketHatchFailure'] = document.getElementById('SRHU').value
|
push['sandstormCrossBonus'] = document.getElementById('SCross').value
|
||||||
push['sandstormCargoShipCargoSuccess'] = document.getElementById('SCCS').value
|
|
||||||
push['sandstormCargoShipCargoFailure'] = document.getElementById('SCCU').value
|
|
||||||
push['sandstormRocketCargoSuccess'] = document.getElementById('SRCS').value
|
|
||||||
push['sandstormRocketCargoFailure'] = document.getElementById('SRHU').value
|
|
||||||
|
|
||||||
push['teleOpCargoShipHatchSuccess'] = document.getElementById('TCHS').value
|
push['fillChoiceTeleop'] = document.getElementById('TFill').value
|
||||||
push['teleOpCargoShipHatchFailure'] = document.getElementById('TCHU').value
|
push['strongMediumTeleop'] = document.getElementById('TSO').value
|
||||||
push['teleOpRocketHatchSuccess'] = document.getElementById('TRHS').value
|
|
||||||
push['teleOpRocketHatchFailure'] = document.getElementById('TRHU').value
|
|
||||||
push['teleOpCargoShipCargoSuccess'] = document.getElementById('TCCS').value
|
|
||||||
push['teleOpCargoShipCargoFailure'] = document.getElementById('SCCU').value
|
|
||||||
push['teleOpRocketCargoSuccess'] = document.getElementById('TRCS').value
|
|
||||||
push['teleOpRocketCargoFailure'] = document.getElementById('TRHU').value
|
|
||||||
|
|
||||||
push['HABClimb'] = document.getElementById('HAB').value
|
push['cargoSuccessTeleop'] = document.getElementById('CSSR').value
|
||||||
|
push['hiRocketSuccessTeleop'] = document.getElementById('HRSR').value
|
||||||
|
push['lowRocketSuccessTeleop'] = document.getElementById('LRSR').value
|
||||||
|
|
||||||
|
push['endingHab'] = document.getElementById('HAB').value
|
||||||
firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(comp).doc("team-" + document.getElementById('tsn').value).collection('matches').doc('match-' + document.getElementById('mn').value).set(push, {
|
firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(comp).doc("team-" + document.getElementById('tsn').value).collection('matches').doc('match-' + document.getElementById('mn').value).set(push, {
|
||||||
merge: true
|
merge: true
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user