(function ($) {
"use strict";
/*--
Menu Stick
-----------------------------------*/
var header = $('.sticky-bar');
var win = $(window);
let ele_page = $("body").hasClass("product_pg");
if(ele_page == true){
}
function naChanges(){
$("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff");
}
setTimeout(naChanges, 1000);
win.on('scroll', function() {
var scroll = win.scrollTop();
if (scroll < 200) {
header.removeClass('stick');
if(ele_page == true){
$(".header-bottom.sticky-bar.stick").removeClass("sticky-bar stick");
let img_src = `./dist/assets/imgs/anwi-logo-2.png`;
$(".logo-menu-wrap").find("a img").attr("src",img_src);
$(".main-menu").find("nav ul li a").addClass("text-white");
$("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff");
}
} else {
header.addClass('stick');
if(ele_page == true){
$(".header-bottom").addClass("sticky-bar stick");
let src = `./dist/assets/imgs/anwi-logo-1.png`;
$(".logo-menu-wrap").find("a img").attr("src",src);
$(".main-menu").find("nav ul li a").removeClass("text-white");
$("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","currentcolor");
}
}
});
/*--------------------------------
Slider active 1
-----------------------------------*/
$('.slider-active-1').slick({
slidesToShow: 1,
slidesToScroll: 1,
fade: true,
loop: true,
dots: false,
arrows: true,
prevArrow: '',
nextArrow: '',
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Slider active 2
-----------------------------------*/
$('.slider-active-2').slick({
slidesToShow: 1,
slidesToScroll: 1,
fade: true,
loop: true,
dots: true,
arrows: false,
prevArrow: '',
nextArrow: '',
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--
Slider active 3
-----------------------------------*/
$('.slider-active-3').slick({
arrows: false,
infinite: true,
slidesToShow: 1,
dots: true,
fade: true,
autoplay: false,
autoplaySpeed: 5000,
customPaging : function(slider, i) {
var thumb = $(slider.$slides[i]).data('thumb');
return '';
},
responsive: [
{
breakpoint: 767,
settings: {
dots: true,
autoplay: false,
autoplaySpeed: 5000,
}
}
]
});
/*--------------------------------
slider active 4
-----------------------------------*/
$('.slider-active-4').slick({
slidesToShow: 1,
slidesToScroll: 1,
fade: true,
loop: true,
dots: true,
arrows: false,
prevArrow: '',
nextArrow: '',
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Slider active 5
-----------------------------------*/
$('.slider-active-5').slick({
slidesToShow: 1,
slidesToScroll: 1,
fade: true,
loop: true,
dots: true,
arrows: false,
prevArrow: '',
nextArrow: '',
});
/*--------------------------------
Product slider active 1
-----------------------------------*/
$('.product-slider-active-1').slick({
slidesToShow: 3,
slidesToScroll: 1,
loop: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Product slider active 2
-----------------------------------*/
$('.product-slider-active-2').slick({
slidesToShow: 6,
slidesToScroll: 1,
loop: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 6,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Product slider active 3
-----------------------------------*/
$('.product-slider-active-3').slick({
slidesToShow: 2,
slidesToScroll: 1,
loop: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Product slider active 4
-----------------------------------*/
$('.product-slider-active-4').slick({
slidesToShow: 4,
slidesToScroll: 1,
loop: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Brand logo active
-----------------------------------*/
$('.brand-logo-active , .brand-logo-active-2').slick({
slidesToShow: 6,
slidesToScroll: 1,
loop: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 6,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 5,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 2,
slidesToScroll: 1,
}
}
]
});
/*--------------------------------
Brand logo active 3
-----------------------------------*/
$('.brand-logo-active-3').slick({
slidesToShow: 6,
slidesToScroll: 1,
loop: true,
dots: true,
arrows: false,
responsive: [{
breakpoint: 1500,
settings: {
slidesToShow: 6,
slidesToScroll: 1,
}
},
{
breakpoint: 1199,
settings: {
slidesToShow: 5,
slidesToScroll: 1,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
}
},
{
breakpoint: 767,
settings: {
autoplay: false,
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 575,
settings: {
autoplay: false,
slidesToShow: 2,
slidesToScroll: 1,
}
}
]
});
/*---------------------
Countdown 1
--------------------- */
$('.timer-1 [data-countdown]').each(function() {
var $this = $(this),
finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
$this.html(event.strftime(' %-D Days Hours Minutes Day Hour Minute Second Hour Minute Second