neu
This commit is contained in:
		| @ -285,13 +285,20 @@ | ||||
|             <h2>Share with:</h2> | ||||
|             <div class="social-icons"> | ||||
|                 <a href="#" onclick="shareViaWhatsApp()"> | ||||
|                     <img src="/icons/whatsapp-icon.png" alt="WhatsApp" /> | ||||
|                     <img src="/icons/whatsapp.svg" alt="WhatsApp" /> | ||||
|                 </a> | ||||
|                 <a href="#" onclick="shareViaPinterest()"> | ||||
|                     <img src="/icons/pinterest.svg" /> | ||||
|                 </a> | ||||
|                 <a href="#" onclick="shareViaTelegram()"> | ||||
|                     <img src="/icons/telegram-icon.png" alt="Telegram" /> | ||||
|                     <img src="/icons/telegram.svg" alt="Telegram" /> | ||||
|                 </a> | ||||
|                 <a href="#" onclick="shareViaEmail()"> | ||||
|                     <img src="/icons/email-icon.png" alt="E-Mail" /> | ||||
|                     <img src="/icons/email.svg" alt="E-Mail" /> | ||||
|                 </a> | ||||
|                 <!-- Kopieren --> | ||||
|                 <a href="#" onclick="copyToClipboard()"> | ||||
|                     <img src="/icons/copy.svg" /> | ||||
|                 </a> | ||||
|                 <!-- Weitere Sharing-Optionen kannst du hier hinzufügen --> | ||||
|             </div> | ||||
| @ -325,24 +332,46 @@ | ||||
|  | ||||
|         // Teilen via WhatsApp | ||||
|         function shareViaWhatsApp() { | ||||
|             const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); | ||||
|             const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-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 text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); | ||||
|             const url = 'https://t.me/share/url?url=' + text; | ||||
|             window.open(url, '_blank'); | ||||
|         } | ||||
|  | ||||
|          | ||||
|         function shareViaPinterest() { | ||||
|             const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); | ||||
|             const url = 'https://pinterest.com/pin/create/button/?url=' + text; | ||||
|             window.open(url, '_blank'); | ||||
|         } | ||||
|          | ||||
|         function shareViaPinterest() { | ||||
|             const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link | ||||
|             const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); | ||||
|             const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; | ||||
|             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/'); | ||||
|             const subject = encodeURIComponent('Klick the Witch'); | ||||
|             const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); | ||||
|             window.location.href = 'mailto:?subject=' + subject + '&body=' + body; | ||||
|         } | ||||
|          | ||||
|         function copyToClipboard() { | ||||
|             const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'; | ||||
|             navigator.clipboard.writeText(text).then(function() { | ||||
|                 alert('Text wurde in die Zwischenablage kopiert!'); | ||||
|             }, function(err) { | ||||
|                 alert('Fehler beim Kopieren in die Zwischenablage: ', err); | ||||
|             }); | ||||
|         } | ||||
|  | ||||
|         // Schließt das Popup bei Klick außerhalb des Inhalts | ||||
|         window.onclick = function(event) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 matt
					matt