Commit:    deb2b2eb1dd61f92e32e1adb65d6f8d29d7fcbbc
Author:    Adam Harvey <[email protected]>         Mon, 18 Nov 2013 18:20:42 -0800
Parents:   42b6d153db660dfa8bb4ee7a56c013cdee3d8dae
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=deb2b2eb1dd61f92e32e1adb65d6f8d29d7fcbbc

Log:
Re-add a search dropdown to the beta site.

This uses Twitter's typeahead.js for the actual autocompletion, and uses our
existing search-index.json and search-description.json files. These are pretty
big, and an obvious fix down the track would be to combine them into one,
preferably much smaller file. mod_gzip should help to some extent, as should
the HTML 5 Local Storage caching I've implemented.

I've also pulled in Hogan.js for templating, since typeahead.js really needs
some sort of templating engine to be useful.

Excluding the JSON files, the added JS dependencies are around 50k
uncompressed. I think this is reasonable, but honestly, it's not really a
significant win over the autocomplete bits of jQuery UI. I've used typeahead.js
more for its multiple section functionality than anything else.

The styling on this is pretty average, but I'm mostly interested in testing
functionality right now. Fixes welcome.

Changed paths:
  M  include/footer.inc
  M  js/common.js
  A  js/ext/hogan-2.0.0.min.js
  D  js/ext/jquery-ui-1.8.7.min.js
  A  js/ext/typeahead.min.js
  A  js/search.js
  M  styles/theme-base.css


Diff: <Diff exceeded maximum size>

--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to