offers deploy and redisign
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user