41 lines
765 B
JavaScript
41 lines
765 B
JavaScript
require('@assets/js/owl.carousel.js');
|
|
|
|
const $body = $('body');
|
|
|
|
// vypnout jQuery animace pro mobily
|
|
if ($(window).width() < 992) {
|
|
$.fx.off = true;
|
|
}
|
|
|
|
$.wpjImage('a[data-rel=gallery], [data-gallery]', {
|
|
zoom: {
|
|
enabled: false
|
|
}
|
|
});
|
|
|
|
$.wpjImage('a[data-image=360]', {
|
|
type: 'iframe',
|
|
mainClass: 'mfp-360'
|
|
});
|
|
|
|
// JS detection
|
|
$('html').removeClass('no-js');
|
|
|
|
// Touch detection
|
|
$body.on('touchstart', function(e) {
|
|
$('html').addClass('touch');
|
|
$('[data-responsive-switch]').removeClass('hidden-sm-up');
|
|
});
|
|
|
|
|
|
// Delegate .transition() calls to .animate()
|
|
// if the browser can't do CSS transitions.
|
|
if (!$.support.transition) {
|
|
$.fn.transition = $.fn.animate;
|
|
}
|
|
|
|
// Zobraz login
|
|
$('#login').login({
|
|
$link: '[data-login-link]'
|
|
});
|