$('#country_bx').on('change', function(){
const check = $(this).val();
if (check == 'India') {
window.location = "https://www.genz-lifestyle.in"
} else if(check == 'International'){
window.location = "https://www.genz-lifestyle.com"
}
});
$('.continue_check').click(function(){
$('.con_pop').css('display','none');
});
var mouse = true;
$('.con_pop').click(function () {
if($(".con_bdy:hover").length == 0){
$('.con_pop').css('display','none');
}
});
$(document).ready(function(){
var check = getCookie("show");
if(check != 'qwerty'){
setTimeout(function(){
$('.con_pop').css('display','flex');
var minutesToAdd=5;
var currentDate = new Date();
var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000);
document.cookie = "show=qwerty;expires="+futureDate+";";
},2000);
}
});
function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(';');
for(let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
var swiper = new Swiper(".mySwiper_mob", {
slidesPerView: 3.5,
spaceBetween: 10,
pagination: {
el: ".swiper-pagination",
clickable: true,
},
});