Commit:    24baccd5fc2bb75bf51491ba4f4ca554971232f2
Author:    Adam Harvey <[email protected]>         Mon, 18 Nov 2013 18:20:42 -0800
Parents:   0b63fc3b07661dd826fd74e69711c0cec5c73dba
Branches:  master

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

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