From e6013eb3322e2cb40f039122081a6c8567b1a639 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 1 Feb 2025 16:55:25 +0100 Subject: [PATCH] nej --- programmieren/spiele/Flappy-Witch/index.html | 316 +++++++------------ 1 file changed, 113 insertions(+), 203 deletions(-) diff --git a/programmieren/spiele/Flappy-Witch/index.html b/programmieren/spiele/Flappy-Witch/index.html index 9fda8a0..af28ac4 100644 --- a/programmieren/spiele/Flappy-Witch/index.html +++ b/programmieren/spiele/Flappy-Witch/index.html @@ -9,6 +9,7 @@ + - -
- -
- -


Creative Crafter

-

Flappy Witch

-
- -
-
-
- -
- + +
+
-

- - +
+ + + - - - -


-
- - -
+


+
+ + +
- - + + // Funktion zum Schließen des Popup-Fensters + function closeSharePopup() { + document.getElementById("shareModal").style.display = "none"; + } + + // Teilen via WhatsApp + function shareViaWhatsApp() { + const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); + const url = 'https://api.whatsapp.com/send?text=' + text; + window.open(url, '_blank'); + } + + // Teilen via Telegram + function shareViaTelegram() { + const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); + const url = 'https://t.me/share/url?url=' + text; + window.open(url, '_blank'); + } + + // Teilen via E-Mail + function shareViaEmail() { + const subject = encodeURIComponent('Flappy Witch'); + const body = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); + window.location.href = 'mailto:?subject=' + subject + '&body=' + body; + } + + // Schließt das Popup bei Klick außerhalb des Inhalts + window.onclick = function(event) { + const modal = document.getElementById('shareModal'); + if (event.target == modal) { + closeSharePopup(); + } + } +