Skip to content

Commit

Permalink
:~)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayAgra committed Oct 6, 2023
1 parent 9463f02 commit dd0bb37
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions routes/submitPit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
function escapeHTML(htmlStr) {
return String(htmlStr)
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#39;");
}

function submitPit(req, res, db, dirname, season) {
// get body of POST data
let formData = req.body;
Expand Down
16 changes: 8 additions & 8 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
<form>
<h1 style="font-family: 'raleway-300'">2023 Scouting<br><span class="gametitle">CHARGED UP℠</span></h1><br>
<div style="display: flex; flex-direction: column;">
<a href="main" class="gameflair1" style="order: 1; margin-bottom: 5%;">Match Scouting<br></a>
<a href="pit" class="gameflair1" style="order: 2; margin-bottom: 5%;">Pit Scouting<br></a>
<a href="matches" class="gameflair1" style="order: 3; margin-bottom: 5%;">Match List<br></a>
<a href="browse" class="gameflair1" style="order: 4; margin-bottom: 5%;">Browse Data<br></a>
<a href="manage" class="gameflair1" style="order: 5; margin-bottom: 5%; display: none;" id="additionalUrl">Manage Data<br></a>
<small style="order: 6"><a href="scouts" style="all: unset; margin-bottom: 5%;">Top Scouts</a></small>
<small style="order: 7"><a href="points" style="all: unset; margin-bottom: 5%;">Points</a></small>
<small style="order: 8"><a href="settings" style="all: unset; margin-bottom: 5%;">Settings</a></small>
<a href="main" class="gameflair1" style="order: 1; margin-bottom: 5%;">match scouting<br></a>
<a href="pit" class="gameflair1" style="order: 2; margin-bottom: 5%;">pit scouting<br></a>
<a href="matches" class="gameflair1" style="order: 3; margin-bottom: 5%;">match list<br></a>
<a href="browse" class="gameflair1" style="order: 4; margin-bottom: 5%;">browse data<br></a>
<a href="manage" class="gameflair1" style="order: 5; margin-bottom: 5%; display: none;" id="additionalUrl">manage data<br></a>
<small style="order: 6"><a href="scouts" style="all: unset; margin-bottom: 7%;">top scouts</a></small>
<small style="order: 7"><a href="points" style="all: unset; margin-bottom: 7%;">points</a></small>
<small style="order: 8"><a href="settings" style="all: unset; margin-bottom: 7%;">settings</a></small>
</div>
</form>
</div>
Expand Down

0 comments on commit dd0bb37

Please sign in to comment.