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 $('.simple-status-messages h2').click(function() { 23 $(this).siblings().toggleClass('active'); 24 }) 25 26 // When a close button is clicked hide this message. 27 $('.simple-status-messages .status-messages .status-message-close').click(function () { 28 $(this).parent().fadeOut('slow'); 29 }); 30 }); 31 } 32 }; 33})(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.