1// $Id: google_cse.js,v 1.1.4.3 2008/07/01 21:31:14 mfb Exp $ 2$(function() { 3 var googleCSEWatermark = function($id) { 4 var f = document.getElementById($id); 5 if (f && (f.query || f.q || f['edit-keys'])) { 6 var q = f.query ? f.query : (f.q ? f.q : f['edit-keys']); 7 var n = navigator; 8 var l = location; 9 if (n.platform == 'Win32') { 10 q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;'; 11 } 12 var b = function() { 13 if (q.value == '') { 14 q.style.background = '#FFFFFF url(http://www.google.com/coop/intl/' + Drupal.settings.googleCSE.language + '/images/google_custom_search_watermark.gif) left no-repeat'; 15 } 16 }; 17 var f = function() { 18 q.style.background = '#ffffff'; 19 }; 20 q.onfocus = f; 21 q.onblur = b; 22 if (!/[&?]query=[^&]/.test(l.search)) { 23 b(); 24 } 25 } 26 }; 27 googleCSEWatermark('google-cse-searchbox-form'); 28 googleCSEWatermark('google-cse-results-searchbox-form'); 29 if (Drupal.settings.googleCSE.searchForm) { 30 googleCSEWatermark('search-form'); 31 } 32});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.