Lines Matching refs:SEARCH
13 var GOOGLE_DATA; // combined data for google service apis, used for search suggest
35 // load json file for JD doc search suggestions
37 // load json file for Android API search suggestions
57 // setup keyboard listener for search shortcut
84 // set up the search close button
85 $('.search .close').click(function() {
89 $("#search-container").removeClass('active');
122 //Set up search
124 $("#search-container").addClass('active');
126 $("#search-container").mouseover(function() {
127 $("#search-container").addClass('active');
130 $("#search-container").mouseout(function() {
134 $("#search-container").removeClass('active');
141 $("#search-container").removeClass('active');
1069 This method is called to reset the position when search results appear or hide */
1760 /* ################ SEARCH SUGGESTIONS ################## */
1954 /** Called by the search input's onkeydown and onkeyup events.
1955 * Handles navigation with keyboard arrows, Enter key to invoke search,
1956 * otherwise invokes search suggestions on key-up event.
1965 var search = document.getElementById("search_autocomplete");
1966 var text = search.value.replace(/(^ +)|( +$)/g, '');
1974 $(".search .close").removeClass("hide");
1976 $(".search .close").addClass("hide");
1980 // close all search results
1981 if (kd) $('.search .close').trigger('click');
1988 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1989 // if results aren't showing (and text not empty), return true to allow search to execute
2003 // If Google results are showing, return true to allow ajax search to execute
2006 if ((sticky ) && (search.value != "")) {
2084 // read the search query and add suggestions to gMatches
2097 // Search for Android matches
2112 // Search for Google matches
2130 // Search for matching JD docs
2136 // Search for Training classes
2138 // current search comparison, with counters for tag and title,
2170 // Search for API Guides
2172 // current search comparison, with counters for tag and title,
2202 // Search for Tools Guides
2204 // current search comparison, with counters for tag and title,
2234 // Search for About docs
2236 // current search comparison, with counters for tag and title,
2266 // Search for Design guides
2268 // current search comparison, with counters for tag and title,
2298 // Search for Distribute guides
2300 // current search comparison, with counters for tag and title,
2330 // Search for Google guides
2332 // current search comparison, with counters for tag and title,
2362 // Search for Samples
2364 // current search comparison, with counters for tag and title,
2398 return true; // allow the event to bubble up to the search api
2452 while ((tmp = s.search(re)) >= 0) {
2539 $(".search .close").addClass("hide");
2556 $(".search .close").addClass("hide");
2561 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2564 // forcefully regain key-up event control (previously jacked by search api)
2575 /* ################ CUSTOM SEARCH ENGINE ################## */
2579 google.load('search', '1', {"callback" : function() {
2580 searchControl = new google.search.SearchControl();
2586 searchControl = new google.search.SearchControl();
2588 // use our existing search form and use tabs when multiple searchers are used
2589 drawOptions = new google.search.DrawOptions();
2590 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2593 // configure search result options
2594 searchOptions = new google.search.SearcherOptions();
2598 devSiteSearcher = new google.search.WebSearch();
2602 designSearcher = new google.search.WebSearch();
2606 trainingSearcher = new google.search.WebSearch();
2610 guidesSearcher = new google.search.WebSearch();
2614 referenceSearcher = new google.search.WebSearch();
2618 googleSearcher = new google.search.WebSearch();
2622 blogSearcher = new google.search.WebSearch();
2626 // add each searcher to the search control
2636 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2637 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
2638 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2639 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2641 // upon ajax search, refresh the url and search title
2648 // once search results load, set up click listeners
2653 // draw the search results box
2656 // get query and execute the search
2667 // if there's no query in the url, don't search and make sure results are hidden
2671 // first time loading search results for this page
2673 $(".search .close").removeClass("hide");
2681 // Ignore if there's no search bar (some special pages have no header)
2682 if ($("#search-container").length < 1) return;
2696 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2698 // Ignore if there's no search bar (some special pages have no header)
2699 if ($("#search-container").length < 1) return;
2701 // If the hash isn't a search query or there's an error in the query,
2712 // Otherwise, we have a search to do
2717 $(".search .close").removeClass("hide");
2726 // forcefully regain key-up event control (previously jacked by search api)
2737 // make a copy of the page numbers for the search left pane
2757 // When user clicks enter for Google search results, track it
3422 /* Expand all inherited members in the class. Used when initiating page search */
3433 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)
3585 // run the search for the set of resources to show