diff --git a/css/app.css b/css/app.css index 1bedff31..6d0a921c 100644 --- a/css/app.css +++ b/css/app.css @@ -18,6 +18,11 @@ body::-webkit-scrollbar { color: #ffffff !important; } +.font-arabic { + font-family: 'Noto Naskh Arabic', serif !important; + color: #ffffff !important; +} + .img-crop { width: 14rem; height: 14rem; diff --git a/index.html b/index.html index 4abb8c0b..f5896fed 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - + @@ -35,6 +35,7 @@ + @@ -119,6 +120,7 @@

Rabu, 15 Maret 2023

+

بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ

Assalamualaikum Warahmatullahi Wabarakatuh

@@ -404,7 +406,7 @@

Ucapan & Doa
  • - 1 + 1
  • diff --git a/js/app.js b/js/app.js index de29b745..546a38b3 100644 --- a/js/app.js +++ b/js/app.js @@ -53,7 +53,7 @@ const request = (method, path) => { return fetch(url + path, req) .then((res) => res.json()) .then((res) => { - if (res.error.length == 0) { + if (res.error == null || res.error.length == 0) { return res; } @@ -934,12 +934,12 @@ const comment = (() => { alert(`Terdapat kesalahan: ${err}`); }); - button.innerText = tmp; - button.disabled = false; - if (isSuccess) { ucapan(); } + + button.innerText = tmp; + button.disabled = false; }; // OK