Skip to content

Commit

Permalink
wrong url
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 12, 2024
1 parent c79ffe4 commit dd20d44
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mkwpp-ctgp-doublecheck/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ document.getElementById("startChecker").addEventListener("click", async function
});

async function parseTimesheetMKWPP(link) {

fetch(link).then(r=>r.text()).then(r=>{
let profileDocument = new DOMParser().parseFromString(r, "text/html");
profileDocument.getElementsByClassName
});
}

async function parseTimesheetCTGP(link) {
Expand All @@ -83,7 +86,7 @@ async function writeObservedPlayers() {
if (row.children[0].innerHTML === "Name") continue;
let ppid = starterData.href.split("=")[1];
if (!Object.keys(ctgpLinks).includes(ppid)) continue;
starterData.href = `https://www.mariokart64.com/mkw/profile=${ppid}`;
starterData.href = `https://www.mariokart64.com/mkw/profile.php?pid=${ppid}`;
let out = document.createElement("p");
out.appendChild(starterData);
document.getElementById("info").appendChild(out);
Expand Down

0 comments on commit dd20d44

Please sign in to comment.