Skip to content

Commit

Permalink
feat: add title tajweed class and fix some tajweed rule
Browse files Browse the repository at this point in the history
  • Loading branch information
axmad386 committed Oct 8, 2021
1 parent 2e8a3d4 commit a9c2a11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/db/kemenag/surah/2.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
"translation_aya_text": "Merekalah yang mendapat petunjuk dari Tuhannya, dan mereka itulah orang-orang yang beruntung.",
"tajweed": [
{
"class": "madd-4-5",
"class": "madd-6",
"start": 3,
"end": 6
"end": 8
},
{
"class": "idgham-bighunnah",
Expand All @@ -133,9 +133,9 @@
"end": 32
},
{
"class": "madd-4-5",
"class": "madd-6",
"start": 48,
"end": 50
"end": 52
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[source]/surah/[surah_id].svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
{#if aya.sura_id != 1 || aya.aya_number != 1}
<div class="font-arab py-2 mb-3 border-b text-xl">
{#each aya.tajweed as tajweed}
<i class={tajweed.class}>
<i class={tajweed.class} title={tajweed.class}>
{aya.aya_text.slice(tajweed.start, tajweed.end)}
</i>
{/each}
Expand Down

0 comments on commit a9c2a11

Please sign in to comment.