neu
This commit is contained in:
		| @ -1,10 +1,10 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="de"> | ||||
| <html lang="en"> <!-- Changed language to English --> | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|     <title>Creative Crafter</title> | ||||
|     <!-- Ladeanimation --> | ||||
|     <!-- Loading Animation --> | ||||
|     <script type="module" src="https://cdn.jsdelivr.net/npm/ldrs/dist/auto/quantum.js"></script> | ||||
|     <!-- Stylesheet --> | ||||
|     <style> | ||||
| @ -23,7 +23,7 @@ | ||||
|  | ||||
|         h1, h2 { text-align: center; } | ||||
|  | ||||
|         /* Ladeanimation */ | ||||
|         /* Loading Animation */ | ||||
|         .loader-container { | ||||
|             display: none; | ||||
|             justify-content: center; | ||||
| @ -39,7 +39,7 @@ | ||||
|  | ||||
|         .loading .loader-container { display: flex; } | ||||
|  | ||||
|         /* Button-Stile */ | ||||
|         /* Button Styles */ | ||||
|         .button { | ||||
|             --white: #fff; | ||||
|             cursor: pointer; | ||||
| @ -83,7 +83,7 @@ | ||||
|             stroke: #592cd6; | ||||
|             margin-top: -2px; | ||||
|             z-index: 4; | ||||
|             /* Für das Teilen-Icon die Rotation entfernen */ | ||||
|             /* Removed rotation for the share icon */ | ||||
|         } | ||||
|  | ||||
|         .content { | ||||
| @ -152,7 +152,7 @@ | ||||
|             100% { transform: translateY(-70%); opacity: 0; filter: blur(3px); } | ||||
|         } | ||||
|  | ||||
|         /* Modal-Stile */ | ||||
|         /* Modal Styles */ | ||||
|         .modal { | ||||
|             display: none; | ||||
|             position: fixed; | ||||
| @ -208,28 +208,28 @@ | ||||
|     </style> | ||||
| </head> | ||||
| <body> | ||||
|     <!-- Ladeanimation --> | ||||
|     <!-- Loading Animation --> | ||||
|     <div class="loader-container"> | ||||
|         <l-quantum size="90" speed="1.75" color="black"></l-quantum> | ||||
|     </div> | ||||
|  | ||||
|     <h1><img src="/icons/Controller.png" height="150"><br/>Creative Crafter</h1> | ||||
|     <h1><img src="/icons/Controller.png" height="150" alt="Controller Icon"><br/>Creative Crafter</h1> | ||||
|     <h1>Flappy Witch</h1> | ||||
|     <div align='center'> | ||||
|         <img src="/programmieren/spiele/Flappy-Witch/logo.png" width="250"> | ||||
|         <img src="/programming/games/Flappy-Witch/logo.png" width="250" alt="Flappy Witch Logo"> | ||||
|     </div> | ||||
|     <br/> | ||||
|     <div align='center'> | ||||
|         <!-- Spielen-Button --> | ||||
|         <a href="/programmieren/spiele/Flappy-Witch/FlappyWitch.html"> | ||||
|             <img src="/icons/spielen-button.png" width="500"> | ||||
|         <!-- Play Button --> | ||||
|         <a href="/programming/games/Flappy-Witch/FlappyWitch.html"> | ||||
|             <img src="/icons/play-button.png" width="500" alt="Play Button"> | ||||
|         </a> | ||||
|         <br/><br/> | ||||
|         <!-- Neuer Teilen-Button --> | ||||
|         <!-- New Share Button --> | ||||
|         <button class="button" onclick="openSharePopup()"> | ||||
|             <div class="icon-container"> | ||||
|                 <svg viewBox="0 0 24 24" fill="none" class="icon"> | ||||
|                     <!-- Teilen-Icon --> | ||||
|                     <!-- Share Icon --> | ||||
|                     <path d="M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7"></path> | ||||
|                     <polyline points="16 6 12 2 8 6"></polyline> | ||||
|                     <line x1="12" y1="2" x2="12" y2="15"></line> | ||||
| @ -237,84 +237,83 @@ | ||||
|             </div> | ||||
|             <div class="content"> | ||||
|                 <div class="letters"> | ||||
|                     <span data-label="T" style="--i:0;">T</span> | ||||
|                     <span data-label="e" style="--i:1;">e</span> | ||||
|                     <span data-label="i" style="--i:2;">i</span> | ||||
|                     <span data-label="l" style="--i:3;">l</span> | ||||
|                     <span data-label="S" style="--i:0;">S</span> | ||||
|                     <span data-label="h" style="--i:1;">h</span> | ||||
|                     <span data-label="a" style="--i:2;">a</span> | ||||
|                     <span data-label="r" style="--i:3;">r</span> | ||||
|                     <span data-label="e" style="--i:4;">e</span> | ||||
|                     <span data-label="n" style="--i:5;">n</span> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </button> | ||||
|     </div> | ||||
|  | ||||
|     <!-- Popup-Fenster zum Teilen --> | ||||
|     <!-- Share Modal Popup --> | ||||
|     <div id="shareModal" class="modal"> | ||||
|         <div class="modal-content"> | ||||
|             <span class="close" onclick="closeSharePopup()">×</span> | ||||
|             <h2>Teilen über:</h2> | ||||
|             <h2>Share via:</h2> | ||||
|             <div class="social-icons"> | ||||
|                 <a href="#" onclick="shareViaWhatsApp()"> | ||||
|                     <img src="/icons/whatsapp-icon.png" alt="WhatsApp" /> | ||||
|                     <img src="/icons/whatsapp-icon.png" alt="WhatsApp"> | ||||
|                 </a> | ||||
|                 <a href="#" onclick="shareViaTelegram()"> | ||||
|                     <img src="/icons/telegram-icon.png" alt="Telegram" /> | ||||
|                     <img src="/icons/telegram-icon.png" alt="Telegram"> | ||||
|                 </a> | ||||
|                 <a href="#" onclick="shareViaEmail()"> | ||||
|                     <img src="/icons/email-icon.png" alt="E-Mail" /> | ||||
|                     <img src="/icons/email-icon.png" alt="Email"> | ||||
|                 </a> | ||||
|                 <!-- Weitere Sharing-Optionen kannst du hier hinzufügen --> | ||||
|                 <!-- Add more sharing options here --> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
|     <br/><br/><br/> | ||||
|     <div align='center'> | ||||
|         <img src="/programmieren/spiele/Flappy-Witch/FlappyWitch1.png" width="250"> | ||||
|         <img src="/programmieren/spiele/Flappy-Witch/FlappyWitch2.png" width="250"> | ||||
|         <img src="/programming/games/Flappy-Witch/FlappyWitch1.png" width="250" alt="Flappy Witch Screenshot 1"> | ||||
|         <img src="/programming/games/Flappy-Witch/FlappyWitch2.png" width="250" alt="Flappy Witch Screenshot 2"> | ||||
|     </div> | ||||
|  | ||||
|     <!-- JavaScript für Ladeanimation und Teilen-Funktion --> | ||||
|     <!-- JavaScript for Loading Animation and Sharing Functions --> | ||||
|     <script> | ||||
|         // Ladeanimation beim Laden der Seite anzeigen | ||||
|         // Show loading animation when the page is loading | ||||
|         document.body.classList.add('loading'); | ||||
|         // Ladeanimation entfernen, wenn die Seite vollständig geladen ist | ||||
|         // Remove loading animation when the page is fully loaded | ||||
|         window.addEventListener('load', () => { | ||||
|             document.body.classList.remove('loading'); | ||||
|         }); | ||||
|  | ||||
|         // Funktion zum Öffnen des Popup-Fensters | ||||
|         // Function to open the share popup | ||||
|         function openSharePopup() { | ||||
|             document.getElementById("shareModal").style.display = "block"; | ||||
|         } | ||||
|  | ||||
|         // Funktion zum Schließen des Popup-Fensters | ||||
|         // Function to close the share popup | ||||
|         function closeSharePopup() { | ||||
|             document.getElementById("shareModal").style.display = "none"; | ||||
|         } | ||||
|  | ||||
|         // Teilen via WhatsApp | ||||
|         // Share via WhatsApp | ||||
|         function shareViaWhatsApp() { | ||||
|             const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://www.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); | ||||
|             const text = encodeURIComponent('Check out this fantastic game! https://www.creative-crafter.de/programming/games/Flappy-Witch/'); | ||||
|             const url = 'https://api.whatsapp.com/send?text=' + text; | ||||
|             window.open(url, '_blank'); | ||||
|         } | ||||
|  | ||||
|         // Teilen via Telegram | ||||
|         // Share via Telegram | ||||
|         function shareViaTelegram() { | ||||
|             const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://www.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); | ||||
|             const text = encodeURIComponent('Check out this fantastic game! https://www.creative-crafter.de/programming/games/Flappy-Witch/'); | ||||
|             const url = 'https://t.me/share/url?url=' + text; | ||||
|             window.open(url, '_blank'); | ||||
|         } | ||||
|  | ||||
|         // Teilen via E-Mail | ||||
|         // Share via Email | ||||
|         function shareViaEmail() { | ||||
|             const subject = encodeURIComponent('Flappy Witch'); | ||||
|             const body = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://www.creative-crafter.de/programmieren/spiele/Flappy-Witch/'); | ||||
|             const body = encodeURIComponent('Check out this fantastic game! https://www.creative-crafter.de/programming/games/Flappy-Witch/'); | ||||
|             window.location.href = 'mailto:?subject=' + subject + '&body=' + body; | ||||
|         } | ||||
|  | ||||
|         // Schließt das Popup bei Klick außerhalb des Inhalts | ||||
|         // Close the popup when clicking outside of it | ||||
|         window.onclick = function(event) { | ||||
|             const modal = document.getElementById('shareModal'); | ||||
|             if (event.target == modal) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 matt
					matt