PageSourceSearch

https://www.hagley.org/modules/contrib/nice_menus/js/nice_menus.js?v=1

js hagley.org collected 2026-09-24 09:04:10 UTC 949 bytes, 35 lines download raw bytes

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.