Lưu trữ Vest - UMvest - Vest nam - Vest cưới giá rẻ TP HCM Skip to content Thêm Vào Giỏ
Sản phẩm này có nhiều biến thể. Các tùy chọn có thể được chọn trên trang sản phẩm Thêm Vào Giỏ
Sản phẩm này có nhiều biến thể. Các tùy chọn có thể được chọn trên trang sản phẩm Thêm Vào Giỏ
Sản phẩm này có nhiều biến thể. Các tùy chọn có thể được chọn trên trang sản phẩm
jQuery(function() { var jQuerywindow = jQuery(window),
win_height_padded = jQuerywindow.height() * 1.1,
isTouch = (typeof Modernizr !== 'undefined' && Modernizr.touch) ? true : false; if (isTouch) { jQuery('.animation').addClass('animated'); } jQuerywindow.on('scroll', revealOnScroll); function revealOnScroll() {
var scrolled = jQuerywindow.scrollTop(),
win_height_padded = jQuerywindow.height() * 1.1; // Showed...
jQuery(".animation:not(.animated)").each(function () {
var jQuerythis = jQuery(this),
offsetTop = jQuerythis.offset().top; if (scrolled + win_height_padded > offsetTop) {
if (jQuerythis.data('timeout')) {
window.setTimeout(function(){
jQuerythis.addClass('animated ' + jQuerythis.data('animate'));
}, parseInt(jQuerythis.data('timeout'),10));
} else {
jQuerythis.addClass('animated ' + jQuerythis.data('animate'));
}
}
});
// Hidden...
jQuery(".animation.animated").each(function (index) {
var jQuerythis = jQuery(this),
offsetTop = jQuerythis.offset().top;
if (scrolled + win_height_padded < offsetTop) {
jQuery(this).removeClass('animated fadeInUp flipInX lightSpeedIn')
}
});
} revealOnScroll();
jQuery(document).ready(function( $ ){
jQuery('.dropdown-lang .menu-btn').click(function(){
jQuery(this).parent().find('.menu-content').toggleClass('activelang');
});
});
jQuery(".level1:visible").length;
var parentContainerWidth = jQuery(".row").parent().width();
var containedBoxesCount = jQuery('.animation').filter(function () {
return jQuery(this).offset().left <= parentContainerWidth;
}).length;
console.log(jQuery(".animation:visible").length);
}); jQuery(document).ready(function(){
function initOwlSliders() {
if (typeof jQuery.fn.owlCarousel !== 'function') {
setTimeout(initOwlSliders, 50);
return;
}
var fixOwl = function(){
var $stage = jQuery('.owl-stage'),
stageW = $stage.width(),
$el = jQuery('.owl-item'),
elW = 0;
$el.each(function() {
elW += jQuery(this).width()+ +(jQuery(this).css("margin-right").slice(0, -2))
});
if ( elW > stageW ) {
$stage.width( elW );
};
}; if(jQuery('.videohome').length>0){
jQuery(".videohome")
.owlCarousel({
items: 1,
slideSpeed: 2000,
nav: false,
autoplay: false,
dots: false,
loop: false,
responsiveRefreshRate: 200,
onInitialized: fixOwl,
onRefreshed: fixOwl,
navText: [
'',
''
]
});
} if(jQuery("#sync1").length>0){
jQuery("video").bind("ended", function() {
jQuery(this).prop("controls",true);
});
jQuery("video").bind("play", function() {
jQuery(this).prop("controls",false);
});
var syncedSecondary = true; jQuery("#sync1")
.owlCarousel({
items: 1,
autoHeight:false,
slideSpeed: 2000,
nav: true,
autoplay: false,
dots: false,
loop: true,
responsiveRefreshRate: 200,
onInitialized: fixOwl,
onRefreshed: fixOwl,
navText: [
'',
''
]
})
.on("changed.owl.carousel", syncPosition); jQuery("#sync2")
.on("initialized.owl.carousel", function() {
jQuery("#sync2")
.find(".owl-item")
.eq(0)
.addClass("current");
})
.owlCarousel({
items: 4,
dots: true,
nav: true,
margin:5,
navText: [
'',
''
],
smartSpeed: 200,
slideSpeed: 500,
slideBy: 4,
responsiveRefreshRate: 100,
onInitialized: fixOwl,
onRefreshed: fixOwl,
})
.on("changed.owl.carousel", syncPosition2); function syncPosition(el) {
var count = el.item.count - 1;
var current = Math.round(el.item.index - el.item.count / 2 - 0.5); if (current < 0) {
current = count;
}
if (current > count) {
current = 0;
}
jQuery("#sync2")
.find(".owl-item")
.removeClass("current")
.eq(current)
.addClass("current");
var onscreen = jQuery("#sync2").find(".owl-item.active").length - 1;
var start = jQuery("#sync2")
.find(".owl-item.active")
.first()
.index();
var end = jQuery("#sync2")
.find(".owl-item.active")
.last()
.index(); if (current > end) {
jQuery("#sync2").data("owl.carousel").to(current, 100, true);
}
if (current < start) {
jQuery("#sync2").data("owl.carousel").to(current - onscreen, 100, true);
}
} function syncPosition2(el) {
if (syncedSecondary) {
var number = el.item.index;
jQuery("#sync1").data("owl.carousel").to(number, 100, true);
}
} jQuery("#sync2").on("click", ".owl-item", function(e) {
e.preventDefault();
var number = jQuery(this).index();
jQuery("#sync1").data("owl.carousel").to(number, 300, true);
}); jQuery("#sync1").on('changed.owl.carousel', function(event) {
jQuery(this).find('video').prop("muted",true);
});
}
} initOwlSliders();
});