2018-10-09 05:37:38 +00:00
|
|
|
$(window).scroll(function() {
|
2018-10-14 06:53:38 +00:00
|
|
|
if ($(document).scrollTop() > 0) {
|
2018-10-09 05:37:38 +00:00
|
|
|
$('nav').addClass('shrink');
|
|
|
|
} else {
|
|
|
|
$('nav').removeClass('shrink');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$(window).scroll(function(){
|
|
|
|
$(".top").css("opacity", 1 - $(window).scrollTop() / 100);
|
|
|
|
});
|
2018-10-15 02:24:44 +00:00
|
|
|
|
|
|
|
$('.dropdown-menu').click(function(e) {
|
|
|
|
e.stopPropagation(); //This will prevent the event from bubbling up and close the dropdown when you type/click on text boxes.
|
|
|
|
});
|