Skip to content

Instantly share code, notes, and snippets.

<div id="the-basics">
<input class="typeahead" type="text" placeholder="States of USA">
</div>
<div id="bloodhound">
<input class="typeahead" type="text" placeholder="States of USA">
</div>
<div id="prefetch">
<input class="typeahead" type="text" placeholder="Countries">
</div>
<div id="remote">
<input class="typeahead" type="text" placeholder="Oscar winners for Best Picture">
</div>
#custom-templates .empty-message {
padding: 5px 10px;
text-align: center;
}
#multiple-datasets .league-name {
margin: 0 20px 5px 20px;
padding: 3px 0;
border-bottom: 1px solid #ccc;
}
#scrollable-dropdown-menu .tt-dropdown-menu {
max-height: 150px;
overflow-y: auto;
}
#rtl-support .tt-dropdown-menu {
text-align: right;
}
@jharding
jharding / typeahead.bundle.js
Created July 14, 2014 00:01
typeahead.js #899 dist
/*!
* typeahead.js 0.10.3
* https://github.com/twitter/typeahead.js
* Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT
*/
(function($) {
var _ = function() {
"use strict";
return {
<div id="default-suggestions">
<input class="typeahead" type="text" placeholder="NFL Teams">
</div>