Skip to content

Commit

Permalink
vcvcvcv
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurgolo committed Mar 2, 2024
1 parent 4ef02de commit f35d9c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const db = new Dexie("Team Tracking App");
db.version(1).stores({ teams: "++id, teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlightEnters, trap, alone, hangsWithAnother, attemptsSpotlight, coop" });
db.version(1).stores({ teams: "++id, teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlight, trap, alone, hangsWithAnother, attemptsSpotlight, coop" });

const form = document.querySelector("#new-team-form");
const input = document.querySelector("#new-team-input");
Expand Down
4 changes: 2 additions & 2 deletions pages/teamdetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ <h2> Abilities </h2><br>
<label for="intakeEither">Either</label><br><br>

<label for="othertext">Other: </label>
<input type="text" id="othertext" name="prefintake" maxlength="100"><br><br>
<input type="text" id="othertext" name="prefintake" id="prefintake" maxlength="100"><br><br>

<p class="ptext">Stage abilities:</p>
<input type="checkbox" id="spotlightEnters" name="spotlight" value="spotlight">
<input type="checkbox" id="spotlight" name="spotlight" value="spotlight">
<label for="spotlightEnters">Enters stage</label><br>
<input type="checkbox" id="trap" name="trap" value="trap">
<label for="trap">Scores in trapdoor</label><br>
Expand Down
6 changes: 3 additions & 3 deletions pages/teamdetails.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Global Dexie database initialization
const db = new Dexie("Team Tracking App");
db.version(1).stores({ teams: "++id, teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlightEnters, trap, alone, hangsWithAnother, attemptsSpotlight, coop" });
db.version(1).stores({ teams: "++id, teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlight, trap, alone, hangsWithAnother, attemptsSpotlight, coop" });

document.addEventListener('DOMContentLoaded', async () => {
try {
Expand All @@ -22,7 +22,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}
});

async function submitTeamData( teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlightEnters, trap, alone, hangsWithAnother, attemptsSpotlight, coop) {
async function submitTeamData( teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlight, trap, alone, hangsWithAnother, attemptsSpotlight, coop) {
try {
const parsedGlobalId = parseInt(globalId, 10);

Expand Down Expand Up @@ -96,7 +96,7 @@ document.getElementById("teaminfoform").addEventListener("submit", function(even
const globalid = urlParams.get("globalid");

// Pass the new data to submitTeamData
submitTeamData( teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlightEnters, trap, alone, hangsWithAnother, attemptsSpotlight, coop);
submitTeamData( teamname, globalid, teamnumber, teamschool, alliancescore, moreinfo, Leaveszone, scores1amp, scores1speaker, picksup, scores2amp, scores2speaker, amp, Preferred, prefintake, spotlight, trap, alone, hangsWithAnother, attemptsSpotlight, coop);

alert("Team data successfully submitted.");
});

0 comments on commit f35d9c9

Please sign in to comment.