From 6cbedc321a7cec3958f5409c9357193d3c1b3a17 Mon Sep 17 00:00:00 2001 From: noureddin Date: Thu, 25 Jul 2024 01:58:36 +0200 Subject: [PATCH] support previewing ayat before the quiz; fixes now you can preview a recitation before being quizzed on it, or even during the quizzing (which would erase your progress as you'll have to restart all over again). data-related fixes: - remove tajweed marks -- no tajweed color support yet. - fix three missing vowel marks in the Uthmani text. - remove the space after alef+fatha+waw+fatha. see: https://github.com/aliftype/quran-data/issues/17 improvements: - put basmala centered on a line by its own, in the preview or the quiz. - force a line break between the end of sura 8 and the start of sura 9, in place of the non-existent basmala. styling: - improve qari-selector & teacher-option styling - use KacstOne for the UI, and update the relevant styles. - make line spacing a bit larger. - make basmala font-size adapt to very narrow screens (< 300px). - make legend adapt to very narrow screens. other fixes: - fix goatcounter script-adding script (messed up in `ef8f3e7` commit). - separate .logic.js into general .logic.js and specific .quran.js. - remove unused code in .z.js - fix an error after a "WAIT" after the game-end. --- .gc.js | 2 +- .index.html | 20 +++++--- .logic.js | 115 ++++++++++++++++++------------------------ .process.pl | 11 +++- .quran.js | 102 +++++++++++++++++++++++++++++++++++++ .selectors.js | 21 ++++++-- .style.css | 95 ++++++++++++++++++++++++---------- .z.js | 55 +------------------- KacstOne-subset.woff2 | Bin 0 -> 12748 bytes index.html | 2 +- res/u0.lzma | Bin 0 -> 28351 bytes res/u1.lzma | Bin 0 -> 28862 bytes res/u2.lzma | Bin 0 -> 27700 bytes res/u3.lzma | Bin 0 -> 30370 bytes res/u4.lzma | Bin 0 -> 31857 bytes res/u5.lzma | Bin 0 -> 31456 bytes res/u6.lzma | Bin 0 -> 32313 bytes res/u7.lzma | Bin 0 -> 33559 bytes res/uthm0.lzma | Bin 30122 -> 0 bytes res/uthm1.lzma | Bin 30626 -> 0 bytes res/uthm2.lzma | Bin 29394 -> 0 bytes res/uthm3.lzma | Bin 32392 -> 0 bytes res/uthm4.lzma | Bin 33817 -> 0 bytes res/uthm5.lzma | Bin 33530 -> 0 bytes res/uthm6.lzma | Bin 34459 -> 0 bytes res/uthm7.lzma | Bin 35893 -> 0 bytes 26 files changed, 262 insertions(+), 161 deletions(-) create mode 100644 .quran.js create mode 100644 KacstOne-subset.woff2 create mode 100644 res/u0.lzma create mode 100644 res/u1.lzma create mode 100644 res/u2.lzma create mode 100644 res/u3.lzma create mode 100644 res/u4.lzma create mode 100644 res/u5.lzma create mode 100644 res/u6.lzma create mode 100644 res/u7.lzma delete mode 100644 res/uthm0.lzma delete mode 100644 res/uthm1.lzma delete mode 100644 res/uthm2.lzma delete mode 100644 res/uthm3.lzma delete mode 100644 res/uthm4.lzma delete mode 100644 res/uthm5.lzma delete mode 100644 res/uthm6.lzma delete mode 100644 res/uthm7.lzma diff --git a/.gc.js b/.gc.js index f44131d..5297a37 100644 --- a/.gc.js +++ b/.gc.js @@ -1,3 +1,3 @@ window.goatcounter = { path: location.href, allow_frame: true } // privacy-friendly statistics, no tracking of personal data, no need for GDPR consent; see goatcounter.com -document.body.append(make_elem('script', { data: { goatcounter: 'https://ihkam.goatcounter.com/count' }, async: true, src: '//gc.zgo.at/count.js' })) +document.body.append(make_elem('script', { Dataset: { goatcounter: 'https://ihkam.goatcounter.com/count' }, async: true, src: '//gc.zgo.at/count.js' })) diff --git a/.index.html b/.index.html index 8ff2e26..d8ad0f3 100644 --- a/.index.html +++ b/.index.html @@ -10,8 +10,8 @@
-
- +
+
  @@ -26,19 +26,23 @@
-
+
- +
+ + +
-