1(function ($) { 2 Drupal.behaviors.prlibSearchBlock = { 3 attach: function (context, settings) { 4 if ($(window).width() >= 769) { 5 var $searchForm = $('.prlib-search-form-link-form', context); 6 7 if ($searchForm.length) { 8 $('.prlib-search-form-link', context).on('click', function (e) { 9 10 e.preventDefault(); 11 12 $searchForm.css('position', 'relative'); 13 14 if ($searchForm.find('.close').length == 0) { 15 var $btnClose = $('<button>', { 16 type: 'button', 17 class: 'close', 18 'data-dismiss': '', 19 'aria-label': 'Close', 20 }); 21 $('<span>', { 22 'aria-hidden': true, 23 click: function (e) { 24 $('.prlib-search-form-link-form').addClass('hidden'); 25 } 26 }) 27 .html('×') 28 .css('position', 'absolute') 29 .css('right', '10px') 30 .css('top', '10px') 31 .appendTo($btnClose); 32 $searchForm.append($btnClose); 33 } 34 35 $searchForm.removeClass('hidden'); 36 }); 37 } 38 } 39 } 40 }; 41})(jQuery);
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.