PageSourceSearch

https://www.esic.edu/themes/esic/js/menu.js?tm7wlc

js esic.edu collected 2026-10-01 08:57:00 UTC 1,851 bytes, 47 lines download raw bytes

1var DELAY = 700, clicks = 0, timer = null;
2(function ($, Drupal) {
3
4$(document).ready(function(){
5
6    $(document).on('click','.menu--main .nav-item.dropdown .nav-link,.menu--main-menu-eng .nav-item.dropdown .nav-link',function (e) {
7      var enlace_seccion = $(this);
8      var todas_secciones = $(this).closest('.new-menu').find('li.nav-item');
9      var iconos_item = $(this).closest('.new-menu').find('svg');
10
11      if ($(document).width() < 1400) {
12        e.preventDefault();
13        var $parent = $(this).closest('li.nav-item');
14        // $parent.find('.dropdown-content').toggle();
15
16        $(iconos_item).each(function(){
17          $(this).removeClass('fa-angle-up');
18          $(this).addClass('fa-angle-down');
19        });
20
21        if($parent.find('.dropdown-content').hasClass('_hidden')){
22          /*PRIMERO OCULTAMOS EN CASO DE QUE HAYA, OTRAS SECCIONES ABIERTAS*/
23          $(todas_secciones).each(function(){
24            $(this).find('.dropdown-content').removeClass('_visible');
25            $(this).find('.dropdown-content').addClass('_hidden');
26          });
27          /*CAMBIAMOS LA FLECHA DE LA SECCIÓN*/
28          enlace_seccion.addClass('open');
29          enlace_seccion.find('svg').removeClass('fa-angle-down');
30          enlace_seccion.find('svg').addClass('fa-angle-up');
31          /*MOSTRAMOS DICHA SECCIÓN*/
32          $parent.find('.dropdown-content').removeClass('_hidden');
33          $parent.find('.dropdown-content').addClass('_visible');
34        }else{
35          enlace_seccion.removeClass('open');
36          enlace_seccion.find('svg').removeClass('fa-angle-up');
37          enlace_seccion.find('svg').addClass('fa-angle-down');
38
39          $parent.find('.dropdown-content').removeClass('_visible');
40          $parent.find('.dropdown-content').addClass('_hidden');
41        }
42      }
43    });
44
45});
46
47})(jQuery, Drupal);

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.