PATH:
home
/
lab2454c
/
public_html
/
wp-content
/
themes
/
veritserv
/
inc
/
assets
/
js
jQuery(document).ready(function ($) { "use strict"; $("#nav-item").click(function () { // Remove active if this does not have active class if (!($(this).closest("nav-item").hasClass("active"))) { $(this).closest("#nav-item").find("active").removeClass('active'); } $(this).closest("nav-item").addClass('selected'); }); $('.hamburger-menu').on('click', function () { $('.bar').toggleClass('animate'); }) // $('.dropdown-menu > li > .dropdown-menu').parent().addClass('dropdown-submenu').find(' > .dropdown-item').attr('href', 'javascript:;').addClass('dropdown-toggle'); // $('.dropdown-submenu > a').on("click", function(e) { // var dropdown = $(this).parent().find(' > .show'); // $('.dropdown-submenu .dropdown-menu').not(dropdown).removeClass('show'); // $(this).next('.dropdown-menu').toggleClass('show'); // e.stopPropagation(); // }); // $('.dropdown').on("hidden.bs.dropdown", function() { // $('.dropdown-menu.show').removeClass('show'); // }); $('.dropdown-menu > li > .dropdown-menu').parent().addClass('dropdown-submenu').find(' > .dropdown-item').addClass('dropdown-toggle'); $('.dropdown-submenu > a').on("click", function(e) { if (!$(this).next().hasClass('show')) { $(this).parents('.dropdown-menu').first().find('.show').removeClass('show'); } var $subMenu = $(this).next('.dropdown-menu'); $subMenu.toggleClass('show'); $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) { $('.dropdown-submenu .show').removeClass('show'); }); return false; }); $('.dropdown-item').click(function(){ $('.dropdown-item').removeClass('dropdown__item__show') $(this).addClass('dropdown__item__show'); }); if ($(window).width() > 769) { $('.navbar .dropdown').hover(function() { $(this).find('.dropdown-menu').first().stop(true, true).delay(250).slideDown(); }, function() { $(this).find('.dropdown-menu').first().stop(true, true).delay(100).slideUp(); }); $('.navbar .dropdown > a').click(function() { location.href = this.href; }); } });
[+]
..
[-] scripts.js
[edit]
[-] main.js
[edit]
[-] owl.carousel.js
[edit]