Home | History | Annotate | Download | only in js

Lines Matching refs:search

12 var GOOGLE_DATA; // combined data for google service apis, used for search suggest
20 // load json file for Android API search suggestions
61 // set search's onkeyup handler here so we can show suggestions
62 // even while search results are visible
65 // set up the search close button
66 $('.search .close').click(function() {
70 $("#search-container").removeClass('active');
75 $('.search').click(function() {
108 //Set up search
110 $("#search-container").addClass('active');
112 $("#search-container").mouseover(function() {
113 $("#search-container").addClass('active');
116 $("#search-container").mouseout(function() {
120 $("#search-container").removeClass('active');
127 $("#search-container").removeClass('active');
1512 /* ################ SEARCH SUGGESTIONS ################## */
1613 var search = document.getElementById("search_autocomplete");
1614 var text = search.value.replace(/(^ +)|( +$)/g, '');
1618 $(".search .close").removeClass("hide");
1620 $(".search .close").addClass("hide");
1627 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1628 // if results aren't showing (and text not empty), return true to allow search to execute
1670 // read the search query and add suggestsions to gMatches
1678 // Search for Android matches
1693 // Search for Google matches
1711 return true; // allow the event to bubble up to the search api
1728 while ((tmp = s.search(re)) >= 0) {
1810 $(".search .close").addClass("hide");
1827 $(".search .close").addClass("hide");
1832 // reset the ajax search callback to nothing, so results don't appear unless ENTER
1840 /* ################ CUSTOM SEARCH ENGINE ################## */
1843 google.load('search', '1');
1849 // create search control
1850 searchControl = new google.search.SearchControl();
1852 // use our existing search form and use tabs when multiple searchers are used
1853 drawOptions = new google.search.DrawOptions();
1854 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
1857 // configure search result options
1858 searchOptions = new google.search.SearcherOptions();
1862 sacSiteSearcher = new google.search.WebSearch();
1866 sourceSearcher = new google.search.WebSearch();
1870 devicesSearcher = new google.search.WebSearch();
1874 accessoriesSearcher = new google.search.WebSearch();
1878 compatibilitySearcher = new google.search.WebSearch();
1882 // add each searcher to the search control
1891 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
1892 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
1893 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
1894 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
1896 // upon ajax search, refresh the url and search title
1903 // draw the search results box
1906 // get query and execute the search
1916 // if there's no query in the url, don't search and make sure results are hidden
1920 // first time loading search results for this page
1922 $(".search .close").removeClass("hide");
1927 // when an event on the browser history occurs (back, forward, load) requery hash and do search
1929 // Exit if the hash isn't a search query or there's an error in the query
1938 // Otherwise, we have a search to do
1943 $(".search .close").removeClass("hide");
1952 // forcefully regain key-up event control (previously jacked by search api)
1963 // make a copy of the page numbers for the search left pane
2529 /* Expand all inherited members in the class. Used when initiating page search */
2540 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)