Skip to content
Snippets Groups Projects
Commit 04072d2c authored by Haoyu Sun's avatar Haoyu Sun
Browse files

post the id to change score

parent 8fc05bb4
No related branches found
No related tags found
5 merge requests!51Resolves 64,!49Resolve issue 70,!48Resolve issue 70,!47Revert "Merge branch '26-as-a-user-i-want-to-see-the-rankings-of-each-member' into 'main'",!29Resolve "As a user, I want to see the match details and be able to change my score"
......@@ -8,6 +8,11 @@
const matchInfo = document.getElementById('matchInfo');
const matchScore = document.getElementById('matchScore');
// btn give the id
const updateBtn = document.getElementById("updateBtn");
updateBtn.addEventListener('click', function (){
window.location.href = `/html/matchDetailChangeScore.html?id=${id}`;
})
matchScore.innerHTML = `<p><strong></strong>${matchData.scoreA} - ${matchData.scoreB}</p>
`
matchInfo.innerHTML = `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment