Clicker: Fix für Teilen
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Clicker Game - PonyWave Tools</title>
|
||||
<meta property="og:title" content="Clicker Game | PonyWave Tools">
|
||||
<meta property="og:description" content="Ein einfaches Clicker-Spiel mit Upgrades und Achievements">
|
||||
<meta property="og:description" content="Ein einfaches Clicker-Spiel mit Upgrades und Erfolge">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://tools.ponywave.de/clicker">
|
||||
<meta property="og:image" content="https://tools.ponywave.de/clicker/icon.png">
|
||||
@@ -23,7 +23,7 @@
|
||||
<button class="tab active" onclick="switchTab('game')">Spiel</button>
|
||||
<button class="tab" onclick="switchTab('stats')">Statistiken</button>
|
||||
<button class="tab" onclick="switchTab('upgrades')">Upgrades</button>
|
||||
<button class="tab" onclick="switchTab('achievements')">Achievements</button>
|
||||
<button class="tab" onclick="switchTab('achievements')">Erfolge</button>
|
||||
<button class="tab" onclick="switchTab('settings')">Einstellungen</button>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -704,7 +704,7 @@ function checkAchievements() {
|
||||
achievement.earned = true;
|
||||
|
||||
if (notificationsOn) {
|
||||
showNotification(`Achievement freigeschaltet: ${achievement.name}!`);
|
||||
showNotification(`Erfolg freigeschaltet: ${achievement.name}!`);
|
||||
}
|
||||
|
||||
renderAchievements();
|
||||
@@ -979,10 +979,10 @@ function generateShareTexts() {
|
||||
const url = 'https://tools.ponywave.de/clicker';
|
||||
|
||||
// Variante 1: Klicks fokussiert
|
||||
shareTexts[1] = `Ich habe beim PonyWave Clicker Game ${clicks} mal in ${timeText} geklickt! Wie viel schaffst du?\n\n#ClickerGame #PonyWave\n${url}`;
|
||||
shareTexts[1] = `Ich habe beim PonyWave Clicker Game ${clicks} mal in ${timeText} geklickt! Wie viel schaffst du?\n\n#ClickerGame #PonyWave`;
|
||||
|
||||
// Variante 2: Punkte fokussiert
|
||||
shareTexts[2] = `Ich habe ${points} Punkte im PonyWave Clicker Game erreicht! 🎮 Beat meinen Score!\n\n#ClickerGame #PonyWave\n${url}`;
|
||||
shareTexts[2] = `Ich habe ${points} Punkte im PonyWave Clicker Game erreicht! 🎮 Schlag meinen Score!\n\n#ClickerGame #PonyWave`;
|
||||
|
||||
// Variante 3: Vollständige Stats
|
||||
let variant3 = `PonyWave Clicker: ${clicks} Klicks | ${points} Punkte`;
|
||||
@@ -990,9 +990,9 @@ function generateShareTexts() {
|
||||
variant3 += ` | Prestige Level ${prestigeLevel}`;
|
||||
}
|
||||
if (earnedAchievements > 0) {
|
||||
variant3 += ` | ${earnedAchievements} Achievements`;
|
||||
variant3 += ` | ${earnedAchievements} Erfolge`;
|
||||
}
|
||||
variant3 += ` 🏆\n\n#ClickerGame #PonyWave\n${url}`;
|
||||
variant3 += ` 🏆\n\n#ClickerGame #PonyWave`;
|
||||
shareTexts[3] = variant3;
|
||||
}
|
||||
|
||||
@@ -1027,9 +1027,11 @@ function selectShareVariant(variantNum) {
|
||||
function copyShareText() {
|
||||
const textarea = document.getElementById('shareText');
|
||||
const text = textarea.value;
|
||||
const url = 'https://tools.ponywave.de/clicker';
|
||||
const fullText = text + '\n' + url;
|
||||
|
||||
// Copy to clipboard
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
navigator.clipboard.writeText(fullText).then(() => {
|
||||
// Show feedback
|
||||
const feedback = document.getElementById('copyFeedback');
|
||||
feedback.classList.add('show');
|
||||
@@ -1050,16 +1052,16 @@ function shareToSocial(platform) {
|
||||
|
||||
switch (platform) {
|
||||
case 'twitter':
|
||||
shareUrl = `https://x.com/intent/post?text=${encodeURIComponent(text)}`;
|
||||
shareUrl = `https://x.com/intent/post?text=${encodeURIComponent(text + '\n' + url)}`;
|
||||
break;
|
||||
case 'whatsapp':
|
||||
shareUrl = `https://wa.me/?text=${encodeURIComponent(text)}`;
|
||||
shareUrl = `https://wa.me/?text=${encodeURIComponent(text + '\n' + url)}`;
|
||||
break;
|
||||
case 'telegram':
|
||||
shareUrl = `https://t.me/share/url?url=${encodeURIComponent(url)}&text=${encodeURIComponent(text)}`;
|
||||
break;
|
||||
case 'facebook':
|
||||
shareUrl = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}"e=${encodeURIComponent(text)}`;
|
||||
shareUrl = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
</a>
|
||||
<a href="https://tools.ponywave.de/clicker" class="tool-bubble">
|
||||
<h2 class="tool-title">Clicker Game</h2>
|
||||
<p class="tool-description">Ein Clicker-Spiel mit Upgrades, Achievements und Prestige-System</p>
|
||||
<p class="tool-description">Ein Clicker-Spiel mit Upgrades, Erfolge und Prestige-System</p>
|
||||
</a>
|
||||
<a href="https://tools.ponywave.de/emoji_jump" class="tool-bubble">
|
||||
<h2 class="tool-title">Emoji Doodle Jump</h2>
|
||||
|
||||
Reference in New Issue
Block a user