PageSourceSearch

https://admelizovo.ru/static/uil/export/project_mo_theme_short_04/…/scripts/toggle-dropdown.js?20260221052336

js admelizovo.ru collected 2026-10-02 18:19:06 UTC 2,247 bytes, 52 lines download raw bytes

1$(function uil_init_js_toggle_dropdown() {
2
3    var SHOW_TIMEOUT = 3000;
4    var timeouts = {};
5
6    $(document)
7        .on('mouseenter', '*[data-toggle-dropdown-activator]', function () {
8            var $activator = $(this);
9            var id = $activator.attr('data-toggle-dropdown-activator');
10            //console.log('activator mouseenter %s', id);
11            var $target = $('[data-toggle-dropdown-target = ' + id + ']');
12            if (!$target.hasClass('active')) {
13                $('*[data-toggle-dropdown-target]').removeClass('active');
14                $target.addClass('active');
15            }
16            if (timeouts[id] != undefined)
17                clearTimeout(timeouts[id]);
18        })
19        .on('mouseleave', '*[data-toggle-dropdown-activator]', function () {
20            var $activator = $(this);
21            var id = $activator.attr('data-toggle-dropdown-activator');
22            //console.log('activator mouseleave %s', id);
23            var $target = $('[data-toggle-dropdown-target = ' + id + ']');
24            timeouts[id] = setTimeout(function () {
25                if ($target.hasClass('active'))
26                    $target.removeClass('active');
27                clearTimeout(timeouts[id]);
28            }, SHOW_TIMEOUT);
29        })
30        .on('mouseenter', '*[data-toggle-dropdown-target]', function () {
31            var $target = $(this);
32            var id = $target.attr('data-toggle-dropdown-target');
33            //console.log('target mouseenter %s', id);
34            if (!$target.hasClass('active')) {
35                $('*[data-toggle-dropdown-target]').removeClass('active');
36                $target.addClass('active');
37            }
38            if (timeouts[id] != undefined)
39                clearTimeout(timeouts[id]);
40        })
41        .on('mouseleave', '*[data-toggle-dropdown-target]', function () {
42            var $target = $(this);
43            var id = $target.attr('data-toggle-dropdown-target');
44            //console.log('target mouseleave %s', id);
45            timeouts[id] = setTimeout(function () {
46                if ($target.hasClass('active'))
47                    $target.removeClass('active');
48                clearTimeout(timeouts[id]);
49            }, SHOW_TIMEOUT);
50        });
51
52});

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.