Home | History | Annotate | Download | only in js

Lines Matching refs:search

13 var GOOGLE_DATA; // combined data for google service apis, used for search suggest
25 // load json file for JD doc search suggestions
27 // load json file for Android API search suggestions
47 // setup keyboard listener for search shortcut
69 // set up the search close button
70 $('.search .close').click(function() {
74 $("#search-container").removeClass('active');
107 //Set up search
109 $("#search-container").addClass('active');
111 $("#search-container").mouseover(function() {
112 $("#search-container").addClass('active');
115 $("#search-container").mouseout(function() {
119 $("#search-container").removeClass('active');
126 $("#search-container").removeClass('active');
1473 /* ################ SEARCH SUGGESTIONS ################## */
1650 /** Called by the search input's onkeydown and onkeyup events.
1651 * Handles navigation with keyboard arrows, Enter key to invoke search,
1652 * otherwise invokes search suggestions on key-up event.
1660 var search = document.getElementById("search_autocomplete");
1661 var text = search.value.replace(/(^ +)|( +$)/g, '');
1669 $(".search .close").removeClass("hide");
1671 $(".search .close").addClass("hide");
1675 // close all search results
1676 if (kd) $('.search .close').trigger('click');
1683 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1684 // if results aren't showing (and text not empty), return true to allow search to execute
1774 // read the search query and add suggestsions to gMatches
1787 // Search for Android matches
1802 // Search for Google matches
1820 // Search for JD docs
1825 // current search comparison, with counters for tag and title,
1859 return true; // allow the event to bubble up to the search api
1913 while ((tmp = s.search(re)) >= 0) {
2000 $(".search .close").addClass("hide");
2017 $(".search .close").addClass("hide");
2022 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2025 // forcefully regain key-up event control (previously jacked by search api)
2036 /* ################ CUSTOM SEARCH ENGINE ################## */
2040 google.load('search', '1', {"callback" : function() {
2041 search.SearchControl();
2047 searchControl = new google.search.SearchControl();
2049 // use our existing search form and use tabs when multiple searchers are used
2050 drawOptions = new google.search.DrawOptions();
2051 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2054 // configure search result options
2055 searchOptions = new google.search.SearcherOptions();
2059 devSiteSearcher = new google.search.WebSearch();
2063 designSearcher = new google.search.WebSearch();
2067 trainingSearcher = new google.search.WebSearch();
2071 guidesSearcher = new google.search.WebSearch();
2075 referenceSearcher = new google.search.WebSearch();
2079 googleSearcher = new google.search.WebSearch();
2083 blogSearcher = new google.search.WebSearch();
2087 // add each searcher to the search control
2097 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2098 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
2099 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2100 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2102 // upon ajax search, refresh the url and search title
2109 // once search results load, set up click listeners
2114 // draw the search results box
2117 // get query and execute the search
2128 // if there's no query in the url, don't search and make sure results are hidden
2132 // first time loading search results for this page
2134 $(".search .close").removeClass("hide");
2139 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2141 // Exit if the hash isn't a search query or there's an error in the query
2150 // Otherwise, we have a search to do
2155 $(".search .close").removeClass("hide");
2164 // forcefully regain key-up event control (previously jacked by search api)
2175 // make a copy of the page numbers for the search left pane
2195 // When user clicks enter for Google search results, track it
2759 /* Expand all inherited members in the class. Used when initiating page search */
2770 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)