site-aurore/assets/js/perso.js
2019-03-05 17:38:45 +01:00

16 lines
330 B
JavaScript

(function($) {
$(window).on('load', function() {
var $menu = $('#nav');
var $menu_simple = $("<ul class=\"simple\"></ul>");
$menu.children("ul").each(function(index) {
$(this).children("li").each(function(index) {
$menu_simple.append($(this).clone());
});
});
$menu.append($menu_simple);
});
})(jQuery);