1/** 2 * @file 3 * Behaviours for the Nice Menus module. This uses Superfish 1.4.8. 4 * 5 * @link http://users.tpg.com.au/j_birch/plugins/superfish 6 */ 7 8(function ($) { 9 10 'use strict'; 11 /** 12 * Add Superfish to all Nice Menus with some basic options. 13 */ 14 Drupal.behaviors.niceMenus = { 15 attach: function (context, settings) { 16 $('ul.nice-menu:not(.nice-menus-processed)').addClass('nice-menus-processed').each(function () { 17 $(this).superfish({ 18 // Apply a generic hover class. 19 hoverClass: 'over', 20 // Disable generation of arrow mark-up. 21 autoArrows: false, 22 // Disable drop shadows. 23 dropShadows: false, 24 // Mouse delay. 25 delay: drupalSettings.nice_menus_options.delay, 26 // Animation speed. 27 speed: drupalSettings.nice_menus_options.speed 28 }); 29 30 $('ul.nice-menu ul').css('display', 'none'); 31 }); 32 } 33 }; 34 35})(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.