fixed share button

This commit is contained in:
gocivici 2022-10-11 16:55:04 +03:00
parent 2a3df27b03
commit 7112a6bad8
2 changed files with 5 additions and 2 deletions

View File

@ -284,7 +284,7 @@
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
<script src="main.js?4"></script>
<script src="main.js?5"></script>
</body>

View File

@ -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!