1/** 2 * @file 3 * JS file for status messages block. 4 */ 5 6(function ($, Drupal, drupalSettings) { 7 8 'use strict'; 9 10 Drupal.behaviors.statusMessages = { 11 attach: function (context, settings) { 12 var time = settings.statusMessages; 13 $(document).ready(function () { 14 // Close status message after some seconds. 15 if (time === null) { 16 time = '5000'; 17 } 18 setTimeout(function () { 19 $('.simple-status-messages').fadeOut('slow'); 20 }, time); 21 22 // When a close button is clicked hide this message. 23 $('.simple-status-messages .status-messages .status-message-close').click(function () { 24 $(this).parent().fadeOut('slow'); 25 }); 26 }); 27 } 28 }; 29})(jQuery, Drupal, drupalSettings);
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.