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
78 // set up the search close button
79 $('#search-close').on('click touchend', function() {
83 $("#search-container").removeClass('active');
90 //Set up search
92 $("#search-container").addClass('active');
94 $("#search-container").on('mouseover touchend', function(e) {
95 if ($(e.target).is('#search-close')) { return; }
96 $("#search-container").addClass('active');
99 $("#search-container").mouseout(function() {
103 $("#search-container").removeClass('active');
110 $("#search-container").removeClass('active');
1049 This method is called to reset the position when search results appear or hide */
1734 /* ################ SEARCH SUGGESTIONS ################## */
1926 /** Called by the search input's onkeydown and onkeyup events.
1927 * Handles navigation with keyboard arrows, Enter key to invoke search,
1928 * otherwise invokes search suggestions on key-up event.
1937 var search = document.getElementById("search_autocomplete");
1938 var text = search.value.replace(/(^ +)|( +$)/g, '');
1946 $("#search-close").removeClass("hide");
1948 $("#search-close").addClass("hide");
1952 // close all search results
1953 if (kd) $('#search-close').trigger('click');
1960 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1961 // if results aren't showing (and text not empty), return true to allow search to execute
1975 // If Google results are showing, return true to allow ajax search to execute
1978 if ((sticky ) && (search.value != "")) {
2056 // read the search query and add suggestions to gMatches
2069 // Search for Android matches
2084 // Search for Google matches
2102 // Search for matching JD docs
2107 // Search for Training classes
2109 // current search comparison, with counters for tag and title,
2141 // Search for API Guides
2143 // current search comparison, with counters for tag and title,
2174 // Search for Tools Guides
2176 // current search comparison, with counters for tag and title,
2206 // Search for About docs
2208 // current search comparison, with counters for tag and title,
2238 // Search for Design guides
2240 // current search comparison, with counters for tag and title,
2270 // Search for Distribute guides
2272 // current search comparison, with counters for tag and title,
2302 // Search for Google guides
2304 // current search comparison, with counters for tag and title,
2334 // Search for Samples
2336 // current search comparison, with counters for tag and title,
2364 // Search for Preview Guides
2366 // current search comparison, with counters for tag and title,
2401 return true; // allow the event to bubble up to the search api
2455 search(re)) >= 0) {
2542 $("#search-close").addClass("hide");
2559 $("#search-close").addClass("hide");
2564 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2567 // forcefully regain key-up event control (previously jacked by search api)
2578 /* ################ CUSTOM SEARCH ENGINE ################## */
2582 google.load('search', '1', {"callback" : function() {
2583 searchControl = new google.search.SearchControl();
2589 searchControl = new google.search.SearchControl();
2591 // use our existing search form and use tabs when multiple searchers are used
2592 drawOptions = new google.search.DrawOptions();
2593 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2596 // configure search result options
2597 searchOptions = new google.search.SearcherOptions();
2601 devSiteSearcher = new google.search.WebSearch();
2605 designSearcher = new google.search.WebSearch();
2609 trainingSearcher = new google.search.WebSearch();
2613 guidesSearcher = new google.search.WebSearch();
2617 referenceSearcher = new google.search.WebSearch();
2621 googleSearcher = new google.search.WebSearch();
2625 blogSearcher = new google.search.WebSearch();
2629 // add each searcher to the search control
2639 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2640 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
2641 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2642 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2644 // upon ajax search, refresh the url and search title
2651 // once search results load, set up click listeners
2656 // draw the search results box
2659 // get query and execute the search
2670 // if there's no query in the url, don't search and make sure results are hidden
2674 // first time loading search results for this page
2676 $("#search-close").removeClass("hide");
2684 // Ignore if there's no search bar (some special pages have no header)
2685 if ($("#search-container").length < 1) return;
2699 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2701 // Ignore if there's no search bar (some special pages have no header)
2702 if ($("#search-container").length < 1) return;
2704 // If the hash isn't a search query or there's an error in the query,
2715 // Otherwise, we have a search to do
2720 $("#search-close").removeClass("hide");
2729 // forcefully regain key-up event control (previously jacked by search api)
2740 // make a copy of the page numbers for the search left pane
2760 // When user clicks enter for Google search results, track it
3429 /* Expand all inherited members in the class. Used when initiating page search */
3440 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)
3595 // run the search for the set of resources to show