Compare commits

...

2 commits

Author SHA1 Message Date
bettina
1e34d056dd change text-color for notification
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m10s
2025-01-07 09:14:29 +01:00
bettina
bdad95b406 change text-color for notification 2025-01-07 09:14:11 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ function handleSubmit(e) {
if (data.success) { if (data.success) {
submitButton.style.display = 'none' submitButton.style.display = 'none'
notification.innerHTML = `<span>${currentMessages.thankyou}</span>` notification.innerHTML = `<span>${currentMessages.thankyou}</span>`
notification.className = 'bg-green-500 text-white px-4 py-2 rounded block' notification.className = 'bg-green-500 text-black px-4 py-2 rounded block'
} else { } else {
submitButton.style.display = 'none' submitButton.style.display = 'none'
notification.textContent = data.message notification.textContent = data.message

View file

@ -168,7 +168,7 @@ bestellformular = true
{{< captcha >}} {{< captcha >}}
<button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha" >Kostenpflichtig bestellen</button> <button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha" >Kostenpflichtig bestellen</button>
<p><div id="notification" class="bg-blue-500 text-black rounded invisible opacity-0 hidden">Notification</div></p> <p><div id="notification" class="bg-blue-500 text-white rounded invisible opacity-0 hidden">Notification</div></p>
</center> </center>
</form> </form>