| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/quagiare.com-bk/public_html/skin/js/ |
Upload File : |
$(document).ready(function ($){
awe_backtotop();
awe_category();
awe_tab();
awe_lazyloadImage();
awe_owl();
$('.nav-category ul ul li.active').parents('.nav-category ul li').toggleClass('active', true);
$(document).on('click', '.btn-buy-now-click', function(e) {e.preventDefault();$('[data-role=addtocart]').click();});
$('#trigger-mobile').click(function(){$(".mobile-main-menu").addClass('active');$(".backdrop__body-backdrop___1rvky").addClass('active');});
$('#close-nav').click(function(){$(".mobile-main-menu").removeClass('active');$(".backdrop__body-backdrop___1rvky").removeClass('active');});
$('.backdrop__body-backdrop___1rvky').click(function(){$(".mobile-main-menu").removeClass('active');$(".backdrop__body-backdrop___1rvky").removeClass('active');});
$(window).resize( function(){if ($(window).width() > 1023){$(".mobile-main-menu").removeClass('active');$(".backdrop__body-backdrop___1rvky").removeClass('active');}});
$('.ng-has-child1 a .fa1').on('click', function(e){
e.preventDefault();var $this = $(this);$this.parents('.ng-has-child1').find('.ul-has-child1').stop().slideToggle();$(this).toggleClass('active')
return false;
});
$('.main_container.collection .filter-mobile-tittle').on('click', function(e){
e.preventDefault();var $this = $(this);$this.parents('.main_container.collection').find('.aside-filter').stop().slideToggle();$(this).toggleClass('active')
return false;
});
$('.ng-has-child1 .ul-has-child1 .ng-has-child2 a .fa2').on('click', function(e){
e.preventDefault();var $this = $(this);$this.parents('.ng-has-child1 .ul-has-child1 .ng-has-child2').find('.ul-has-child2').stop().slideToggle();$(this).toggleClass('active')
return false;
});
$('.footer-inner .col-md-3 .footer-widget h3').on('click', function(e){
e.preventDefault();var $this = $(this);$this.parents('.footer-inner .col-md-3 .footer-widget').find('ul').stop().slideToggle();$(this).toggleClass('active')
return false;
});
$('.btn--view-more').on('click', function(e){
e.preventDefault();
var $this = $(this);
$this.parents('.product-tab').find('#tab-1').toggleClass('expanded');
$(this).toggleClass('active');
return false;
});
if ($(window).width() >1025) {
$("body .support-cart").hover(
function () {
$("body #menu-overlay").addClass('reveal');
},
function () {
$("body #menu-overlay").removeClass("reveal");
}
);
};
deferimg('.news-item-products img', 100);
});
function awe_lazyloadImage() {
var i = $("[data-lazyload]");
i.length > 0 && i.each(function() {
var i = $(this), e = i.attr("data-lazyload");
i.appear(function() {
i.removeAttr("height").attr("src", e);
}, {
accX: 0,
accY: 120
}, "easeInCubic");
});
}
window.awe_lazyloadImage=awe_lazyloadImage;
$(document).on('click','.overlay, .close-popup, .btn-continue, .fancybox-close', function() {
hidePopup('.awe-popup');
setTimeout(function(){$('.loading').removeClass('loaded-content');},500);
return false;
})
function awe_showNoitice(selector) {
$(selector).animate({right: '0'}, 500);
setTimeout(function(){$(selector).animate({right: '-300px'}, 500);}, 3500);
}
window.awe_showNoitice=awe_showNoitice;
function awe_showLoading(selector) {
var loading = $('.loader').html();
$(selector).addClass("loading").append(loading);
}
window.awe_showLoading=awe_showLoading;
function awe_hideLoading(selector) {
$(selector).removeClass("loading");
$(selector + ' .loading-icon').remove();
}
window.awe_hideLoading=awe_hideLoading;
function awe_showPopup(selector) {
$(selector).addClass('active');
}
window.awe_showPopup=awe_showPopup;
function awe_hidePopup(selector) {
$(selector).removeClass('active');
}
window.awe_hidePopup=awe_hidePopup;
function awe_convertVietnamese(str) {
str= str.toLowerCase();str= str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a");str= str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e");str= str.replace(/ì|í|ị|ỉ|ĩ/g,"i");str= str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"); str= str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u");str= str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y");str= str.replace(/đ/g,"d"); str= str.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-");str= str.replace(/-+-/g,"-");str= str.replace(/^\-+|\-+$/g,"");
return str;
}
window.awe_convertVietnamese=awe_convertVietnamese;
function awe_category(){
$('.nav-category .fa-angle-down').click(function(e){
$(this).parent().toggleClass('active');
});
}
window.awe_category=awe_category;
function awe_owl() {
$('.owl-carousel:not(.not-dqowl)').each( function(){
var xss_item = $(this).attr('data-xss-items');
var xs_item = $(this).attr('data-xs-items');
var md_item = $(this).attr('data-md-items');
var sm_item = $(this).attr('data-sm-items');
var lg_item = $(this).attr('data-lg-items');
var margin=$(this).attr('data-margin');
var dot=$(this).attr('data-dot');
if (typeof margin !== typeof undefined && margin !== false){}else{margin = 30;}
if (typeof margin !== typeof undefined && margin !== false){}else{margin = 30;}
if (typeof xss_item !== typeof undefined && xss_item !== false){}else{xss_item = 1;}
if (typeof xs_item !== typeof undefined && xs_item !== false){}else{xs_item = 1;}
if (typeof sm_item !== typeof undefined && sm_item !== false){}else{sm_item = 3;}
if (typeof md_item !== typeof undefined && md_item !== false){}else{md_item = 3;}
if (typeof lg_item !== typeof undefined && lg_item !== false){}else{lg_item = 4;}
if (typeof dot !== typeof undefined && dot !== true){dot= true;}else{dot = false;}
$(this).owlCarousel({
loop:false,
margin:Number(margin),
responsiveClass:true,
dots:dot,
nav:true,
navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>","<i class='fa fa-angle-right' aria-hidden='true'></i>"],
responsive:{
0:{items:Number(xss_item),margin:10},
543:{items:Number(xs_item)},
768:{items:Number(sm_item)},
992:{items:Number(md_item)},
1200:{items:Number(lg_item)}
}
})
})
}
window.awe_owl=awe_owl;
$(".collections-slider").owlCarousel({
nav:true,
navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>","<i class='fa fa-angle-right' aria-hidden='true'></i>"],
slideSpeed : 600,
paginationSpeed : 400,
singleItem:true,
pagination : false,
dots: false,
autoplay:false,
lazyLoad:false,
margin:10,
autoplayTimeout:6000,
autoplayHoverPause:true,
autoHeight: false,
loop: true,
responsive: {
0: {
items: 1
},
543: {
items: 1
},
768: {
items: 2
},
991: {
items: 2
},
992: {
items: 2
},
1024: {
items: 2
},
1200: {
items: 2
},
1590: {
items: 2
}
}
});
$(".home-slider").owlCarousel({
nav:true,navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>","<i class='fa fa-angle-right' aria-hidden='true'></i>"],slideSpeed : 600,paginationSpeed : 400,singleItem:true,pagination : false,dots: true,autoplay:false,autoplayTimeout:5000,autoplayHoverPause:true,autoHeight: false,loop: true,
responsive: {
0:{items: 1},
543:{items:1},
768:{items:1},
991:{items:1},
992:{items:1},
1300:{items:1},
1590:{items:1}
}
});
$(".owl-policy-mobile").owlCarousel({
nav:false,slideSpeed : 600,paginationSpeed : 400,singleItem:false,pagination : false,dots: false,autoplay:true,autoplayTimeout:4500,autoplayHoverPause:false,autoHeight: false,loop: false,
responsive: {
0:{items:2, margin:10, autoHeight: true},
543:{items:2},
768:{items:3},
991:{items:3},
992:{items:4},
1300:{items:4},
1590:{items:4}
}
});
$(".section-tour-owl").owlCarousel({
nav:true,
slideSpeed : 600,
paginationSpeed : 400,
singleItem:true,
pagination : false,
dots: true,
autoplay:false,
lazyLoad:false,
navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>","<i class='fa fa-angle-right' aria-hidden='true'></i>"],
margin:0,
autoplayTimeout:6000,
autoplayHoverPause:true,
autoHeight: false,
loop: false,
responsive: {
0:{items: 2},
543:{items:2},
768:{items:3},
991:{items:3},
992:{items:5},
1024:{items:5},
1200:{items:5},
1590:{items:5}
}
});
function awe_backtotop() {
if ($('.back-to-top').length) {
var scrollTrigger = 100,
backToTop = function () {
var scrollTop = $(window).scrollTop();
if (scrollTop > scrollTrigger) {
$('.back-to-top').addClass('show');
} else {
$('.back-to-top').removeClass('show');
}
};
backToTop();
$(window).on('scroll', function () {
backToTop();
});
$('.back-to-top').on('click', function (e) {
e.preventDefault();
$('html,body').animate({
scrollTop: 0
}, 700);
});
}
}
window.awe_backtotop=awe_backtotop;
function awe_tab() {
$(".e-tabs:not(.not-dqtab)").each( function(){
$(this).find('.tabs-title li:first-child').addClass('current');
$(this).find('.tab-content').first().addClass('current');
$(this).find('.tabs-title li').click(function(){
var tab_id = $(this).attr('data-tab');
var url = $(this).attr('data-url');
$(this).closest('.e-tabs').find('.tab-viewall').attr('href',url);
$(this).closest('.e-tabs').find('.tabs-title li').removeClass('current');
$(this).closest('.e-tabs').find('.tab-content').removeClass('current');
$(this).addClass('current');
$(this).closest('.e-tabs').find("#"+tab_id).addClass('current');
});
});
}
window.awe_tab=awe_tab;
$('.dropdown-toggle').click(function() {
$(this).parent().toggleClass('open');
});
$('.btn-close').click(function() {
$(this).parents('.dropdown').toggleClass('open');
});
$('body').click(function(event) {
if (!$(event.target).closest('.dropdown').length) {
$('.dropdown').removeClass('open');
};
});
$(document).on('keydown','#qty, #quantity-detail, .number-sidebar',function(e){-1!==$.inArray(e.keyCode,[46,8,9,27,13,110,190])||/65|67|86|88/.test(e.keyCode)&&(!0===e.ctrlKey||!0===e.metaKey)||35<=e.keyCode&&40>=e.keyCode||(e.shiftKey||48>e.keyCode||57<e.keyCode)&&(96>e.keyCode||105<e.keyCode)&&e.preventDefault()});