1
0

test to www

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

View File

@ -335,14 +335,14 @@
// Teilen via WhatsApp
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;
window.open(url, '_blank');
}
// Teilen via Telegram
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;
window.open(url, '_blank');
}
@ -355,7 +355,7 @@
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/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;
window.open(url, '_blank');
}
@ -363,16 +363,16 @@
// Teilen via E-Mail
function shareViaEmail() {
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;
}
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() {
alert('Text wurde in die Zwischenablage kopiert!');
alert('Text has been copied to the clipboard!');
}, function(err) {
alert('Fehler beim Kopieren in die Zwischenablage: ', err);
alert('Error copying to clipboard!: ', err);
});
}