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');
1497 /* ################ SEARCH SUGGESTIONS ################## */
1674 /** Called by the search input's onkeydown and onkeyup events.
1675 * Handles navigation with keyboard arrows, Enter key to invoke search,
1676 * otherwise invokes search suggestions on key-up event.
1684 var search = document.getElementById("search_autocomplete");
1685 var text = search.value.replace(/(^ +)|( +$)/g, '');
1693 $(".search .close").removeClass("hide");
1695 $(".search .close").addClass("hide");
1699 // close all search results
1700 if (kd) $('.search .close').trigger('click');
1707 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1708 // if results aren't showing (and text not empty), return true to allow search to execute
1798 // read the search query and add suggestsions to gMatches
1811 // Search for Android matches
1826 // Search for Google matches
1844 // Search for JD docs
1849 // current search comparison, with counters for tag and title,
1883 return true; // allow the event to bubble up to the search api
1937 while ((tmp = s.search(re)) >= 0) {
2024 $(".search .close").addClass("hide");
2041 $(".search .close").addClass("hide");
2046 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2049 // forcefully regain key-up event control (previously jacked by search api)
2060 /* ################ CUSTOM SEARCH ENGINE ################## */
2064 google.load('search', '1', {"callback" : function() {
2065 searchControl = new google.search.SearchControl();
2071 searchControl = new google.search.SearchControl();
2073 // use our existing search form and use tabs when multiple searchers are used
2074 drawOptions = new google.search.DrawOptions();
2075 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2078 // configure search result options
2079 searchOptions = new google.search.SearcherOptions();
2083 devSiteSearcher = new google.search.WebSearch();
2087 designSearcher = new google.search.WebSearch();
2091 trainingSearcher = new google.search.WebSearch();
2095 guidesSearcher = new google.search.WebSearch();
2099 referenceSearcher = new google.search.WebSearch();
2103 googleSearcher = new google.search.WebSearch();
2107 blogSearcher = new google.search.WebSearch();
2111 // add each searcher to the search control
2121 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2122 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
2123 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2124 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2126 // upon ajax search, refresh the url and search title
2133 // once search results load, set up click listeners
2138 // draw the search results box
2141 // get query and execute the search
2152 // if there's no query in the url, don't search and make sure results are hidden
2156 // first time loading search results for this page
2158 $(".search .close").removeClass("hide");
2163 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2165 // Exit if the hash isn't a search query or there's an error in the query
2174 // Otherwise, we have a search to do
2179 $(".search .close").removeClass("hide");
2188 // forcefully regain key-up event control (previously jacked by search api)
2199 // make a copy of the page numbers for the search left pane
2219 // When user clicks enter for Google search results, track it
2886 /* Expand all inherited members in the class. Used when initiating page search */
2897 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)