Skip to content

Commit

Permalink
refactor: guest
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Jan 20, 2025
1 parent d9ac6e2 commit 7d599e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ <h2 class="font-esthetic mb-4" style="font-size: 2.5rem;">Wahyu &amp; Riski</h2>
<div class="progress" role="progressbar" style="height: 0.5rem;">
<div class="progress-bar" id="progress-bar" style="width: 0%"></div>
</div>
<small class="mt-1 text-light" id="progress-info" style="display: none;">Booting Application...</small>
<small class="mt-1 text-light" id="progress-info" style="display: none;">Booting application...</small>
<noscript>
<small class="mt-1 text-danger">Sorry, this invitation requires javascript to work</small>
</noscript>
Expand Down
2 changes: 1 addition & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { admin } from './app/admin/admin.js';

document.addEventListener('DOMContentLoaded', async () => {
document.addEventListener('DOMContentLoaded', () => {
window.undangan = admin.init();
});
6 changes: 4 additions & 2 deletions js/app/guest/guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@ export const guest = (() => {
session.init();
offline.init();
progress.init();
window.AOS.init();

normalize();
countDownDate();
information = storage('information');
document.addEventListener('progressDone', showGuestName);
document.addEventListener('progressDone', () => {
showGuestName();
window.AOS.init();
});

if (session.isAdmin()) {
storage('user').clear();
Expand Down
2 changes: 1 addition & 1 deletion js/guest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { guest } from './app/guest/guest.js';

document.addEventListener('DOMContentLoaded', async () => {
document.addEventListener('DOMContentLoaded', () => {
window.undangan = guest.init();
});

0 comments on commit 7d599e7

Please sign in to comment.