new_site/_includes/scripts
CheariX 0a40a22739
feat: simple filtering / searching on bibliography (#2523)
This PR adds a simple filter/search functionality to the bibliography.

It can be used in two ways:

1. Simply enter a search term in the input box.
2. Send a search term via the `location.hash`, e.g.,
https://alshedivat.github.io/al-folio/publications/#mechanics

**Notes:**

- The search box is optional. It can be simply removed if anyone does
not like it.
- Searching via `hash` works without the search box. My idea is to use
this functionality to index all BibTeX entries via the `ctrl-k` search
and link them via their BibTeX key.
- Searching via `hash` could also be used to set static links on the
current page, e.g., to filter specific co-authors, venues, etc.
- I don't know much about the design of the input field. I simply reused
the newsletter box style.
- Entering a search term in the box does exact matching. No fuzzy
search, no AND/OR logic. I kept it very simple. Maybe anyone else wants
to improve it in the future.
- The search looks in all data in the BibTeX entry that is parsed via
`bib.liquid`. E.g., it is possible to search for BibTeX keys, titles,
authors, years, venues, abstracts, or whatever `bib.liquid` prints.
- I used a 300ms delay before starting to search on the input box.
- Entering search terms in the box does not update the location hash
(things could get complex otherwise due to automatically updating each
other...)
- If the filter does not find any match in a specific year, the year is
also made invisible.

**Screenshot**
<img width="935" alt="screenshot"
src="https://github.com/alshedivat/al-folio/assets/1998723/447003e2-c623-4de9-b2c5-2357117a7743">

Looking for feedback.
2024-07-08 16:51:22 -03:00
..
analytics.liquid Support pirsch.io for analytics (#2513) 2024-06-18 11:04:21 -03:00
back_to_top.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
badges.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
bootstrap.liquid Offline mode (closes #1181) (#2312) 2024-04-08 14:51:28 -03:00
chartjs.liquid Fix offline leaflet (#2420) 2024-05-15 17:56:00 -03:00
diff2html.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
echarts.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
imageLayouts.liquid Fix offline leaflet (#2420) 2024-05-15 17:56:00 -03:00
jekyll_tabs.liquid Added support for jekyll-tabs (#2380) 2024-05-02 14:34:48 -03:00
jquery.liquid Offline mode (closes #1181) (#2312) 2024-04-08 14:51:28 -03:00
leaflet.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
masonry.liquid Offline mode (closes #1181) (#2312) 2024-04-08 14:51:28 -03:00
mathjax.liquid Fix offline leaflet (#2420) 2024-05-15 17:56:00 -03:00
mermaid.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
misc.liquid feat: simple filtering / searching on bibliography (#2523) 2024-07-08 16:51:22 -03:00
newsletter.liquid Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
progressBar.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
pseudocode.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
search.liquid Fixed external post symbol on search (#2515) 2024-06-18 11:45:34 -03:00
tikzjax.liquid Updated tikzjax hash 2024-05-21 18:47:38 -03:00
typograms.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
vega.liquid Fix code blocks not changing to plots and others (#2497) 2024-06-11 14:06:38 -03:00
wechatModal.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00