- disabled expanding cards on mobile devices
This commit is contained in:
parent
4b5b7a9464
commit
962bfa780d
@ -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) {
|
$(".expandable-card").on('mouseenter', function(e) {
|
||||||
var width = $(this).width();
|
var width = $(this).width();
|
||||||
var avail_space = $(window).height() - $(this).offset().top + $(this).height();
|
var avail_space = $(window).height() - $(this).offset().top + $(this).height();
|
||||||
@ -56,6 +59,7 @@ function init_home_cards(){
|
|||||||
$(this).css("z-index", 1);
|
$(this).css("z-index", 1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user