Home | History | Annotate | Download | only in js

Lines Matching refs:search

38   // set search's onkeyup handler here so we can show suggestions 
39 // even while search results are visible
42 // set up the search close button
43 $('.search .close').click(function() {
47 $("#search-container").removeClass('active');
52 $('.search').click(function() {
85 //Set up search
87 $("#search-container").addClass('active');
89 $("#search-container").mouseover(function() {
90 $("#search-container").addClass('active');
93 $("#search-container").mouseout(function() {
97 $("#search-container").removeClass('active');
104 $("#search-container").removeClass('active');
1448 /* ################ SEARCH SUGGESTIONS ################## */
1536 var search = document.getElementById("search_autocomplete");
1537 var text = search.value.replace(/(^ +)|( +$)/g, '');
1541 $(".search .close").removeClass("hide");
1543 $(".search .close").addClass("hide");
1551 // if results aren't showing, return true to allow search to execute
1603 return true; // allow the event to bubble up to the search api
1619 while ((tmp = s.search(re)) >= 0) {
1696 $(".search .close").addClass("hide");
1713 $(".search .close").addClass("hide");
1718 // reset the ajax search callback to nothing, so results don't appear unless ENTER
1726 /* ################ CUSTOM SEARCH ENGINE ################## */
1729 google.load('search', '1');
1735 // create search control
1736 searchControl = new google.search.SearchControl();
1738 // use our existing search form and use tabs when multiple searchers are used
1739 drawOptions = new google.search.DrawOptions();
1740 drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
1743 // configure search result options
1744 searchOptions = new google.search.SearcherOptions();
1748 devSiteSearcher = new google.search.WebSearch();
1752 designSearcher = new google.search.WebSearch();
1756 trainingSearcher = new google.search.WebSearch();
1760 guidesSearcher = new google.search.WebSearch();
1764 referenceSearcher = new google.search.WebSearch();
1768 googleSearcher = new google.search.WebSearch();
1772 blogSearcher = new google.search.WebSearch();
1776 // add each searcher to the search control
1786 searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
1787 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
1788 searchControl.setTimeoutInterval(google.search.SearchControl.TIMEOUT_SHORT);
1789 searchControl.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING);
1791 // upon ajax search, refresh the url and search title
1798 // draw the search results box
1801 // get query and execute the search
1812 // if there's no query in the url, don't search and make sure results are hidden
1816 // first time loading search results for this page
1818 $(".search .close").removeClass("hide");
1823 // when an event on the browser history occurs (back, forward, load) requery hash and do search
1825 // Exit if the hash isn't a search query or there's an error in the query
1834 // Otherwise, we have a search to do
1839 $(".search .close").removeClass("hide");
1848 // forcefully regain key-up event control (previously jacked by search api)
1859 // make a copy of the page numbers for the search left pane
2412 /* Expand all inherited members in the class. Used when initiating page search */
2423 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)