assets/packed/app.js
/**
 * Search for a given keyword.
 *
 * @example
 *     Search.show('hello')
 */
Search for a given keyword.
Search for a given keyword .
function show(val) {
  var keywords = (0, _permutate.splitwords)(val);
  if (!keywords.length) return showAll();
  var selectors = keywords.map(function (k) {
    return "[data-search-index~=".concat(JSON.stringify(k), "]");
  }).join('');
  (0, _querySelectorAll.default)('[data-search-index]').forEach(function (el) {
    el.setAttribute('hidden', true);
    el.style.setProperty('display', "none");
  });
  (0, _querySelectorAll.default)(selectors).forEach(function (el) {
    el.removeAttribute('hidden');
    el.style.removeProperty('display');
  });
}
function show ( val ) { var keywords = ( 0 , _permutate . splitwords ) ( val ) ; if ( ! keywords . length ) return showAll ( ) ; var selectors = keywords . map ( function ( k ) { return "[data-search-index~=" . concat ( JSON . stringify ( k ) , "]" ) ; } ) . join ( '' ) ; ( 0 , _querySelectorAll . default ) ( '[data-search-index]' ) . forEach ( function ( el ) { el . setAttribute ( 'hidden' , true ) ; el . style . setProperty ( 'display' , "none" ) ; } ) ; ( 0 , _querySelectorAll . default ) ( selectors ) . forEach ( function ( el ) { el . removeAttribute ( 'hidden' ) ; el . style . removeProperty ( 'display' ) ; } ) ; }
Search for a given keyword.
Search for a given keyword .