JavaScript
6
Вклад в тег
$(window).width()
@media all and (orientation: landscape) {
/* Target device in landscape mode */
}
@media all and (orientation: portrait) {
/* Target device in portrait mode */
}
function is_touch_device() {
return !!('ontouchstart' in window);
}
$(window).resize(function(){
if($(window).width() > 768){
owlProjects.trigger('destroy.owl.carousel');
}
});