offers deploy and redisign

This commit is contained in:
2026-03-23 09:23:44 +01:00
parent 9bf1377dd7
commit 6141442f1c
12 changed files with 181 additions and 121 deletions

View File

@@ -97,7 +97,7 @@ document.addEventListener("DOMContentLoaded", function() {
initSoundVisualization();
// Use absolute path from site root
const API_ENDPOINT = '/scripts/add/send.php';
const API_ENDPOINT = window.WEBHOOK_URL || '/scripts/add/send.php';
const isLocalFile = window.location.protocol === 'file:';
// ==========================================
@@ -180,7 +180,7 @@ document.addEventListener("DOMContentLoaded", function() {
e.preventDefault();
// Show desktop fallback message
const phoneNumber = '+493021927825';
const phoneNumber = '+49000000000';
const message = `Bald verfügbar`;
// Create a custom modal instead of alert
@@ -311,10 +311,8 @@ document.addEventListener("DOMContentLoaded", function() {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(formData)
});
const result = await response.json();
if (!result.success) {
alert('Fehler beim Senden: ' + (result.message || 'Unbekannter Fehler'));
if (!response.ok) {
alert('Fehler beim Senden. Bitte versuchen Sie es erneut.');
return;
}
} catch (error) {