I've got this sticky code working on one of my divs. I was wondering if it was possible to only work on desktops... I don't want it to be sticky on mobiles or tablets.
var $window = $(window),
$stickyEl = $('#single_text'),
elTop = $stickyEl.offset().top;
$window.scroll(function() {
$stickyEl.toggleClass('sticky', $window.scrollTop() > elTop);
});