Skip to content

Instantly share code, notes, and snippets.

@alanzhao
Created August 22, 2013 22:00
Show Gist options
  • Save alanzhao/6313359 to your computer and use it in GitHub Desktop.
Save alanzhao/6313359 to your computer and use it in GitHub Desktop.
<input type="search" id="search_hint" tabIndex=-1 data-hint='<%= error ? '' : raw(search_example_for_type(params[:type])) -%>' value='<%= error ? '' : raw(search_example_for_type(params[:type])) -%>' autocapitalize="off" autocorrect="off"/>
<input type="search" id="search_input" <%=raw params[:type] ? " class=#{params[:type]}" : '' %> onenter="trackClick('SBB'); Spokeo.search(this);" onfocus="Header.focusSearchBar('home')" onblur="Header.blurSearchBar('home')" tabIndex=1 value="<%=h(params[:n] || params[:p] || params[:e] || params[:u] || params[:q]) %>" autocapitalize="off" autocorrect="off" <%=raw 'autocomplete="off"' if params[:type].blank? || params[:type] =='name'-%>/>
<a id="search_submit" class="btn_green_big" href="#" data-click_tracking='SBB' onclick="return Spokeo.search($('search_input'));"><% if !session[:campaign] %>Search<% end %></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment