- disabled expanding cards on mobile devices

This commit is contained in:
Ross Mountjoy 2020-05-21 12:05:18 -04:00
parent 4b5b7a9464
commit 962bfa780d

View File

@ -35,6 +35,9 @@ function init_home_cards(){
});
});
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
$(".expandable-card").addClass('scrollbar');
} else {
$(".expandable-card").on('mouseenter', function(e) {
var width = $(this).width();
var avail_space = $(window).height() - $(this).offset().top + $(this).height();
@ -56,6 +59,7 @@ function init_home_cards(){
$(this).css("z-index", 1);
});
}
}
$( document ).ready(function() {