azri 1 год назад
Родитель
Сommit
120593e84c
2 измененных файлов: 7 добавлений и 2 удалений
  1. 5
    0
      resources/js/app.js
  2. 2
    2
      resources/views/components/navbar.blade.php

+ 5
- 0
resources/js/app.js Просмотреть файл

11
     reset() // reset everrything to ensure smooth
11
     reset() // reset everrything to ensure smooth
12
     sessionStorage.setItem("initial-load", "true"); // will be used by click event
12
     sessionStorage.setItem("initial-load", "true"); // will be used by click event
13
 
13
 
14
+    let rsvpBtn = document.getElementById("rsvp-button");
15
+    rsvpBtn.addEventListener('click', function(){
16
+        this.classList.remove("animate__flash");
17
+    })
18
+
14
 });
19
 });
15
 
20
 
16
 
21
 

+ 2
- 2
resources/views/components/navbar.blade.php Просмотреть файл

1
 <div class="fixed bottom-0 left-0 w-full bg-navbarcolor shadow-lg rounded-t-xl">
1
 <div class="fixed bottom-0 left-0 w-full bg-navbarcolor shadow-lg rounded-t-xl">
2
     <div class="flex justify-around py-4">
2
     <div class="flex justify-around py-4">
3
-        <a onclick="rsvp.showModal()" class="text-babyblue text-xl">
3
+        <a id="rsvp-button" onclick="rsvp.showModal()" class="text-babyblue text-xl animate__animated animate__flash animate__infinite animate__delay-4s">
4
             <i class="fa-solid fa-envelope-open-text"></i>
4
             <i class="fa-solid fa-envelope-open-text"></i>
5
         </a>
5
         </a>
6
         <a onclick="emoney.showModal()" class="text-babyblue text-xl">
6
         <a onclick="emoney.showModal()" class="text-babyblue text-xl">
21
     @include('modals.contact-modal')
21
     @include('modals.contact-modal')
22
     @include('modals.location-modal')
22
     @include('modals.location-modal')
23
     @include('modals.calendar-modal')
23
     @include('modals.calendar-modal')
24
-</div>
24
+</div>

Загрузка…
Отмена
Сохранить