login
admin
back
search
display a simple linked interface for search results across anywhere in your namespace.
view demo
protocol: hawk-500
!: =/ pax (fall (mole |.((stab (crip (pib:c /file))))) /~/manual) :: :+ %cons [%twin /~/system/gen/show-hawk-code] :+ %lens pax !, *hoon :- %manx :: :: =/ search %+ pub:c /query :- %tas ''' card ''' :: :: =/ pax (fall (mole |.((stab (crip (pib:c /file))))) /~/manual) ;div.page ;form.fc.g3.p3.mb3 =method "post" ;label.fc.g1 ;span.s-1.f3: file to search within ;input.p-1.br1.bd1 =autocomplete "off" =placeholder "/~/manual" =type "text" =name "/file" =value (spud pax) ; == == ;label.fc.g1 ;span.s-1.f3: text to search for ;input.p-1.br1.bd1 =autocomplete "off" =placeholder "card" =type "text" =name "/query" =value search ; == == ;button.p-2.s1.loader.b1.hover.br1.bd1.wfc ;span.loading: ==== ;span.loaded: search == == ;* %+ turn tap:f |= [pix=path p=page] ;div ;* %+ murn (~(wic mx data.p) |=(* %.y)) |= [* m=manx] ?. =(n.g.m %$) ?. =(%summary n.g.m) ~ ~ =/ text (fall (mole |.(v:(snag 0 a.g.m))) "") ?~ x=(find search text) ~ :- ~ ;a.bd1.scroll-y.break.bd1.b0.hover.p1.block =href "/~~{(spud pax)}{(spud pix)}/" =style "max-height: 200px;" ;div.f-4: {(spud pix)} ;+ m == == ==