1(function($) { 2 "use strict"; 3 4$(document).ready(function() { 5 6// $(this).scroll(function() { 7// $('.navbar-default').toggleClass('navbar-fixed-top', $(this).scrollTop() >= 35); 8// if($(this).scrollTop() <= 35){ 9// var currentTop = 27; 10// var logoTop = 14; 11// var imgRetio = 46; 12// $('.navbar-nav > li > a').css('paddingTop', (currentTop - ($(this).scrollTop() / 3)) + "px"); 13// $('.navbar-nav > li > a').css('paddingBottom', (currentTop - ($(this).scrollTop() / 3)) + "px"); 14// $('.navbar-brand').css('marginTop', (logoTop - ($(this).scrollTop() / 3)) + 1 + "px"); 15// $('.navbar-brand').css('marginBottom', (logoTop - ($(this).scrollTop() / 3)) + "px"); 16// $('.navbar-brand img').css('height', (imgRetio - ($(this).scrollTop() / 3)) + "px"); 17// } 18// else if ($(this).scrollTop() >= 35) { 19// $('.navbar-nav > li > a').css('paddingTop', "15.666666666666666px"); 20// $('.navbar-nav > li > a').css('paddingBottom', "15.666666666666666px"); 21// $('.navbar-brand').css('marginTop', "3.666666666666666px"); 22// $('.navbar-brand').css('marginBottom', "2.666666666666666px"); 23// $('.navbar-brand img').css('height', "34.666666666666664px"); 24// } 25// }); 26 27 28 29 30 31 $('.dropdown-submenu').hover(function () { 32 if ($(window).width() >= 479) { 33 var p = $(this); 34 var offset = p.offset(); 35 36 var multiLeft = offset.left; 37 var multilevelWidth = $(".multilevel").width(); 38 var sublevelWidth = $(this).find(".dropdown-menu").width(); 39 40 var allWidth = multiLeft + multilevelWidth + sublevelWidth; 41 42 if ($(window).width() <= allWidth) { 43 $(this).find(".dropdown-menu").css("marginLeft", "-" + (multilevelWidth + sublevelWidth) + "px"); 44 } else { 45 $(".dropdown-submenu>.dropdown-menu").css("marginLeft", " "); 46 } 47 } else { 48 $(".dropdown-submenu>.dropdown-menu").css("marginLeft", " "); 49 } 50 }); 51 52 53}); 54 55})(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.