Merge branch 'main' of gitea.eom.dev:Gaming/the-button
This commit is contained in:
commit
eb6f6b3f3d
+1
-1
@@ -247,7 +247,7 @@ $("the-button").addEventListener("click", async () => {
|
|||||||
try {
|
try {
|
||||||
const r = await api("POST", "/api/press");
|
const r = await api("POST", "/api/press");
|
||||||
game.deadline = r.deadline;
|
game.deadline = r.deadline;
|
||||||
currentShareText = `I pushed the button at ${formatPrecise(r.press.remaining_ms)}.`;
|
currentShareText = `I pushed #TheButton at ${formatPrecise(r.press.remaining_ms)}.`;
|
||||||
$("press-result").textContent =
|
$("press-result").textContent =
|
||||||
`You pressed in the ${r.press.zone} zone with ${formatPrecise(r.press.remaining_ms)} remaining: +${r.press.points} points`;
|
`You pressed in the ${r.press.zone} zone with ${formatPrecise(r.press.remaining_ms)} remaining: +${r.press.points} points`;
|
||||||
updateShareLinks();
|
updateShareLinks();
|
||||||
|
|||||||
@@ -112,6 +112,7 @@
|
|||||||
|
|
||||||
<section id="donate">
|
<section id="donate">
|
||||||
<h2>Donate</h2>
|
<h2>Donate</h2>
|
||||||
|
<p>Help support my <a href="https://gitea.eom.dev/">free and open source projects</a> by making a donation through Stripe:</p>
|
||||||
<script async
|
<script async
|
||||||
src="https://js.stripe.com/v3/buy-button.js">
|
src="https://js.stripe.com/v3/buy-button.js">
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user