PageSourceSearch

https://www.graphe.it/js/ver5/draggable_menu.js

js graphe.it collected 2026-10-02 10:20:19 UTC 1,654 bytes, 39 lines download raw bytes

1$(window).on('load', function () {
2    loadDragSlide();
3});
4$(window).on('resize', function () {
5    loadDragSlide();
6});
7
8function loadDragSlide() {
9    if ( $('.draggable-menu-wrapper>.wrap').length ) {
10        $('.draggable-menu-wrapper>.wrap').each(function( index ) {
11            if ( $(this).width() >= $(this).find('ul.nav.draggable-menu-items').width() ) {
12                try {
13                    $(this).find('.drag-slide').sly(false);
14                } catch(e) {}
15                return false;
16            }
17        });         
18        $.getScript("/js/drag-slide/plugins.js", function() {
19            $.getScript("/js/drag-slide/sly.min.js", function() {
20                $.getScript("/js/drag-slide/drag-slide.js", function() {
21                    var dragStartIndex;
22                    $('.draggable-menu-wrapper>.wrap').each(function( index ) {
23                        if ( $(this).width() >= $(this).find('ul.nav.draggable-menu-items').width() ) {
24                            $(this).addClass('disabled-drag-menu');
25                        } else {
26                            $(this).removeClass('disabled-drag-menu');
27                            dragStartIndex = $(this).find('.drag-slide ul.draggable-menu-items>li').index($(this).find('.drag-slide ul.draggable-menu-items>li.selected'));
28                            $(this).find('.drag-slide').attr('data-start', dragStartIndex);
29                            $(this).find('.drag-slide').sly(false);
30                            $(this).find('.drag-slide').sly('reload');
31                        }
32                    });
33                });
34            });
35        });
36    }
37    
38}
39

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.