1(function ($, Drupal) { 2 Drupal.behaviors.search = { 3 attach: function (context, settings) { 4 5 6 7 $(document).ready(function(){ 8 //add icon 9 if ($('#views-exposed-form-search-search-embed-1 > .js-form-item span').length == 0 ) { 10 $('#views-exposed-form-search-search-embed-1 > .js-form-item > input').before('<span class="search-icon pe-7s-search"></span>'); 11 }; 12 13 //$('input.button.form-submit').addClass('cta-vivid-cyan-white invert'); 14 15 16 $('.search-icon').bind("click", function() { 17 $('.search_overlay').fadeIn(700); 18 }); 19 $('.search_overlay_closer_icon').bind("click", function() { 20 $('.search_overlay').fadeOut(700); 21 }); 22 23 $(context).find('input.form-autocomplete').on('autocompleteselect', function (event, ui) { 24 $('input.form-autocomplete').val(ui.item.label); 25 $('input.button.form-submit').delay( 1000 ).trigger("click"); 26 }); 27 }); 28 } 29 30 }; 31 32})(jQuery, Drupal);
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.