1(function($) { 2 3$('.eMessage img').addClass('img-responsive'); 4 $.fn.menumaker = function(options) { 5 6 var cssmenu = $(this), settings = $.extend({ 7 title: "Menu", 8 format: "dropdown", 9 sticky: false 10 }, options); 11 12 return this.each(function() { 13 cssmenu.prepend('<div id="menu-button">ÐенÑ</div>'); 14 $(this).find("#menu-button").on('click', function(){ 15 $(this).toggleClass('menu-opened'); 16 var mainmenu = $(this).next('ul'); 17 if (mainmenu.hasClass('open')) { 18 mainmenu.hide().removeClass('open'); 19 } 20 else { 21 mainmenu.show().addClass('open'); 22 if (settings.format === "dropdown") { 23 mainmenu.find('ul').show(); 24 } 25 } 26 }); 27 28 cssmenu.find('li ul').parent().addClass('uWithSubmenu'); 29 30 multiTg = function() { 31 cssmenu.find(".uWithSubmenu").prepend('<span class="submenu-button"></span>'); 32 cssmenu.find('.submenu-button').on('click', function() { 33 $(this).toggleClass('submenu-opened'); 34 if ($(this).siblings('ul').hasClass('open')) { 35 $(this).siblings('ul').removeClass('open').hide(); 36 } 37 else { 38 $(this).siblings('ul').addClass('open').show(); 39 } 40 }); 41 }; 42 43 if (settings.format === 'multitoggle') multiTg(); 44 else cssmenu.addClass('dropdown'); 45 46 if (settings.sticky === true) cssmenu.css('position', 'fixed'); 47 48 resizeFix = function() { 49 if ($( window ).width() > 1024) { 50 cssmenu.find('ul').show(); 51 } 52 53 if ($(window).width() <= 768) { 54 cssmenu.find('ul').hide().removeClass('open'); 55 } 56 }; 57 resizeFix(); 58 return $(window).on('resize', resizeFix); 59 60 }); 61 }; 62})(jQuery); 63 64(function($){ 65$(document).ready(function(){ 66 67$(document).ready(function() { 68 $(".uMenuV").menumaker({ 69 title: "Menu", 70 format: "multitoggle" 71 }); 72 73 $(".uMenuV").prepend("<div id='menu-line'></div>"); 74 75var foundActive = false, activeElement, linePosition = 0, menuLine = $(".uMenuV #menu-line"), lineWidth, defaultPosition, defaultWidth; 76 77$(".uMenuV > ul > li").each(function() { 78 if ($(this).children().hasClass('uMenuItemA')) { 79 activeElement = $(this); 80 foundActive = true; 81 } 82}); 83 84if (foundActive === false) { 85 activeElement = $(".uMenuV > ul > li").first(); 86} 87 88defaultWidth = lineWidth = activeElement.width()-20; 89 90defaultPosition = linePosition = activeElement.position().left+20; 91 92menuLine.css("width", lineWidth); 93menuLine.css("left", linePosition); 94 95$(".uMenuV > ul > li").hover(function() { 96 activeElement = $(this); 97 lineWidth = activeElement.width()-20; 98 linePosition = activeElement.position().left+20; 99 menuLine.css("width", lineWidth); 100 menuLine.css("left", linePosition); 101}, 102function() { 103 menuLine.css("left", defaultPosition); 104 menuLine.css("width", defaultWidth); 105}); 106 107}); 108 109 110}); 111})(jQuery);
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.