Widget:BcaSearch: Difference between revisions
(Search: example links look like links) |
(Mobile: finger-sized chapter/verse number chips) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 43: | Line 43: | ||
.bcas-start__chips a:hover{border-color:#bf9659;background:rgba(191,150,89,.08)} | .bcas-start__chips a:hover{border-color:#bf9659;background:rgba(191,150,89,.08)} | ||
.bcas-start__chips a span{color:#888;font-size:.8rem} | .bcas-start__chips a span{color:#888;font-size:.8rem} | ||
.bcas-start__chips--small{margin-top:. | .bcas-start__chips--small{margin-top:.5rem} | ||
.bcas-start__sub{margin-bottom:.8rem} | |||
.bcas-start__chips--small a{padding:.15rem .6rem;font-size:.82rem} | .bcas-start__chips--small a{padding:.15rem .6rem;font-size:.82rem} | ||
/* Phones: finger-sized number chips (they were ~29x26px). */ | |||
@media (max-width:767.98px){.bcas-start__chips--small{gap:.5rem}.bcas-start__chips--small a{min-width:2.5rem;min-height:2.5rem;justify-content:center;font-size:.95rem}} | |||
.bcas-start__more{margin-top:.7rem;font-size:.85rem;color:#666} | .bcas-start__more{margin-top:.7rem;font-size:.85rem;color:#666} | ||
.bcas-start__more--stack a{display:block;padding:.15rem 0} | .bcas-start__more--stack a{display:block;padding:.15rem 0} | ||
| Line 71: | Line 74: | ||
<li><b>word*</b> matches any ending: <a data-q="meditat*">meditat*</a></li> | <li><b>word*</b> matches any ending: <a data-q="meditat*">meditat*</a></li> | ||
<li><b>intitle:</b> searches titles only: <a data-q="intitle:bodhisattva">intitle:bodhisattva</a></li> | <li><b>intitle:</b> searches titles only: <a data-q="intitle:bodhisattva">intitle:bodhisattva</a></li> | ||
<li><b>incategory:</b> searches by tag. Topics, decades, people and publishers are all tags: <a data-q="incategory:"Topic: Tonglen"">incategory:"Topic: Tonglen"</a>, <a data-q="incategory:"Decade: 1990s"">incategory:"Decade: 1990s"</a>, <a data-q="incategory:"Padmakara Translation Group"">incategory:"Padmakara Translation Group"</a>. Combine with words: <a data-q="patience incategory:"Topic: Six Perfections"">patience incategory:"Topic: Six Perfections"</a></li> | |||
<li>Accents are optional (<a data-q="santideva">santideva</a> finds Śāntideva); Tibetan script and Wylie work too.</li> | <li>Accents are optional (<a data-q="santideva">santideva</a> finds Śāntideva); Tibetan script and Wylie work too.</li> | ||
<li>A verse number such as <a data-q="8.120">8.120</a> offers that Bodhicaryāvatāra verse page.</li> | <li>A verse number such as <a data-q="8.120">8.120</a> offers that Bodhicaryāvatāra verse page.</li> | ||
| Line 303: | Line 307: | ||
$('#bcas-q').val(params.get('q') || ''); | $('#bcas-q').val(params.get('q') || ''); | ||
$('#bcas-form').on('submit', function (e) { e.preventDefault(); state.cls = ''; run(); }); | $('#bcas-form').on('submit', function (e) { e.preventDefault(); state.cls = ''; run(); }); | ||
// Clearing the box (its x, or deleting the text) returns to the browse panels. | |||
$('#bcas-q').on('input search', function () { if (!this.value.trim() && state.q) { state.cls = ''; state.tab = 'library'; run(); } }); | |||
$('.bcas__tips').on('click', 'a[data-q]', function () { $('#bcas-q').val($(this).attr('data-q')); state.cls = ''; run(); }); | $('.bcas__tips').on('click', 'a[data-q]', function () { $('#bcas-q').val($(this).attr('data-q')); state.cls = ''; run(); }); | ||
$('#bcas-hint').on('click', 'a[data-q]', function () { $('#bcas-q').val($(this).attr('data-q')); state.cls = ''; run(); }); | $('#bcas-hint').on('click', 'a[data-q]', function () { $('#bcas-q').val($(this).attr('data-q')); state.cls = ''; run(); }); | ||
Latest revision as of 17:41, 8 October 2026
Site search for the Bodhicitta wiki (preview). Used on Advanced Search/Preview. Full-text search through CirrusSearch, results grouped (library, passages in the aligned texts, essays, topics, people), class filters with counts, the library's bibliographic rows, and the search kept in the page address so it can be shared.