1
0

test to www

This commit is contained in:
matt 2025-02-05 16:27:49 +01:00
parent 63994cabcf
commit a3048f391a
8 changed files with 62 additions and 62 deletions

View File

@ -325,27 +325,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/link-collection/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -353,16 +353,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Klick the Witch'); const subject = encodeURIComponent('Klick the Witch');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/klick-the-witch/'); const body = encodeURIComponent('Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/link-collection/klick-the-witch/'; const text = 'Check out this fantastic website!https://www.creative-crafter.de/link-collection/br0tkasten/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }
@ -375,4 +375,4 @@
} }
</script> </script>
</body> </body>
</html> </html>

View File

@ -335,14 +335,14 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/lego-tiny-plants/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/link-collection/lego-tiny-plants/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/lego-tiny-plants/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/link-collection/lego-tiny-plants/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -355,7 +355,7 @@
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/link-collection/lego-tiny-plants/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/link-collection/lego-tiny-plants/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -363,16 +363,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Klick the Witch'); const subject = encodeURIComponent('Klick the Witch');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/link-collection/lego-tiny-plants/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/link-collection/lego-tiny-plants/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/link-collection/lego-tiny-plants/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/link-collection/lego-tiny-plants/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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 text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,16 +360,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Klick the 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/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/capybara-jump-and-run/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,16 +360,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Capybara Jump and Run'); const subject = encodeURIComponent('Capybara Jump and Run');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/capybara-jump-and-run/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/fruit-or-no/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/fruit-or-no/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/fruit-or-no/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/fruit-or-no/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,16 +360,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Fruit or No'); const subject = encodeURIComponent('Fruit or No');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/fruit-or-no/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/fruit-or-no/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/fruit-or-no/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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 text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,16 +360,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Klick the 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/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/klick-the-witch/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/klick-the-witch/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/snake/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/snake/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/snake/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/snake/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,12 +360,12 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Snake'); const subject = encodeURIComponent('Snake');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/snake/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/snake/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/snake/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text has been copied to the clipboard!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {

View File

@ -332,27 +332,27 @@
// Teilen via WhatsApp // Teilen via WhatsApp
function shareViaWhatsApp() { function shareViaWhatsApp() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/sweets-for-animals/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/');
const url = 'https://api.whatsapp.com/send?text=' + text; const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
// Teilen via Telegram // Teilen via Telegram
function shareViaTelegram() { function shareViaTelegram() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/sweets-for-animals/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/');
const url = 'https://t.me/share/url?url=' + text; const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const text = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/sweets-for-animals/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text; const url = 'https://pinterest.com/pin/create/button/?url=' + text;
window.open(url, '_blank'); window.open(url, '_blank');
} }
function shareViaPinterest() { function shareViaPinterest() {
const media = encodeURIComponent('URL_ZU_DEINEM_BILD'); // Ersetze dies durch den tatsächlichen Bild-Link 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/sweets-for-animals/'); const text = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/');
const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media; const url = 'https://pinterest.com/pin/create/button/?url=' + text + '&media=' + media;
window.open(url, '_blank'); window.open(url, '_blank');
} }
@ -360,16 +360,16 @@
// Teilen via E-Mail // Teilen via E-Mail
function shareViaEmail() { function shareViaEmail() {
const subject = encodeURIComponent('Sweets for Animals'); const subject = encodeURIComponent('Sweets for Animals');
const body = encodeURIComponent('Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/sweets-for-animals/'); const body = encodeURIComponent('Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body; window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
} }
function copyToClipboard() { function copyToClipboard() {
const text = 'Check out this fantastic game!https://test.creative-crafter.de/programmieren/spiele/sweets-for-animals/'; const text = 'Check out this fantastic game!https://www.creative-crafter.de/programmieren/spiele/sweets-for-animals/';
navigator.clipboard.writeText(text).then(function() { navigator.clipboard.writeText(text).then(function() {
alert('Text wurde in die Zwischenablage kopiert!'); alert('Text has been copied to the clipboard!');
}, function(err) { }, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err); alert('Error copying to clipboard!: ', err);
}); });
} }