-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add search functionality + many small fixes
data-related changes: - use lzma instead of gzip, b/c it provides way better compression. and merge all ayat parts into one (one imlaai & one uthmani). use `-1e`, as it's the lowest level that provides the highest possible compression for both of these files. - remove the space after alef+fatha+waw+fatha in the data itself not code. see: aliftype/quran-data#17 interactivity fixes: - remove the hash params when clicking "New". hash params are most likely introduced by the app itself not the user; the user would generally use the search params (if at all). style fixes: - improve the dropdown list in darkmode on Blink-based browsers. - fix the top margin inside the options dialog. - fix the top padding of #selectors. - fix the margin-bottom of #title. - fix the almost invisible selection color in darkmode. - fix tafsirhint end-of-ayah sign having a help cursor. - fix tafsir fonts. - show texts in a local font, then swap when the remote fonts load. code fixes: - load goatcounter from javascript, b/c if it's in the html, the page waits for it to load (or fail) before executing any javascript. - rename all suar_* constants to sura_*. - various code improvements and general clean up.
- Loading branch information
Showing
35 changed files
with
495 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
'use strict' | ||
|
||
<<!!cat a.gen.js>> | ||
<<!!cat mappings.js>> | ||
<<!!cat tajlorligilumi.js>> | ||
<<!!cat data.gen.js>> | ||
<<!!cat versligilumi.js>> | ||
|
||
// from: https://github.com/mathusummut/confetti.js. Copyright (c) 2018 MathuSum Mut. MIT License | ||
<<!!cat res/confetti.min.js>> | ||
|
||
<<!!#cat test.js>> | ||
// remove the '#' in the previous line to perform the tests | ||
|
||
<<!!cat tafsir.js>> | ||
<<!!cat search.js>> | ||
<<!!cat javascript.js>> | ||
|
||
// gunzipSync from fflate with a few modifications (check .g.ts) | ||
// MIT License; original source: https://github.com/101arrowz/fflate | ||
<<!!cat .g.js>> | ||
|
||
// lmza-d-min.js from LZMA-JS by Nathan Rugg; v2.3.0; License: MIT. | ||
// https://github.com/LZMA-JS/LZMA-JS/blob/master/src/lzma-d-min.js | ||
<<!!cat .lzma-d-min.js>> | ||
|
||
<<!!cat z.js>> | ||
|
||
window.goatcounter = { path: location.href.replace(/[?#].*/,''), 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://recite.goatcounter.com/count' }, async: true, src: '//gc.zgo.at/count.js' })) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.