Update web/templates/search.html

trying to move the help tips to below the search row
This commit is contained in:
2025-08-14 16:25:53 +00:00
parent 9f9915f270
commit 1cab6dfeb6
+28 -30
View File
@@ -46,37 +46,35 @@
<input type="text" name="q" value="{{ q }}" placeholder="Type to search…" class="search-input" autofocus> <input type="text" name="q" value="{{ q }}" placeholder="Type to search…" class="search-input" autofocus>
<button class="btn btn-primary">Search</button> <button class="btn btn-primary">Search</button>
<!-- Help Button inline --> <!-- Help button stays inline -->
<div class="search-help-inline"> <button
<button class="btn btn-secondary help-toggle" type="button" class="btn btn-secondary help-toggle"
onclick="this.nextElementSibling.classList.toggle('open')"> type="button"
Help data-target="#search-help-panel"
</button> >
<div class="help-content"> Help
<h3>How to Use Search Operators</h3> </button>
<ul> </div>
<li><strong>Simple keyword</strong> — type any word to find entries that contain it.<br>
<em>Example:</em> <code>faith</code></li>
<li><strong>Phrase search</strong> — put quotes around a phrase to match it exactly.<br> <!-- Help panel lives OUTSIDE the row so it doesn't shrink the input -->
<em>Example:</em> <code>"Jehovah is my shepherd"</code></li> <div id="search-help-panel" class="help-panel">
<h3>How to Use Search Operators</h3>
<li><strong>OR search</strong> — use <code>OR</code> (uppercase) to match any of several terms.<br> <ul>
<em>Example:</em> <code>love OR kindness</code></li> <li><strong>Simple keyword</strong> — type any word to find entries that contain it.<br>
<em>Example:</em> <code>faith</code></li>
<li><strong>Exclude terms</strong> — use a minus sign to remove results containing a word.<br> <li><strong>Phrase search</strong> — put quotes around a phrase to match it exactly.<br>
<em>Example:</em> <code>hope -future</code></li> <em>Example:</em> <code>"Jehovah is my shepherd"</code></li>
<li><strong>OR search</strong> — use <code>OR</code> (uppercase) to match any of several terms.<br>
<li><strong>Wildcard search</strong> — use <code>*</code> to replace part of a word.<br> <em>Example:</em> <code>love OR kindness</code></li>
<em>Example:</em> <code>lov*</code> finds <code>love</code>, <code>loved</code>, <code>loving</code></li> <li><strong>Exclude terms</strong> — use a minus sign to remove results containing a word.<br>
<em>Example:</em> <code>hope -future</code></li>
<li><strong>Scripture search</strong>type a Bible book or abbreviation to find entries that reference it.<br> <li><strong>Wildcard search</strong>use <code>*</code> to replace part of a word.<br>
<em>Example:</em> <code>John 3:16</code></li> <em>Example:</em> <code>lov*</code> finds <code>love</code>, <code>loved</code>, <code>loving</code></li>
</ul> <li><strong>Scripture search</strong> — type a Bible book or abbreviation to find entries that reference it.<br>
<p><strong>Tip:</strong> You can combine these for powerful searches.<br> <em>Example:</em> <code>John 3:16</code></li>
<em>Example:</em> <code>"good shepherd" OR "faithful servant" -parable</code></p> </ul>
</div> <p><strong>Tip:</strong> Combine operators:<br>
</div> <em>Example:</em> <code>"good shepherd" OR "faithful servant" -parable</code></p>
</div> </div>
</form> </form>