PageSourceSearch

https://athesia-tappeiner.com/sites/all/modules/responsive_menus/s…/responsive_menus_mean_menu.js?t5m2cd

js athesia-tappeiner.com collected 2026-10-02 12:20:58 UTC 1,630 bytes, 45 lines download raw bytes

1/**
2 * @file
3 * Integrate Mean Menu library with Responsive Menus module.
4 */
5(function ($) {
6  Drupal.behaviors.responsive_menus_mean_menu = {
7    attach: function (context, settings) {
8      settings.responsive_menus = settings.responsive_menus || {};
9      $.each(settings.responsive_menus, function(ind, iteration) {
10        if (iteration.responsive_menus_style != 'mean_menu') {
11          return true;
12        }
13        if (!iteration.selectors.length) {
14          return;
15        }
16        // Set 1/0 to true/false respectively.
17        $.each(iteration, function(key, value) {
18          if (value == 0) {
19            iteration[key] = false;
20          }
21          if (value == 1) {
22            iteration[key] = true;
23          }
24        });
25        // Call meanmenu() with our custom settings.
26        $(iteration.selectors).once('responsive-menus-mean-menu', function() {
27          $(this).meanmenu({
28            meanMenuContainer: iteration.container || "body",
29            meanMenuClose: iteration.close_txt || "X",
30            meanMenuCloseSize: iteration.close_size || "18px",
31            meanMenuOpen: iteration.trigger_txt || "<span /><span /><span />",
32            meanRevealPosition: iteration.position || "right",
33            meanScreenWidth: iteration.media_size || "480",
34            meanExpand: iteration.expand_txt || "+",
35            meanContract: iteration.contract_txt || "-",
36            meanShowChildren: iteration.show_children,
37            meanExpandableChildren: iteration.expand_children,
38            meanRemoveAttrs: iteration.remove_attrs
39          });
40        });
41      });
42
43    }
44  };
45}(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.