Sha256: 2afbb165c6a01bf04334d82605149a68f26195776596126a77ac19c18b17218d
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 Bytes
Contents
$(function() { // $('.collapse').collapse('hide'); $('.list-group-item.active').parent().parent('.collapse').collapse('show'); var pages = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('title'), // datumTokenizer: Bloodhound.tokenizers.whitespace, queryTokenizer: Bloodhound.tokenizers.whitespace, prefetch: 'search.json' }); $('#search-box').typeahead({ minLength: 0, highlight: true }, { name: 'pages', display: 'title', source: pages }); $('#search-box').bind('typeahead:select', function(ev, suggestion) { window.location.href = suggestion.url; }); // Markdown plain out to bootstrap style $('#markdown-content-container table').addClass('table'); $('#markdown-content-container img').addClass('img-responsive'); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apx-docs-theme-0.1.7 | assets/js/main.js |
apx-docs-theme-0.1.1 | assets/js/main.js |