PageSourceSearch

https://olivetti.com/sites/all/modules/drupalexp/modules/dexp_menu/js/dexp-menu.js?tleq7c

js olivetti.com collected 2026-09-24 22:31:36 UTC 2,790 bytes, 73 lines download raw bytes

1jQuery(document).ready(function($) {
2    $('.dexp-dropdown ul li a').data({click:true});
3    $('.dexp-dropdown a.active').each(function() {
4        $(this).parents('li.expanded').addClass('active');
5    });
6    $('.dexp-dropdown li.expanded').each(function() {
7        var $this = $(this), $toggle = $('<span class="menu-toggler fa fa-angle-right"></span>');
8        $toggle.click(function() {
9            $(this).toggleClass('fa-angle-right fa-angle-down');
10            $this.find('>ul,>.dexp-menu-mega').toggleClass('menu-open');
11        });
12        $this.append($toggle);
13    });
14    $('.dexp-dropdown .menu-attach-block-wrapper').parent('li').addClass('block-attach');
15    $('.dexp-menu-toggler').click(function() {
16        var $menu = $($(this).data('target'));
17        if ($menu != null) {
18            $menu.toggleClass('mobile-open');
19        }
20        return false;
21    });
22    $('.dexp-dropdown ul li a').on('touchstart',function() {
23        var $this = $(this),$li = $(this).parent();
24        if($li.find('ul,.dexp-menu-mega').length > 0){
25            $this.data({
26                click:  $this.data('click').toString() == 'true'?false:true
27            });
28        }
29        $('.dexp-dropdown ul li a').not($this).data({click:true});
30        /*Mobile*/
31        if($this.data('click') == false){
32            $li.find('> .menu-toggler').trigger('click');
33        }
34        return $this.data('click');
35    });
36    $('.dexp-dropdown ul li').hover(function() {
37        if($(window).width()<992) return true;
38        var container_width = $(window).width();
39        var $submenu = $(this).find('>ul,>.dexp-menu-mega').not('.container'), ww = $(window).width(), innerw = ww - (ww - container_width) / 2;
40        if ($submenu.length === 0)
41            return;
42        /*RTL*/
43        if($('body').hasClass('rtl')){
44            var limit = (ww - container_width)/2;
45            var offsetX = limit-$submenu.offset().left;
46            if(offsetX > 0){
47                var transformX = offsetX + 'px';
48                $submenu.css({
49                    transform: 'translateX('+transformX+')'
50                });
51            }
52        }else{
53            /*LTR*/
54            var offsetX = $submenu.offset().left + $submenu.width() - innerw;
55            if (offsetX > 0) {
56                var transformX = 0 - offsetX + 'px';
57                $submenu.css({
58                   transform: 'translateX('+transformX+')'
59                });
60            }
61        }
62    }, function() {
63        var $submenu = $(this).find('>ul,>.dexp-menu-mega');
64        if ($submenu.length === 0)
65            return;
66        $submenu.css({
67            transform: 'translateX(0)'
68        });
69    });
70    $('.dexp-dropdown .container').each(function(){
71       $(this).parent('li').addClass('dexp-static')
72    });
73});

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.