Skip to content

Commit

Permalink
dfghj
Browse files Browse the repository at this point in the history
  • Loading branch information
LongmetalAdmin committed Feb 29, 2024
1 parent cd89c14 commit 7a4d476
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</head>

<body>
<script>
<!-- <script>
async function registerServiceWorker() {
if ("serviceWorker" in navigator) {
try {
Expand All @@ -42,7 +42,7 @@
}
registerServiceWorker();
</script>
</script> -->
<nav>
<div class = "heading">
<h1>Longmetal 7127 test</h1>
Expand Down
2 changes: 1 addition & 1 deletion pages/teamdetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h1> Team Details v1</h1>
</header>
<br>

<div id="test">dsgfghdghjfhj sfgdgfshgdhgfh</div>
<div class="team-details-container">
<div class="inner-container">
<!-- <form id="dataForm" class="teaminfo"> -->
Expand Down Expand Up @@ -128,7 +129,6 @@ <h2> Abilities </h2><br>
<label for="either">Either</label>

<p>Stage abilities:</p>
<form action="/action_page.php">
<p class="ptext">Stage abilities:</p>
<input type="checkbox" id="spotlight" name="spotlight" value="spotlight">
<label for="spotlight"> Enters stage</label><br>
Expand Down
5 changes: 3 additions & 2 deletions pages/teamdetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ document.addEventListener('DOMContentLoaded', async () => {
// Initialize Dexie and retrieve data based on the team ID from the URL parameter
const urlParams = new URLSearchParams(window.location.search);
const teamId = parseInt(urlParams.get('globalid'));

console.log(`${teamId}`);

const db = new Dexie("Team Tracking App");
db.version(1).stores({
teams: "++id, teamname, globalid"
Expand All @@ -12,7 +13,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const team = await db.teams.get(teamId);
if (team) {
// Display the team details on the page
const teamDetailsDiv = document.getElementById('teamname');
const teamDetailsDiv = document.getElementById('test');
teamDetailsDiv.innerHTML = `${team.teamname}`;
} else {
console.log(`Team with ID ${teamId} not found.`);
Expand Down

0 comments on commit 7a4d476

Please sign in to comment.