$(window).on("scroll",function(e){
$(".b-close").trigger("click");
});
//==============NITIALIZATIONS
$(document).ready(function(e) {
//-----Adjust
//adjustSlider();
$(".clickable-product").on("click",function(e) {
var pItem = $(this).attr("id");
$(".img-loader").each(function(index, element) {
$(element).css("top","100px !important");
});
$("#"+pItem+"-detail").bPopup({ });
var pos = $(window).scrollTop()+120;
$("#"+pItem+"-detail").css("top",pos+"px");
});
//-----Call slider
var owl = $('.owl-carousel');
owl.owlCarousel({
nav:true,
items:1,
autoplay: 1500,
autoplayTimeout:4000,
autoplayHoverPause : true,
loop:true,
onTranslate: function() {
$('.owl-item').find('video').each(function() {
this.currentTime = 0;
this.play();
});
}
});
//-----Adjust next previous buttons
$(".owl-prev, .owl-next").html("");
$(".owl-prev").html("
");
$(".owl-next").html("
");
//-----Force footer stick
});
$(document).ready(function(e) {
var video = document.querySelector("#cnc_video");
video.volume = 0;
video.play();
});