1/** 2 * @file 3 */ 4 5(function ($, Drupal) { 6 7 "use strict"; 8 9 Drupal.behaviors.initColorboxPlainStyle = { 10 attach: function (context, settings) { 11 $(context).bind('cbox_complete', function () { 12 // Make all the controls invisible. 13 $('#cboxCurrent, #cboxSlideshow, #cboxPrevious, #cboxNext', context).addClass('visually-hidden'); 14 // Replace "Close" with "Ã" and show. 15 $('#cboxClose', context).html('\u00d7').addClass('cbox-close-plain'); 16 // Hide empty title. 17 if ($('#cboxTitle:empty', context).length == true) { 18 $('#cboxTitle', context).hide(); 19 } 20 $('#cboxLoadedContent', context).bind('mouseover', function () { 21 $('#cboxClose', context).animate({opacity: 1}, {queue: false, duration: "fast"}); 22 if ($('#cboxTitle:empty', context).length == false) { 23 $('#cboxTitle', context).slideDown(); 24 } 25 }); 26 $('#cboxOverlay', context).bind('mouseover', function () { 27 $('#cboxClose', context).animate({opacity: 0}, {queue: false, duration: "fast"}); 28 if ($('#cboxTitle:empty', context).length == false) { 29 $('#cboxTitle', context).slideUp(); 30 } 31 }); 32 }); 33 $(context).bind('cbox_closed', function () { 34 $('#cboxClose', context).removeClass('cbox-close-plain'); 35 }); 36 } 37 }; 38 39})(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.