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');
891 This method is called to reset the position when search results appear or hide */
1585 /* ################ SEARCH SUGGESTIONS ################## */
1779 /** Called by the search input's onkeydown and onkeyup events.
1780 * Handles navigation with keyboard arrows, Enter key to invoke search,
1781 * otherwise invokes search suggestions on key-up event.
1790 var search = document.getElementById("search_autocomplete");
1791 var text = search.value.replace(/(^ +)|( +$)/g, '');
1799 $(".search .close").removeClass("hide");
1801 $(".search .close").addClass("hide");
1805 // close all search results
1806 if (kd) $('.search .close').trigger('click');
1813 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1814 // if results aren't showing (and text not empty), return true to allow search to execute
1905 // read the search query and add suggestions to gMatches
1918 // Search for Android matches
1933 // Search for Google matches
1951 // Search for matching JD docs
1957 // Search for Training classes
1959 // current search comparison, with counters for tag and title,
1991 // Search for API Guides
1993 // current search comparison, with counters for tag and title,
2023 // Search for Tools Guides
2025 // current search comparison, with counters for tag and title,
2055 // Search for About docs
2057 // current search comparison, with counters for tag and title,
2087 // Search for Design guides
2089 // current search comparison, with counters for tag and title,
2119 // Search for Distribute guides
2121 // current search comparison, with counters for tag and title,
2151 // Search for Google guides
2153 // current search comparison, with counters for tag and title,
2183 // Search for Samples
2185 // current search comparison, with counters for tag and title,
2219 return true; // allow the event to bubble up to the search api
2273 while ((tmp = s.search(re)) >= 0) {
2360 $(".search .close").addClass("hide");
2377 $(".search .close").addClass("hide");
2382 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2385 // forcefully regain key-up event control (previously jacked by search api)
2396 /* ################ CUSTOM SEARCH ENGINE ################## */
2400 google.load('search', '1', {"callback" : function() {
2401 searchControl = new google.search.SearchControl();
2407 searchControl = new google.search.SearchControl();
2409 // use our existing search form and use tabs when multiple searchers are used
2410 drawOptions = new google.search.DrawOptions();
2411 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2414 // configure search result options
2415 searchOptions = new google.search.SearcherOptions();
2419 devSiteSearcher = new google.search.WebSearch();
2423 designSearcher = new google.search.WebSearch();
2427 trainingSearcher = new google.search.WebSearch();
2431 guidesSearcher = new google.search.WebSearch();
2435 referenceSearcher = new google.search.WebSearch();
2439 googleSearcher = new google.search.WebSearch();
2443 blogSearcher = new google.search.WebSearch();
2447 // add each searcher to the search control
2457 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2458 searchControl.setLinkTarget(google.searchSearch.LINK_TARGET_SELF);
2459 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2460 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2462 // upon ajax search, refresh the url and search title
2469 // once search results load, set up click listeners
2474 // draw the search results box
2477 // get query and execute the search
2488 // if there's no query in the url, don't search and make sure results are hidden
2492 // first time loading search results for this page
2494 $(".search .close").removeClass("hide");
2499 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2501 // If the hash isn't a search query or there's an error in the query,
2513 // Otherwise, we have a search to do
2518 $(".search .close").removeClass("hide");
2527 // forcefully regain key-up event control (previously jacked by search api)
2538 // make a copy of the page numbers for the search left pane
2558 // When user clicks enter for Google search results, track it
3226 /* Expand all inherited members in the class. Used when initiating page search */
3237 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)
3386 // run the search for the set of resources to show