Skip to content

Commit

Permalink
feat: new api respond
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Oct 22, 2023
1 parent e121c2e commit ecc59e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- Preconnect CDN -->
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="anonymous">
<link rel="preconnect" href="https://gstatic.com" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<!-- Dependencies CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css" integrity="sha256-WAgYcAck1C1/zEl5sBl5cfyhxtLgKGdpI3oKyJffVRI=" crossorigin="anonymous">
Expand All @@ -35,6 +35,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css" integrity="sha256-GqiEX9BuR1rv5zPU5Vs2qS/NSHl1BJyBcjQYJ6ycwD4=" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sacramento&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic&display=swap">

<!-- Custom CSS -->
<link rel="stylesheet" href="./css/app.css">
Expand Down Expand Up @@ -119,6 +120,7 @@ <h4>Rabu, 15 Maret 2023</h4>
<section class="dark-section" id="mempelai">

<div class="text-center">
<h1 class="font-arabic py-4 px-2" style="font-size: 2rem">بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ</h1>
<h1 class="font-esthetic py-4 px-2" style="font-size: 2rem">Assalamualaikum Warahmatullahi Wabarakatuh</h1>

<p class="pb-3 px-3">
Expand Down Expand Up @@ -404,7 +406,7 @@ <h1 class="font-esthetic text-center mb-3" style="font-size: 3rem;">Ucapan & Doa
</button>
</li>
<li class="page-item disabled">
<span class="page-link" id="page">1</span>
<span class="page-link text-light" id="page">1</span>
</li>
<li class="page-item" id="next">
<button class="page-link" onclick="pagination.next(this)" aria-label="Next">
Expand Down Expand Up @@ -433,6 +435,8 @@ <h1 class="font-esthetic text-center mb-3" style="font-size: 3rem;">Ucapan & Doa
</p>

<h1 class="font-esthetic" data-aos="fade-up" data-aos-duration="2000">Wassalamualaikum Warahmatullahi Wabarakatuh</h1>
<h1 class="font-arabic py-4 px-2" data-aos="fade-up" data-aos-duration="2000" style="font-size: 2rem">الحَمْدُ لله رَبِّ العَالَمِيْن</h1>

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

<div class="row align-items-center justify-content-between flex-column flex-sm-row">
Expand Down Expand Up @@ -485,7 +489,7 @@ <h1 class="font-esthetic my-4" style="font-size: 2.5rem;">Wahyu & Riski</h1>
<div class="progress" role="progressbar" style="height: 0.5rem;">
<div class="progress-bar" id="bar" style="width: 0%"></div>
</div>
<small class="mt-1" id="progress-info">Loading asset</small>
<small class="mt-1 text-light" id="progress-info">Loading asset</small>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ecc59e1

Please sign in to comment.