Skip to content

Instantly share code, notes, and snippets.

@tjchambers
Created July 17, 2017 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjchambers/4bfa1a91b3ffdd625c3937baaa62f3e7 to your computer and use it in GitHub Desktop.
Save tjchambers/4bfa1a91b3ffdd625c3937baaa62f3e7 to your computer and use it in GitHub Desktop.
haml for search
= javascript_include_tag 'searcher'
.text-right{ style: 'padding-bottom:14px;font-size:1.2em' }
.fa.fa-search.ico-place
%input{ style: '-webkit-appearance:searchfield;font-family: FontAwesome;',
type: 'search',
placeholder: 'Search ...',
onKeyUp: 'ds(this.value)',
onClick: 'ds(this.value)',
size: 27,
id: 'search_box' }
%span.fa.fa-close{ id: 'searchclear', onClick: '$("#search_box").val("");ds("");' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment