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
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');
1079 This method is called to reset the position when search results appear or hide */
1770 /* ################ SEARCH SUGGESTIONS ################## */
1964 /** Called by the search input's onkeydown and onkeyup events.
1965 * Handles navigation with keyboard arrows, Enter key to invoke search,
1966 * otherwise invokes search suggestions on key-up event.
1975 var search = document.getElementById("search_autocomplete");
1976 var text = search.value.replace(/(^ +)|( +$)/g, '');
1984 $(".search .close").removeClass("hide");
1986 $(".search .close").addClass("hide");
1990 // close all search results
1991 if (kd) $('.search .close').trigger('click');
1998 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1999 // if results aren't showing (and text not empty), return true to allow search to execute
2013 // If Google results are showing, return true to allow ajax search to execute
2016 if ((sticky ) && (search.value != "")) {
2094 // read the search query and add suggestions to gMatches
2107 // Search for Android matches
2122 // Search for Google matches
2140 // Search for matching JD docs
2146 // Search for Training classes
2148 // current search comparison, with counters for tag and title,
2180 // Search for API Guides
2182 // current search comparison, with counters for tag and title,
2212 // Search for Tools Guides
2214 // current search comparison, with counters for tag and title,
2244 // Search for About docs
2246 // current search comparison, with counters for tag and title,
2276 // Search for Design guides
2278 // current search comparison, with counters for tag and title,
2308 // Search for Distribute guides
2310 // current search comparison, with counters for tag and title,
2340 // Search for Google guides
2342 // current search comparison, with counters for tag and title,
2372 // Search for Samples
2374 // current search comparison, with counters for tag and title,
2408 return true; // allow the event to bubble up to the search api
2462 while ((tmp = s.search(re)) >= 0) {
2549 $(".search .close").addClass("hide");
2566 $(".search .close").addClass("hide");
2571 // reset the ajax search callback to nothing, so results don't appear unless ENTER
2574 // forcefully regain key-up event control (previously jacked by search api)
2585 /* ################ CUSTOM SEARCH ENGINE ################## */
2589 google.load('search', '1', {"callback" : function() {
2590 searchControl = new google.search.SearchControl();
2596 searchControl = new google.search.SearchControl();
2598 // use our existing search form and use tabs when multiple searchers are used
2599 drawOptions = new google.search.DrawOptions();
2600 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
2603 // configure search result options
2604 searchOptions = new google.search.SearcherOptions();
2608 devSiteSearcher = new google.search.WebSearch();
2612 designSearcher = new google.search.WebSearch();
2616 trainingSearcher = new google.search.WebSearch();
2620 guidesSearcher = new google.search.WebSearch();
2624 referenceSearcher = new google.search.WebSearch();
2628 googleSearcher = new google.search.WebSearch();
2632 blogSearcher = new google.search.WebSearch();
2636 // add each searcher to the search control
2646 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
2647 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
2648 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
2649 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
2651 // upon ajax search, refresh the url and search title
2658 // once search results load, set up click listeners
2663 // draw the search results box
2666 // get query and execute the search
2677 // if there's no query in the url, don't search and make sure results are hidden
2681 // first time loading search results for this page
2683 $(".search .close").removeClass("hide");
2691 // Ignore if there's no search bar (some special pages have no header)
2692 if ($("#search-container").length < 1) return;
2706 // when an event on the browser history occurs (back, forward, load) requery hash and do search
2708 // Ignore if there's no search bar (some special pages have no header)
2709 if ($("#search-container").length < 1) return;
2711 // If the hash isn't a search query or there's an error in the query,
2722 // Otherwise, we have a search to do
2727 $(".search .close").removeClass("hide");
2736 // forcefully regain key-up event control (previously jacked by search api)
2747 // make a copy of the page numbers for the search left pane
2767 // When user clicks enter for Google search results, track it
3432 /* Expand all inherited members in the class. Used when initiating page search */
3443 * - 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