Ajax Intertextuality List - warwickfoster/qurantools GitHub Wiki
app/easy_search.php
File:Purpose
The provided HTML code snippet presents a Qur'an search tool that allows users to search for verses based on different criteria.
Features
- Multiple Search Terms Users can add multiple search terms by clicking the "Add Row" button and selecting different options in each row.
- Search Criteria The search criteria include selecting the type of surah (Meccan, Medinan, or all suras), specifying the verse range, and choosing the search mode.
- Search Language The tool provides a visual representation of the search terms and their corresponding Qur'an Tools syntax.
- Tooltip The tool displays a tooltip that provides instructions and help with the search language.
Structure
- The HTML code consists of various HTML elements, including:
- Form elements (radio buttons, select boxes)
- Buttons
- Div elements for displaying search options, results, and tooltips
- JavaScript is used to handle user interactions, update the search query, and display the tooltip.
Functionality
- When users select different options, JavaScript updates the search query and builds a visual representation of the search terms.
- Clicking the "SEARCH" button triggers a JavaScript function that submits the search query to the server and displays the results.
Benefits
- Allows users to perform complex searches within the Qur'an.
- Provides visual guidance on the Qur'an Tools search language.
- Facilitates user understanding of the search process.
Additional Notes
- The code references external files such as "docs/user_guide_advanced_verse_browser.php" for additional information.
- The tooltips are implemented using the "Tipped" JavaScript library.