Commit graph

8 commits

Author SHA1 Message Date
Brian Huisman eda57224d9 Remove need for 'jw_depth' value
By using the location of the search.js script file, we can determine the root URL of an offline installation as long as the online script has been installed at https://example.com/orcinus/js/search.js
2023-06-21 15:07:57 -04:00
Brian Huisman e9c0654295 Update search.js
Tweak the comment
2023-06-16 14:47:51 -04:00
Brian Huisman 54bbbb6a65 Log clicked search suggestions
If the search UI is using typeahead and the user selects a suggested option to go right to a page, then a search is never logged as a search query; it's like the search never happened. Add a fetch request to log the search query just before sending the user on their way to the page.
2023-06-16 14:38:24 -04:00
Brian Huisman e440babc38 Directly reference jw_depth
Don't depend on the id="os_results" element existing in the user template, just use os_odata.jw_depth directly.
2023-06-15 09:48:28 -04:00
Brian Huisman 1ce34d9e41 Offline javascript output
Make the javascript output text into a Mustache template.
Add the jw_depth variable.
2023-06-14 14:43:55 -04:00
Brian Huisman 17fa8fae05 Tighten up file headings 2023-04-13 08:27:41 -04:00
Brian Huisman f37a732ee9 ARIA search updates 2023-04-12 21:08:53 -04:00
Brian Huisman 062f009829 Updates for the day 2023-04-12 19:08:00 -04:00