Home | History | Annotate | Download | only in js

Lines Matching refs:SEARCH

12 var GOOGLE_DATA; // combined data for google service apis, used for search suggest
20 // load json file for Android API search suggestions
61 // set search's onkeyup handler here so we can show suggestions
62 // even while search results are visible
65 // set up the search close button
66 $('.search .close').click(function() {
70 $("#search-container").removeClass('active');
75 $('.search').click(function() {
108 //Set up search
110 $("#search-container").addClass('active');
112 $("#search-container").mouseover(function() {
113 $("#search-container").addClass('active');
116 $("#search-container").mouseout(function() {
120 $("#search-container").removeClass('active');
127 $("#search-container").removeClass('active');
1512 /* ################ SEARCH SUGGESTIONS ################## */
1613 var search = document.getElementById("search_autocomplete");
1614 var text = search.value.replace(/(^ +)|( +$)/g, '');
1618 $(".search .close").removeClass("hide");
1620 $(".search .close").addClass("hide");
1627 if ($("#searchResults").is(":hidden") && (search.value != "")) {
1628 // if results aren't showing (and text not empty), return true to allow search to execute
1673 // read the search query and add suggestsions to gMatches
1681 // Search for Android matches
1696 // Search for Google matches
1720 return true; // allow the event to bubble up to the search api
1737 while ((tmp = s.search(re)) >= 0) {
1819 $(".search .close").addClass("hide");
1836 $(".search .close").addClass("hide");
1841 // reset the ajax search callback to nothing, so results don't appear unless ENTER
1848 /* ################ CUSTOM SEARCH ENGINE ################## */
1851 // TODO, add localized search.
1856 // Package of functions that does custom search, from DAC redesign.
1903 var entry = $('<div>').addClass('dac-custom-search-entry cols');
1909 // .append($('<div>').addClass('dac-custom-search-image').css('background-image', 'url(' + image.src + ')')));
1913 .append($('<p>').addClass('dac-custom-search-section').text(section))
1915 $('<a>').text(item.title).attr('href', item.link).wrap('<h2>').parent().addClass('dac-custom-search-title')
1917 .append($('<p>').addClass('dac-custom-search-snippet').html(item.htmlSnippet.replace(/<br>/g, '')))
1918 .append($('<a>').addClass('dac-custom-search-link').text(item.formattedUrl).attr('href', item.link)));
1924 var loadMoreButton = $('<button id="dac-custom-search-load-more">')
1925 .addClass('dac-custom-search-load-more')
1938 var loadMoreButton = el.find('#dac-custom-search-load-more');
1961 // Draw the search results box
1966 // Refresh the url and search title
1971 // get query and execute the search
1984 // if there's no query in the url, don't search and make sure results are hidden
1988 // first time loading search results for this page
1990 $(".search .close").removeClass("hide");
1995 // when an event on the browser history occurs (back, forward, load) requery hash and do search
1997 // Exit if the hash isn't a search query or there's an error in the query
2006 // Otherwise, we have a search to do
2012 $(".search .close").removeClass("hide");
2021 // forcefully regain key-up event control (previously jacked by search api)
2032 // make a copy of the page numbers for the search left pane
2588 /* Expand all inherited members in the class. Used when initiating page search */
2599 * - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)