Skip to content

Commit

Permalink
feat: load current tajweed on tajweed generator
Browse files Browse the repository at this point in the history
  • Loading branch information
axmad386 committed Oct 8, 2021
1 parent a9c2a11 commit fbc7692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/tajweed-generator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
surahDetail = (await import(`../db/kemenag/surah/${e.target.value}.json`)).default;
listAya = surahDetail.map((s) => s.aya_number);
selectedAya = surahDetail[0].aya_text;
tajweedList = surahDetail[0].tajweed;
};
const renderAya = (e) => {
selectedAya = surahDetail[e.target.value - 1].aya_text;
tajweedList = surahDetail[e.target.value - 1].tajweed;
};
const track = (i) => {
if (tracking) {
Expand Down

0 comments on commit fbc7692

Please sign in to comment.