PageSourceSearch

https://archives.org.vn/Assets/Common/Plugins/ddmenu/ddmenu.js

js archives.org.vn collected 2026-10-02 13:02:50 UTC 2,362 bytes, 59 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3
4        $(document).ready(function () {
5            var ddmenuOptions = {
6                menuId: "ddmenu",
7            };
8            var selectingMenu = null;
9            $("#" + ddmenuOptions.menuId + " .full-width").on("click", function (event) {
10                var screensize = $(window).width();
11                if (screensize <= 768) {
12                    if (selectingMenu != null && selectingMenu.is($(this))) {
13                        selectingMenu.removeClass("over");
14                        selectingMenu = null;
15                    } else {
16
17                        if (selectingMenu != null) {
18                            selectingMenu.removeClass("over");
19                        }
20
21                        selectingMenu = $(this);
22                        selectingMenu.addClass("over");
23                    }
24
25                }
26            });
27
28            $("#" + ddmenuOptions.menuId + " .full-width").on("mouseover", function (event) {
29                var screensize = $(window).width();
30                if (screensize > 768) {
31                    // event.preventDefault()
32                    $(this).addClass("over"); selectingMenu = $(this);
33                }
34            });
35
36            $("#" + ddmenuOptions.menuId + " .full-width").on("mouseleave", function (event) {
37                var screensize = $(window).width();
38                if (screensize > 768) {
39                    // event.preventDefault()
40                    $(this).removeClass("over");
41                }
42            });
43
44            $("#" + ddmenuOptions.menuId + " .menu-icon").on("click", function (event) {
45                event.preventDefault()
46                $(this).toggleClass("menu-icon-active");
47                $("#" + ddmenuOptions.menuId + " .main-menu-dock").toggleClass("menu-content-active");
48            });
49            $("#" + ddmenuOptions.menuId + " .menu-search-btn").on("click", function (event) {
50                event.preventDefault();
51                $("#" + ddmenuOptions.menuId + " .menu-tools").toggleClass("search-mode");
52                $(this).find("i").toggleClass("glyphicon glyphicon-remove");
53                $(this).find("i").toggleClass("glyphicon glyphicon-search");
54
55            });
56
57        });
58    });
59})(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.