From 7112a6bad8af2e3dcebc29a4c0375a5a20a3896d Mon Sep 17 00:00:00 2001 From: gocivici Date: Tue, 11 Oct 2022 16:55:04 +0300 Subject: [PATCH] fixed share button --- index.html | 2 +- main.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 4b64c55..530ed0d 100644 --- a/index.html +++ b/index.html @@ -284,7 +284,7 @@ - + diff --git a/main.js b/main.js index fb5d771..925c1a1 100644 --- a/main.js +++ b/main.js @@ -1231,6 +1231,7 @@ window.onload = deathOftheDay(); } function submitBonus(b=0){ + plausible('Played'); if (buttonNo==movieOfTheDay[1]&&b==0) { bonusRoundState= true; // document.getElementById("bonusQuestion").style.display="none"; @@ -1359,7 +1360,7 @@ console.log("day count:" + dayCount); submitBonus(1); } - plausible('Played'); + console.log(textResult); document.getElementById("guessForm").reset(); markCalendar(); @@ -1411,8 +1412,10 @@ autoCompleteJS.input.addEventListener("selection", function (event) { }); function copyToClipboard() { + plausible('Share'); navigator.clipboard.writeText("Horrordle #" + dayCount + "\n"+ textResult).then(() => { shareResult.value = "copied!"; + // Alert the user that the action took place. // Nobody likes hidden stuff being done under the hood!