$(document).ready(function(){ $('#acmenu > ul > li ul').each(function(index, element){ var count = $(element).find('li').length; var content = '' + count + ''; $(element).closest('li').children('a').append(content); }); $('#acmenu ul ul li:odd').addClass('odd'); $('#acmenu ul ul li:even').addClass('even'); $('#acmenu > ul > li > a').click(function() { var checkElement = $(this).next(); $('#acmenu li').removeClass('active'); $(this).closest('li').addClass('active'); if((checkElement.is('ul')) && (checkElement.is(':visible'))) { $(this).closest('li').removeClass('active'); checkElement.slideUp('normal'); } if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { $('#acmenu ul ul:visible').slideUp('normal'); checkElement.slideDown('normal'); } if($(this).closest('li').find('ul').children().length == 0) { return true; } else { return false; } }); });

Hello world!

by    Uncategorized   Tuesday, March 29th, 2022

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!