fixed share button
This commit is contained in:
parent
2a3df27b03
commit
7112a6bad8
@ -284,7 +284,7 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<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="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>
|
</body>
|
||||||
|
|
||||||
|
5
main.js
5
main.js
@ -1231,6 +1231,7 @@ window.onload = deathOftheDay();
|
|||||||
}
|
}
|
||||||
|
|
||||||
function submitBonus(b=0){
|
function submitBonus(b=0){
|
||||||
|
plausible('Played');
|
||||||
if (buttonNo==movieOfTheDay[1]&&b==0) {
|
if (buttonNo==movieOfTheDay[1]&&b==0) {
|
||||||
bonusRoundState= true;
|
bonusRoundState= true;
|
||||||
// document.getElementById("bonusQuestion").style.display="none";
|
// document.getElementById("bonusQuestion").style.display="none";
|
||||||
@ -1359,7 +1360,7 @@ console.log("day count:" + dayCount);
|
|||||||
submitBonus(1);
|
submitBonus(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
plausible('Played');
|
|
||||||
console.log(textResult);
|
console.log(textResult);
|
||||||
document.getElementById("guessForm").reset();
|
document.getElementById("guessForm").reset();
|
||||||
markCalendar();
|
markCalendar();
|
||||||
@ -1411,8 +1412,10 @@ autoCompleteJS.input.addEventListener("selection", function (event) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function copyToClipboard() {
|
function copyToClipboard() {
|
||||||
|
plausible('Share');
|
||||||
navigator.clipboard.writeText("Horrordle #" + dayCount + "\n"+ textResult).then(() => {
|
navigator.clipboard.writeText("Horrordle #" + dayCount + "\n"+ textResult).then(() => {
|
||||||
shareResult.value = "copied!";
|
shareResult.value = "copied!";
|
||||||
|
|
||||||
// Alert the user that the action took place.
|
// Alert the user that the action took place.
|
||||||
// Nobody likes hidden stuff being done under the hood!
|
// Nobody likes hidden stuff being done under the hood!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user