hotel_commerce/modules/wkabouthotelblock/views/js/WkAboutHotelBlockFront.js
2023-06-26 13:09:26 +05:30

67 lines
1.9 KiB
JavaScript

/**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*/
$(document).ready(function(){
$('.htlInterior-owlCarousel .owl-carousel').owlCarousel({
loop:true,
nav:true,
navSpeed:1000,
navText:['<div class="nav-direction-wrapper"><div class="nav-direction-primary"><div class="nav-direction-secondary"><i class="icon-angle-left"></i></div></div></div>','<div class="nav-direction-wrapper"><div class="nav-direction-primary"><div class="nav-direction-secondary"><i class="icon-angle-right"></i></div></div></div>'],
dots:false,
items: 1,
autoHeight:true,
autoplay:true,
autoplaySpeed:1000,
autoplayTimeout:5000,
autoplayHoverPause:true,
responsiveClass:true,
responsive:{
1200:{
items:3
},
480:{
items:2
},
}
});
$('.interiorbox').on('mouseenter', function(){
$(this).find('div.interiorHoverBlockWrapper').show();
});
$('.interiorbox').on('mouseleave', function(){
$(this).find('div.interiorHoverBlockWrapper').hide();
});
$("div.interiorbox").fancybox({
autoDimensions: true,
autoScale: true,
autoSize: true,
centerOnScroll: true,
height: 'auto',
scrolling: 'auto',
width: 'auto',
maxWidth: 700,
'hideOnContentClick': false,
helpers: {
overlay: {
locked: false
}
}
});
});