PageSourceSearch

https://eman-archives.org/EMAN/themes/eman/javascripts/menu.js?v=3.1.2

js eman-archives.org collected 2026-10-02 04:20:51 UTC 664 bytes, 28 lines download raw bytes

1$ = jQuery;
2
3$(document).ready(function() {
4  // Manage markers on menu item parents
5  $('.main-menu li').each(function(i, e) {
6    if ($(e).find('li').length > 0) {
7      $(e).addClass('parent');
8    }
9  });
10});
11
12if (!Berlin) {
13    var Berlin = {};
14}
15
16(function ($) {
17    Berlin.dropDown = function(){
18        var dropdownMenu = $('#mobile-nav');
19        dropdownMenu.prepend('<a href="#" class="menu">Menu</a>');
20        //Hide the rest of the menu
21        $('#mobile-nav .navigation').hide();
22
23        //function the will toggle the menu
24        $('.menu').click(function() {
25            $("#mobile-nav .navigation").slideToggle();
26        });
27    };
28})(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.