1 console.log ("menu2.js v.25111701"); 2 3if (typeof menu2 === 'undefined'){ 4 window.menu2 = new Object({ 5 ver: "25111701", 6 items: [], 7 addItem: function(name,link ){ 8 this.items.push({"name":name, "link":link}); 9 }, 10 }); 11} 12 13 $(document).ready(function() { 14 if ($(window).width() > 767){ 15 $('#main_menu ul li').hover( 16 function() { 17 $(this).find('.sub').stop(true).slideDown(200); 18 }, 19 function() { 20 $(this).find('.sub').slideUp(200); 21 } 22 ); 23 24 } else { //<767 25 for (let i = 0; i < menu2.items.length; i++) { 26 $('#main_menu ul').append('<li><a href="' + menu2.items[i].link + '" target="_top">' + menu2.items[i].name + '</a></li>'); 27 } 28 29 $('#header-menu').click(function(){ 30 $('#header1').toggleClass('active'); 31 //$('#main_menu ul.topmenu').toggle(); 32 }) 33 $('.menu-open').click(function(){ 34 $('#header1').toggleClass('active'); 35 //$('#main_menu ul.topmenu').toggle(); 36 return (false); 37 }) 38 $('#main_menu ul.menu li.parent > a').click(function(e){ 39 e.preventDefault(); 40 }) 41 $('#main_menu ul.menu li.parent').click(function() { 42 $(this).toggleClass('sub'); 43 }) 44 //$('ul.menu').append('<li class="mobile">'+$('div.links').html()+'</li>'); 45 46 $('ul.mainmenu>li.parent>a').click(function(e){ 47 e.preventDefault(); 48 }) 49 $('ul.mainmenu li.parent a, ul.mainmenu li.parent span').click(function(){ 50 $(this).next('.sub').slideToggle(); 51 }) 52 $('ul.mainmenu ul.topprodukt>li.parent>a').click(function(e){ 53 e.preventDefault(); 54 $(this).next('ul').slideToggle(); 55 }) 56 } //else $(window).width() > 760 57 });
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.