I am a jQuery beginner and I need some help. I've built a script that make a sticky element on my page when you scroll :
jQuery(document).ready(function () {
var top = jQuery('#card').offset().top;
jQuery(window).scroll(function (event) {
var y = jQuery(this).scrollTop();
if (y >= top)
jQuery('#card').addClass('fixed'),
jQuery('#card').removeClass('fl-row-fixed-width'),
else
jQuery('#card').removeClass('fixed'),
jQuery('#card').addClass('fl-row-fixed-width');
jQuery('#card').width(jQuery('#card').parent().width());
});
});
It works well.
Now, on mobile, I'd like to add extra instructions such as :
jQuery("#logo").remove()
However, I don't know where to input this and how in my function...