tupali/librerias/landingjs/scripts_landing.js

30 lines
716 B
JavaScript
Raw Normal View History

$(window).scroll(function() {
if ($(document).scrollTop() > 0) {
$('nav').addClass('shrink');
} else {
$('nav').removeClass('shrink');
}
});
$(window).scroll(function(){
$(".top").css("opacity", 1 - $(window).scrollTop() / 100);
});
2018-12-08 23:19:20 +00:00
2019-03-26 18:02:46 +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.
});
$(window).on('load', function() {
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
$('#div_tpaga_mobile').show();
$('#div_tpaga_desktop').hide();
}
else {
$('#div_tpaga_mobile').hide();
$('#div_tpaga_desktop').show();
}
});