Skip to content

Commit

Permalink
Merge branch 'master' into about
Browse files Browse the repository at this point in the history
  • Loading branch information
skallinen authored Aug 2, 2019
2 parents 0331fbd + 4a8d721 commit 6feb434
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 225 deletions.
4 changes: 2 additions & 2 deletions end.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const parseUrlParameters = parameter =>
.reduce((acc, cur) => ({ ...acc, [cur[0]]: cur[1] }), {});

const username = document.getElementById("username");
const finalScore = document.getElementById("finalScore");
finalScore = document.getElementById("finalScore");
const mostRecentScore = localStorage.getItem("mostRecentScore");
const saveScoreBtn = document.getElementById("saveScoreButton");
const urlParams = parseUrlParameters(window.location.search);
Expand All @@ -20,7 +20,7 @@ const saveHighscore = e => {

const rankingUrl = `https://script.google.com/macros/s/AKfycbwdGGPzI9JdH_6FN-na4boXQNZmGyv6y_690ErJc0Xhzd_CQ4A_/exec?contentId=${
urlParams.contentId
}&score=${mostRecentScore}&name=${username.value}`;
}&name=${username.value}&score=${mostRecentScore}`;
fetch(rankingUrl);
setInterval(
() =>
Expand Down
Loading

0 comments on commit 6feb434

Please sign in to comment.