Skip to content

Commit

Permalink
fix: unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Aug 17, 2024
1 parent e45df03 commit 69fbc42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h2 class="font-esthetic my-4" style="font-size: 3rem;">Wahyu &amp; Riski</h2>
<section class="dark-section bg-black" id="mempelai">

<div class="text-center">
<h2 class="font-arabic py-4 px-2" style="font-size: 2rem">بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ</h2>
<h2 class="font-arabic py-4 px-2" style="font-size: 2rem" id="basmalah" data-text="بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ"></h2>

<!-- Love animation -->
<div class="position-relative">
Expand Down Expand Up @@ -528,7 +528,7 @@ <h2 class="font-esthetic text-center mb-3" style="font-size: 3rem;">Ucapan &amp;
</p>

<h2 class="font-esthetic">Wassalamualaikum Warahmatullahi Wabarakatuh</h2>
<h2 class="font-arabic pt-4 px-2" style="font-size: 2rem;">اَلْحَمْدُ لِلّٰهِ رَبِّ الْعٰلَمِيْنَۙ</h2>
<h2 class="font-arabic pt-4 px-2" style="font-size: 2rem;" id="hamdalah" data-text="اَلْحَمْدُ لِلّٰهِ رَبِّ الْعٰلَمِيْنَۙ"></h2>

<hr class="mt-3 mb-2">

Expand Down
6 changes: 6 additions & 0 deletions js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,14 @@ export const util = (() => {
return uuids;
};

const convert = (el) => {
el.innerText = el.getAttribute('data-text').normalize('NFC');
};

const init = () => {
countDownDate();
convert(document.getElementById('basmalah'));
convert(document.getElementById('hamdalah'));

const session = storage('session');
if (session.get('token')?.split('.').length === 3) {
Expand Down

0 comments on commit 69fbc42

Please sign in to comment.