20 lines
437 B
JavaScript
20 lines
437 B
JavaScript
$(window).scroll(function() {
|
|
if ($(document).scrollTop() > 0) {
|
|
$('nav').addClass('shrink');
|
|
} else {
|
|
$('nav').removeClass('shrink');
|
|
}
|
|
});
|
|
|
|
$(window).scroll(function(){
|
|
$(".top").css("opacity", 1 - $(window).scrollTop() / 100);
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
$('#user_dropdow').on("click", function(e){
|
|
$(this).next('ul').toggle();
|
|
e.stopPropagation();
|
|
e.preventDefault();
|
|
});
|
|
});
|