`); $(`.header__mobile #header-membership`).empty(); $(`#mobile-header-fixed .header__logo`).append(``); } $(`#xclusive-offer`).attr('href','/pages/exclusive-rewards'); } } }) .fail(function (error) { console.log("Error", error); }) } function getFreeProducts() { let bearerToken; const urlParams = new URLSearchParams(location.search); if(urlParams.has('app_session')){ bearerToken = urlParams.get('app_session'); $('#smartbar-app, .header__new--section').addClass('hide'); $('body').css('padding','0'); }else{ bearerToken = localStorage.getItem("token"); } $.ajax({ url: `${baseUrl}app/api/v1/membership/free-products`, "headers": { "Authorization": `Bearer ${bearerToken}` } }) .done(function (response) { let variant_list = ''; for (let variant_key in response.data) { let reward_variant_free_solution = (response.data[variant_key].disposability == 'dailies')? "" : "Free Solution"; let reward_variants_count = response.data[variant_key].variants?.length; if(urlParams.has('app_session')){ variant_list += `
${response.data[variant_key].product_variant_title}
Rs. ${response.data[variant_key].compare_at_price}FREE
View Product
${response.data[variant_key].product_variant_title}
Rs. ${response.data[variant_key].compare_at_price}FREE
View Product
1-day delivery: Blink and it's here!
Start Your Trial
Clear Lenses
Color Lenses
Toric Lenses
Solutions
Accessories
Video AR
Combo Pack
Login Now
Search
- "Clear Lenses"
- "Color Lenses"
- "Lens Solutions"
- "Lens Cases"
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); }else{ self.parents('.search-bar').find('.search-list').html(`
Showing Results for "${word}"
No Product Found!!
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } } }) .fail(function(error){ self.parents('.search-bar').find('.search-list').html(`
Showing Results for "${word}"
No Product Found!!
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); }) } $(document).on("input","#inputTxt",function(){ let self = $(this); if(self.val().length > 0){ self.parents('.search-bar').find(".search-list").addClass("active"); self.parents('.search-bar').find(".search_text_animation__container").removeClass("active"); self.parents('.search-bar').find(".search-list").show(); if(!isNaN(self.val())){ searchProduct(self.val().replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/=/g, '='),self); } else if(self.val().length > 2){ searchProduct(self.val().replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/=/g, '='),self); }else{ self.parents('.search-bar').find(".search-list").html(`
Showing Results for "${self.val()}"
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } }else{ self.parents('.search-bar').find(".search_text_animation__container").addClass("active"); self.parents('.search-bar').find(".search-list").html(`
Most Searched in Aqualens
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } }); // ---- ---- Click Search Box ---- ---- // $(document).on("click","#inputTxt",function(){ $(this).parent().find('.search_text_animation__container').removeClass('active'); $(this).parents('.search-bar').find(".search-list").html(`
Most Searched in Aqualens
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); $(this).parents('.search-bar').find(".search-list").addClass("active"); $(this).parents('.search-bar').find(".search-list").show(); }); // ---- ---- Open Search Box ---- ---- // $(document).on("click",".search",function(){ $(this).parent().find('.search_text_animation__container').addClass('active'); $(this).parents('.search-bar').addClass('open'); $(this).parent().addClass('open'); }); // ---- ---- Footer Open Search Box ---- ---- // $(document).on("click","#bottom-sticky-search",function(){ $(this).find('svg').addClass('active'); $('.search-bar').find('.search_text_animation__container').addClass('active'); $('.search-bar').addClass('open'); $('.search-bar').find('.search-input-box').addClass('open'); }); // ---- ---- Close Search Box ---- ---- // $(document).on("click",".product-list a",function(){ $(this).parents('.search-bar').find('#inputTxt').val(''); }); $(document).on("click",".close-icon",function(){ $('#bottom-sticky-search svg').removeClass('active'); $(this).parents('.search-bar').removeClass('open'); $(this).parent().removeClass('open'); $(this).parent().find('#inputTxt').val(''); $(this).parents('.search-bar').find(".search-list").empty(); $(this).parents('.search-bar').find(".search-list").removeClass("active"); $(this).parents('.search-bar').find(".search-list").hide(); $(this).parents('.search-bar').find('.search_text_animation__container').removeClass('active'); });
Login Now
Search
- "Clear Lenses"
- "Color Lenses"
- "Lens Solutions"
- "Lens Cases"
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); }else{ self.parents('.search-bar').find('.search-list').html(`
Showing Results for "${word}"
No Product Found!!
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } } }) .fail(function(error){ self.parents('.search-bar').find('.search-list').html(`
Showing Results for "${word}"
No Product Found!!
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); }) } $(document).on("input","#inputTxt",function(){ let self = $(this); if(self.val().length > 0){ self.parents('.search-bar').find(".search-list").addClass("active"); self.parents('.search-bar').find(".search_text_animation__container").removeClass("active"); self.parents('.search-bar').find(".search-list").show(); if(!isNaN(self.val())){ searchProduct(self.val().replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/=/g, '='),self); } else if(self.val().length > 2){ searchProduct(self.val().replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/=/g, '='),self); }else{ self.parents('.search-bar').find(".search-list").html(`
Showing Results for "${self.val()}"
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } }else{ self.parents('.search-bar').find(".search_text_animation__container").addClass("active"); self.parents('.search-bar').find(".search-list").html(`
Most Searched in Aqualens
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); } }); // ---- ---- Click Search Box ---- ---- // $(document).on("click","#inputTxt",function(){ $(this).parent().find('.search_text_animation__container').removeClass('active'); $(this).parents('.search-bar').find(".search-list").html(`
Most Searched in Aqualens
Trending in Aqualens
- Xclusive Membership${svgImage}
- AR Try On${svgImage}
`); $(this).parents('.search-bar').find(".search-list").addClass("active"); $(this).parents('.search-bar').find(".search-list").show(); }); // ---- ---- Open Search Box ---- ---- // $(document).on("click",".search",function(){ $(this).parent().find('.search_text_animation__container').addClass('active'); $(this).parents('.search-bar').addClass('open'); $(this).parent().addClass('open'); }); // ---- ---- Footer Open Search Box ---- ---- // $(document).on("click","#bottom-sticky-search",function(){ $(this).find('svg').addClass('active'); $('.search-bar').find('.search_text_animation__container').addClass('active'); $('.search-bar').addClass('open'); $('.search-bar').find('.search-input-box').addClass('open'); }); // ---- ---- Close Search Box ---- ---- // $(document).on("click",".product-list a",function(){ $(this).parents('.search-bar').find('#inputTxt').val(''); }); $(document).on("click",".close-icon",function(){ $('#bottom-sticky-search svg').removeClass('active'); $(this).parents('.search-bar').removeClass('open'); $(this).parent().removeClass('open'); $(this).parent().find('#inputTxt').val(''); $(this).parents('.search-bar').find(".search-list").empty(); $(this).parents('.search-bar').find(".search-list").removeClass("active"); $(this).parents('.search-bar').find(".search-list").hide(); $(this).parents('.search-bar').find('.search_text_animation__container').removeClass('active'); });
Get Trial Product
Color Lenses
Clear Lenses
Toric Lenses
Solutions
Lens Cases
Combo Pack
Contact Us FAQs Legal Our Manufacturing
Your cart
Home > Contact Lenses and Accessories > Color Contact Lenses > Aquacolor Dailies (2 Lens/ Box)
Free Delivery
Value For Money
Secure Payments
** The color of lenses may differ based on your iris's natural color.
', nextArrow:'
', asNavFor: '#product-img-slider2' }); $('#product-img-slider2').slick({ dots: false, infinite: true, speed: 300, arrows: false, slidesToShow: 6, slidesToScroll: 1, adaptiveHeight: false, focusOnSelect: true, asNavFor: '#product-img-slider1', responsive: [ { breakpoint: 749, settings: { arrows: false, slidesToShow: 1, dots: true, } } ] }); $(document).on("click",".video-placeholder",function(){ if(window.innerWidth <750){ $(".pdp-video__popup-container").show(); $("body").css({"overflow":"hidden"}); $("#pdpVideo").trigger('play'); } }) $(document).on("click",".video__popup-close",function(){ $(".pdp-video__popup-container").hide(); $("body").css({"overflow":"auto"}); $("#pdpVideo").trigger('pause'); }); stickySiderbar(); stickySiderbarMobile(); });
4.5
Supports:
Zero Power
Best Price : with xclusive membership
Get extra 10% off on this product
Choose My Color
15% OFF
Add
− +
Out of Stock
spicy grey
15% OFF
Add
− +
Out of Stock
tricky turquoise
15% OFF
Add
− +
Out of Stock
stormy gray
15% OFF
Add
− +
Out of Stock
walnut brown
15% OFF
Add
− +
Out of Stock
misty gray
15% OFF
Add
− +
Out of Stock
mocha brown
15% OFF
Add
− +
Out of Stock
dusky brown
15% OFF
Add
− +
Out of Stock
submarine blue
15% OFF
Add
− +
Out of Stock
mystery brown
15% OFF
Add
− +
Out of Stock
envy green
', nextArrow: '
', responsive: [ { breakpoint: 749, settings: { arrows: false, variableWidth: true, } } ] }); $('.pdp-color__variant-slider').on('afterChange', function (event, slick, currentSlide) { let nextSlideText = $(this).find('.slick-current.slick-active').find('img').attr("data-color").toUpperCase().trim(); if (!nextSlideText) { nextSlideText = "dumy"; } $('.color__variant-label').each(function () { let $self = $(this); let labelText = ($(this).find(".color__variant-img").attr("data-color")).toUpperCase().trim(); if ((nextSlideText).includes(labelText) || (labelText).includes(nextSlideText)) { // $self.find('.color__variant-content').addClass("variant__slide-match"); // $self.find(".check-sign").removeClass("check-hide"); } }) }); let colorLabel = $(".color__variant-label"); $(document).on("click", ".color__variant-label", function () { $('.pdp-save').addClass("pdp_notWishlisted").removeClass("pdp_wishlisted"); var product_color_item_array = []; //$(".variant__quantity-selector-wrapper").addClass("hide"); $('.color__variant-label').removeClass('.variant__slide-match'); let title = $(this).data("vtitle"); let vId = $(this).attr("data-id"); $('.pdp_main_variant_title').text(title.replace('_',' ')); $('.cta-text').find('span').text($(this).attr('data-vprice')); $('.cta-text').find('span').text($(this).attr('data-vprice')); let colorText = ($(this).find(".color__variant-img").attr("data-color")).toUpperCase().trim(); $('.color__variant-label').each(function () { let $self = $(this); let qtyValue = $(this).find(".quantity__input").val(); if (qtyValue == 0) { $(this).find(".check-sign").addClass("check-hide"); $(this).css({"border":"0px"}); $('.color__variant-label').removeClass("variant__slide-match"); } }) $(this).addClass("variant__slide-match"); $('.pdp-color__slide-wrapper').each(function () { let $self = $(this); let labelText = $(this).find('img').attr("data-color").toUpperCase().trim(); if (colorText == labelText) { var selectedSlide = $self.attr('data-slick-index'); $('.pdp-color__variant-slider').slick('slickGoTo', selectedSlide); } }) let vprice = $(this).attr('data-vprice'); let discount_off = $(this).find('.pdp-color__slide-price--off').text(); $(".pdp-price__sell").html(`${vprice}`); $(".pdp-price__sell").attr('prod-price',vprice.replace('Rs. ','')); $(".pdp-price__off").text(`${discount_off}`); $(".bmsm__price--first").html(`${vprice}/Box`) //$(this).find(".variant__quantity-selector-wrapper").removeClass("hide"); // Add Url Parm with Variant Name var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + `?variant=${vId}`; window.history.replaceState({path:newurl},'',newurl); }) $(document).on("click", ".color__variant-label .variant__quantity-add", function () { if ($(this).parents(".color__variant-label").hasClass("variant__available")) { totalColorQty = totalColorQty + 1; colorSolutionMeta(totalColorQty,discount_metafield2); var checkSignSpans = document.querySelectorAll('.check-sign span'); checkSignSpans.forEach(function(span) { var style = window.getComputedStyle(span, ':before'); span.style.display = 'block'; }); $(".qty__error").hide(); $('.color__variant-label').each(function () { let $self = $(this); let qtyValue = $(this).find(".quantity__input").val() if (qtyValue == 0) { $(this).find(".check-sign").addClass("check-hide"); $(this).removeClass("variant__slide-match"); } }) $(this).parents(".color__variant-label").find(".variant__quantity-add").hide(); $(this).parents(".color__variant-label").find(".check-sign").removeClass("check-hide"); $(this).parents(".color__variant-label").css({"border":"1px solid #3D6AAE"}); $(this).parents(".color__variant-label").find(".variant__quantity-selector").removeClass("quantity__hide"); //$(this).parents(".color__variant-label").find(".quantity__msg").removeClass("quantity__hide"); $(this).parents(".color__variant-label").addClass("variant__slide-match"); let currVal = $(this).parents(".color__variant-label").find(".quantity__input").val(); $(this).parents(".color__variant-label").find(".quantity__input").val(parseInt(currVal) + 1); $(this).parents(".product__page-right").find(".color-cta__addToCart, .color-cta__buyNow").show(); $(this).parents(".product__page-right").find(".pdp-notify-me-section").hide(); $('.pdp__pincode-container,.pdp__description-container,#pdpReviewsSection').css({'order':'0'}); let colorText = ($(this).parents(".color__variant-label").find(".color__variant-img").attr("data-color")).toUpperCase().trim(); $('.pdp-color__slide-wrapper').each(function () { let $self = $(this); let labelText = $(this).find('img').attr("data-color").toUpperCase().trim(); if (colorText == labelText) { var selectedSlide = $self.attr('data-slick-index'); $('.pdp-color__variant-slider').slick('slickGoTo', selectedSlide); } }) } else { if ($(this).parents(".color__variant-label").hasClass("color__power")) { $(".power__error").show(); $(".power-sph").addClass("sph-error"); $('html, body').animate({ scrollTop: $($(this).parents(".color__variant-label").attr('data-power-container')).offset().top - 70 }, 500, 'linear'); } } // colorQty(); }) $(document).on('click', '.quantity__minus', function (e) { let quantity = $(this).closest(".color__variant-content").find('.quantity__input').val(); if (quantity > 0) { quantity--; $(this).closest(".color__variant-content").find('.quantity__input').val(quantity); } if (quantity == 0) { $(this).parents(".variant__quantity-selector-wrapper").find(".variant__quantity-add").show(); $(this).parents(".variant__quantity-selector-wrapper").find(".variant__quantity-selector").addClass("quantity__hide"); //$(this).closest(".color__variant-content").find(".quantity__msg").addClass("quantity__hide"); } $(this).closest(".color__variant-content").find('.quantity__input').trigger("input"); $(this).parents(".product__page-right").find(".pdp-notify-me-section").hide(); $(this).parents(".product__page-right").find(".color-cta__addToCart, .color-cta__buyNow").show(); $('.pdp__pincode-container,.pdp__description-container,#pdpReviewsSection').css({'order':'0'}); if (totalColorQty > 0) { totalColorQty = totalColorQty - 1; } colorSolutionMeta(totalColorQty,discount_metafield2); }); $(document).on('click', '.quantity__plus', function (e) { let quantity = $(this).closest(".color__variant-content").find('.quantity__input').val(); quantity++; $(this).closest(".color__variant-content").find('.quantity__input').val(quantity); $(this).closest(".color__variant-content").find('.quantity__input').trigger("input"); $(this).parents(".product__page-right").find(".pdp-notify-me-section").hide(); $(this).parents(".product__page-right").find(".color-cta__addToCart, .color-cta__buyNow").show(); $('.pdp__pincode-container,.pdp__description-container,#pdpReviewsSection').css({'order':'0'}); if(quantity < 10) totalColorQty = totalColorQty + 1; colorSolutionMeta(totalColorQty,discount_metafield2); }); // wishlist Product function wishlistProduct(wishlisData, wishlistEl) { let bearerToken = localStorage.getItem("token"); $.ajax({ method: "POST", url: `${baseUrl}api/v1/wishlist/add`, headers: { "Authorization": "Bearer " + bearerToken, "Content-Type": "application/json", }, dataType: "json", data: JSON.stringify(wishlisData) }) .done(function (response) { console.log("Success"); console.log(response); wishlistEl.addClass("wishlisted"); wishlistEl.removeClass("notWishlisted"); wishlistEl.attr("wishlist_id", response.data); }) .fail(function (error) { console.log("Error", error); }) } $(document).on('click', '.notWishlisted', function (e) { //console.log("wishlist icon clicked"); let popup = $('#popup--main__login').html(); let locationCurrent = window.location.href; $('.url_redirect').val(locationCurrent); customPopUp(popup, true); let selected_variant = $(".color__variant-label").find('.variant__slide-match'); let variantId = selected_variant.attr('data-id'); let wishlisData = { "product_id": productId, "variant_id": variantId } if (selected_variant.hasClass('color__power')) { let leftSPH = $(".power__left-sph").val(); let rightSPH = $(".power__right-sph").val(); let prescriptionObj = {}; wishlisData.prescription = {}; // let bothEye = $(".both-eye").prop('checked') if (leftSPH != null || rightSPH != null) { if (leftSPH != null) { let leftPrescription = { "left": { "sph": leftSPH } } prescriptionObj = { ...prescriptionObj, ...leftPrescription } } if (rightSPH != null) { let rightPrescription = { "right": { "sph": rightSPH } } prescriptionObj = { ...prescriptionObj, ...rightPrescription } } // wishlisData.prescription.right.sph = leftSPH; } else { // wishlisData['prescription']['left']['sph'] = "Call Me/Email Me for Power"; // wishlisData.prescription.right.sph = "Call Me/Email Me for Power"; prescriptionObj = { "left": { "sph": "Call Me/Email Me for Power" }, "right": { "sph": "Call Me/Email Me for Power" } } } wishlisData.prescription = prescriptionObj; } wishlistProduct(wishlisData, selected_variant); }) // Input Box $(document).on("input", ".quantity__input", function () { let value = $(this).val(); if ((value !== '') && (value.indexOf('.') === -1)) { let data_qty = $(this).parents(".color__variant-label").attr('data-qty'); if (data_qty <= 9) { $(this).val(Math.max(Math.min(value, data_qty), 0)); } else { $(this).val(Math.max(Math.min(value, 9), 0)); } } }) $(".pdp-offer__box").off(); $(document).on("click", ".pdp-offer__box", function () { let dataBox = $(this).attr("data-box"); $('.color__variant-label.variant__available ').each(function (i, e) { $(this).find(".quantity__minus").trigger("click"); if ($('.color__variant-label.variant__available ').length >= dataBox || dataBox < 6) { if (i < dataBox) { $(this).find(".variant__quantity-add").trigger("click"); $(this).find(".quantity__input").val(1); } } else { if (i < 4) { $(this).find(".variant__quantity-add").trigger("click"); $(this).find(".quantity__input").val(2); } } }) }) stickyColorSlider(); }) // product communication // by default on load function solHtmldata(variantTitle, variantId, variantPrice, variantQty) { let solHtml = `
You need a ${variantTitle}ML solution with this order!
"Clean your contact lenses daily with Aqualens Solution"
Rs. ${variantPrice} Extra 20% Off
` $('.solution_in_discount').html(solHtml); } // Winning Animation const defaultConfettiParticle = { particleCount: 200, spread: 360, scalar: 1.2, shapes: ["circle", "square"], colors: ["#a864fd", "#29cdff", "#78ff44", "#ff718d", "#fdff6a"], }; const defaultConfettiLens = { scalar: 4, particleCount: 7, spread: 20, shapes: ["image"], shapeOptions: { image: [{ src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/spicy_grey.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/stormy_gray.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/misty_gray.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/mocha_brown.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/Mystery_Hazel.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/tricky_turquoise.png", width: 32, height: 32, }, { src: "https://static.aqualens.in/IN/B2C_APP/variant_lens_images/walnut_brown.png", width: 32, height: 32, }, ], }, }; function customConfetti(){ confetti({ ...defaultConfettiLens, angle: 60, origin: { x: 0, y: 0.4 }, }); confetti({ ...defaultConfettiLens, angle: 120, origin: { x: 1, y: 0.4 }, }); confetti({ ...defaultConfettiParticle, angle: 60, origin: { x: 0, y: 0.4 }, }); confetti({ ...defaultConfettiParticle, angle: 120, origin: { x: 1, y: 0.4 }, }); } let checkCountNotRepeat4 = true; let checkCountNotRepeat6 = true; // customConfetti(); function colorSolutionMeta(totalQty,discount_metafield2){ window.varaint_totalQty = totalQty; /*if(totalQty >= 6){ if((totalQty == 6) && (checkCountNotRepeat6 == true)){ $('.bmsm_offer_bottom_title').html(`Woohoo! You have saved 15% on your products!`); customConfetti(); $("#wait-loading-coupon").html(`
${`BMSM applied` }
${`Woohoo! You have saved 15% on your products!`}
Yay!
`); // checkCountNotRepeat6 = false; setTimeout(function () { $('.bmsm_offer_bottom_title').html(`You’ve added ${totalQty} box.`); }, 5000); }else{ $('.bmsm_offer_bottom_title').html(`You’ve added ${totalQty} box.`); } }else if((totalQty >= 4 ) && (totalQty < 6)){ if((totalQty == 4) && (checkCountNotRepeat4 == true)){ $('.bmsm_offer_bottom_title').html(`Woohoo! You have saved 10% on your products!`); customConfetti(); $("#wait-loading-coupon").html(`
${`BMSM applied` }
${`Woohoo! You have saved 10% on your products!`}
Yay!
`); // checkCountNotRepeat4 = false; setTimeout(function () { $('.bmsm_offer_bottom_title').html(`You Can Avail Our Limited 15% Off By Adding ${6 - totalQty} More Products!.`); }, 5000); }else{ checkCountNotRepeat6 = true; $('.bmsm_offer_bottom_title').html(`You Can Avail Our Limited 15% Off By Adding ${6 - totalQty} More Products!.`); } }else if(totalQty == 0){ $('.bmsm_offer_bottom_title').html(`Add Your Favourite Colors to get The Best Discount`); }else{ checkCountNotRepeat4 = true $('.bmsm_offer_bottom_title').html(`Add ${4 - totalQty} More to get 10% OFF.`); }*/ let variantId = ''; let variantPrice = ''; let variantQty = ''; let variantTitle = ''; for (i = 0; i < discount_metafield2.length; i++) { if (totalQty >= discount_metafield2[i].min_qty && totalQty < discount_metafield2[i].max_qty) { variantTitle = discount_metafield2[i].title * discount_metafield2[i].qty; variantId = discount_metafield2[i].variant_id; variantPrice = (((discount_metafield2[i].price) * (discount_metafield2[i].qty)) / 100 * 80); variantPrice = variantPrice.toFixed(2); variantQty = discount_metafield2[i].qty; solHtmldata(variantTitle, variantId, variantPrice, variantQty); } } } $(document).on('click','#closeCouponPopup,.wait-loading-content', function(){ $('#wait-loading-coupon').html(''); }) // Adding solution to the cart $(document).on('click', '#addToCart', function () { let $this = $(this); let variantId = $this.attr("data-variant-id"); let variantQty = $this.attr("data-qty"); console.log(variantId, variantQty); let finalData = {}; let properties = { 'has_power': false, 'storeId': "", 'product_type': 'other', 'left_box': variantQty, // 'discount_meta': 'solutionDiscount' } finalData = { id: variantId, quantity: variantQty, properties: properties } $.getJSON('/cart', function (data) { cartLineItems = data.items; let addData = compareParam([finalData], cartLineItems); if (addData) { const { item, index } = addData; let data = item[0]; delete data.id; data['line'] = index; let settings = { "url": '/cart/change.js', "method": "POST", "data": data, } $.ajax(settings) .done(function (response) { $("body").addClass('overflow'); let content = document.querySelector('#dropdown-cart .has-items'); gsap.fromTo(content, .5, { opacity: 1, x: 500, display: "block" }, { ease: "power1.none", opacity: 1, x: 0 }); $("#dropdown-cart").toggle(); $.getJSON('/cart', function (data) { upadteItemsCart(data) }) }) .fail(function (error) { console.log("error", error); }) } else { $.ajax({ method: "POST", url: "/cart/add.js", dataType: "json", data: finalData }) .done(function (response) { $("body").addClass('overflow'); let content = document.querySelector('#dropdown-cart .has-items'); gsap.fromTo(content, .5, { opacity: 1, x: 500, display: "block" }, { ease: "power1.none", opacity: 1, x: 0 }); $("#dropdown-cart").toggle(); $.getJSON('/cart', function (data) { upadteItemsCart(data) }) }) .fail(function (error) { console.log("error", error); }) } }) })
Not sure about the color?
Find Your Color With Smart-AR Try On
Check
Please enter PIN code to check delivery time
Copied !
`); } }) $('.slider-coupons-cards').slick({ arrows: true, dots: false, infinite: false, slidesToScroll: 1, slidesToShow: 1.25, prevArrow:'
', nextArrow:'
', responsive: [ { breakpoint: 767, settings: { slidesToShow: 1.25 } } ] }); } }) .fail(function(jqXHR, textStatus, errorThrown) { // Handle error here $('.pdp__coupon-container').hide(); }); }); function CopyPDPCoupon(id) { var button = document.getElementById('pdp-coupon-'+id); var textToCopy = button.innerText; // Create a textarea element to temporarily hold the text var textarea = document.createElement('textarea'); textarea.value = textToCopy; document.body.appendChild(textarea); // Select the text inside the textarea textarea.select(); // Copy the selected text to the clipboard document.execCommand('copy'); // Remove the temporary textarea document.body.removeChild(textarea); $('#pdp-copied-coupon-'+id).show().delay(2000).fadeOut(); // Optionally, you can provide some visual feedback to the user }
Add To Bag @ Rs. 169
Buy Now @ Rs. 169
Show us Love!
Rate your experience and help us improve
Hated it Didn’t Like Was Okay Liked It Loved It
${response.data.product_reviews.total_reviews}
Verified Reviews
${featuredReviews.length > 0 ? `
View All
` : ``} `;/*featuredReviewsContent += `
Review & Ratings
${response.data.product_reviews.ratings.comfort_rating}
Comfort
${response.data.product_reviews.ratings.vision_rating}
Vision
${response.data.product_reviews.ratings.value_for_money_rating}
Price
Customer Pictures (0)
Customer Reviews ( ${response.data.product_reviews.total_reviews} )
`; for (let featuredReviewKey in featuredReviews) { featuredReviewsContent += `
${featuredReviews[featuredReviewKey].product_rating}
${featuredReviews[featuredReviewKey].review_text}
${featuredReviews[featuredReviewKey].customer_name} | ${new Intl.DateTimeFormat('en-GB', { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(featuredReviews[featuredReviewKey].created_at))}
` } featuredReviewsContent += `
See all ${response.data.product_reviews.total_reviews} review
Write a Review
`; */ $('#pdpReviewsSection').html(featuredReviewsContent); response.data.product_reviews.featured_reviews.map((item, index) => { var id = item.id; $('.slider-big-cards').append(`
${ item.customer_name }
${ item.product_rating }.0
${item.files.length > 0 ? `
` : `` }
${ item.review_text }
${ new Intl.DateTimeFormat('en-GB', { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(item.created_at)) }
` ); }) /*for(var j=0; j< featuredReviews.length;j++) { for(var i=0; i< featuredReviews[j].files.length; i++) { $('.new_review_images').append(``); //$('.new_review_images_all').append(``); } }*/ $('.slider-big-cards') .slick({ arrows: true, dots: false, infinite: false, slidesToScroll: 1, slidesToShow: 1.5, prevArrow:'
', nextArrow:'
', responsive: [ { breakpoint: 767, settings: { slidesToShow: 1.5 } } ] }); } } }).fail(function(error) { console.log("Error", error); })}let pageNext = 1;let nextAllReviews = true;let scroll = false;function loadAllReviews() { $.ajax({url: `${baseUrl}app/api/v1/product/5090751217800/reviews/page/${pageNext}`}).done(function(response) { if (response.status) { if (response.data != null) { let allReviews = response?.data?.product_reviews?.reviews; let allReviewsContent = ""; if (! scroll) { // allReviewsContent += `
Customer Reviews ( ${response.data.product_reviews.total_reviews} )
`; allReviewsContent += `
${response?.data?.product_reviews?.ratings?.product_rating}/5
Based on ${response?.data?.product_reviews?.total_ratings} ratings
${allReviews?.length > 0 ? `
${response.data.product_reviews.total_reviews}
Verified Reviews
` : ``}
`; } allReviews?.map((item, index) => {// allReviewsContent += `
${allReviews[allReviewKey].product_rating}
${allReviews[allReviewKey].review_text}
${allReviews[allReviewKey].customer_name} | ${new Intl.DateTimeFormat('en-GB', { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(allReviews[allReviewKey].created_at))}
`; allReviewsContent += `
${ item.customer_name }
${ item.product_rating }.0
${ item.files.length > 0 ? `
` : `` }
${ item.review_text }
${ new Intl.DateTimeFormat('en-GB', { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(item.created_at)) }
`; }); if (! scroll) { $('.all__review-wrapper').html(allReviewsContent); } else { $('.all__review-wrapper').append(allReviewsContent); } for(var j=0; j< allReviews?.length;j++) { for(var i=0; i< allReviews[j].files.length; i++) { $('.new_review_images_all').append(``); } } if ((response.data.paginate.next >= pageNext) && (response.data.paginate.next != null) && (nextAllReviews == true)) { pageNext = response.data.paginate.next; } else if (response.data.paginate.next == null) { nextAllReviews = false; } } } }).fail(function(error) { console.log("Error", error); })}$(document).ready(function() { loadFeaturedReviews(); loadAllReviews(scroll);});$('#pdpReviewsPopup').on('scroll', function() { let div = $(this).get(0); //console.log((Math.round(div.scrollTop + div.clientHeight) ) +"----"+ nextAllReviews); scroll = true; if (((Math.round(div.scrollTop + div.clientHeight)) == div.scrollHeight) && (nextAllReviews == true)) { loadAllReviews(scroll); } else if (div.scrollTop + div.clientHeight <= div.scrollHeight) { console.log("Div Scroll Height : ", div.scrollHeight); }});
`; for (let i = 0; i < 3 && i < pdpReviewsFinal.length; i++) { let reviewHtml = `
${ pdpReviewsFinal[i].product_rating }
` let reviewsFiles = pdpReviewsFinal[i].files if (reviewsFiles) { let files = reviewsFiles.split(","); let imgCount = 0 for (let j = 0; j < files.length; j++) { imgCount = imgCount + 1; if (files[j].includes(".mp4")) { reviewHtml += `
` } else { reviewHtml += `
` } } } reviewHtml += `
${ pdpReviewsFinal[i].review_text }
${ pdpReviewsFinal[i].customer_name } | ${ pdpReviewsFinal[i].updated_at }
` reviewHtmlWrapper += reviewHtml } $(".recent__review-wrapper").html(reviewHtmlWrapper); let allReviewHtmlWrapper = `
Customer Reviews ( ${ pdpReviewsFinal.length } )
`; for (let i = 0; i < pdpReviewsFinal.length; i++) { let reviewHtml = `
${ pdpReviewsFinal[i].product_rating }
` let reviewsFiles = pdpReviewsFinal[i].files if (reviewsFiles) { let files = reviewsFiles.split(","); let imgCount = 0 for (let j = 0; j < files.length; j++) { imgCount = imgCount + 1; if (files[j].includes(".mp4")) { reviewHtml += `
` } else { reviewHtml += `
` } } } reviewHtml += `
${ pdpReviewsFinal[i].review_text }
${ pdpReviewsFinal[i].customer_name } | ${ pdpReviewsFinal[i].updated_at }
` allReviewHtmlWrapper += reviewHtml } $(".all__review-wrapper").html(allReviewHtmlWrapper); })
', nextArrow: '
' }); } function readMore() { let maxLength = 150; $(".picture-slider__text").each(function() { let strData = $(this).text(); if ($.trim(strData).length > maxLength) { let newStr = strData.substring(0, maxLength); let removedStr = strData.substring(maxLength, $.trim(strData).length); $(this).empty().html(newStr); $(this).append(' ...Read More'); $(this).append('' + removedStr + ''); } }); $(".read-more").click(function() { $(this).siblings(".more-text").contents().unwrap(); $(this).remove(); }); } $(document).ready(function() { if(localStorage.getItem('openReview') == "true") { localStorage.removeItem("openReview"); localStorage.removeItem("reviewValue"); } else{ localStorage.removeItem("reviewValue"); } if(localStorage.getItem("reviewValue") || localStorage.getItem("openReview") == true) { setRating(localStorage.getItem("reviewValue")); productRating = localStorage.getItem('reviewValue'); localStorage.removeItem("openReview"); } $(document) .on("click", ".pdp-review__write", function() { let loginPopup = $('#popup--main__login').html(); $('.url_redirect').val(window.location.href); localStorage.setItem('openReview',true) customPopUp(loginPopup); }) $(document) .on("click", ".pdp-review__all", function() { $("body").css({"overflow": "hidden"}); let popup = $('#pdpReviewsPopup'); popup.show(); writePopUp(popup); }) $(document) .on("click", ".review__write-header-icon, .review__submit-popup-close, .review__submit-popup-btn, .pdp-review-all__close", function() { $("body").css({"overflow": "auto"}); $.magnificPopup.close(); $("#pdpReviewsPopup").hide(); //$(".review-next-active").show(); $(".review__write-star-rating").show(); //$(".review__write-describe").hide(); $(".review__submit-popup").hide(); $(".video__content").trigger('pause'); }) $(document) .on("click", ".review-next-active", function() { $(this).hide(); $(".review__write-star-rating").hide(); $(".review__write-describe").show(); }) $(document) .on("click", ".star-cross", function() { $(this).parents(".rate__feature-content").hide(); }) // Popup content to showcase review $(document).on("click", ".review__picture", function() { let dataPictures = $(this).parent().attr("data-picture"); let dataRating = $(this).parent().attr("data-rating"); let dataName = $(this).parent().attr("data-name"); let dataContent = $(this).parent().attr("data-content"); let dataDate = $(this).parent().attr("data-date"); let dataNumber = parseInt($(this).parent().attr("data-number")); let picturesArray = dataPictures.split(","); let pictureHtml = `
` picturesArray.forEach(function(e) { if (e.includes(".mp4")) { pictureHtml += `
` } else { pictureHtml += `
` } }) pictureHtml += `
${dataRating}
${dataContent}
${dataName} | ${dataDate}
`; let popup = $('#picturePopup'); popup.html(pictureHtml); writePopUp(popup); slickInit(dataNumber - 1); readMore(); })}) const ratingContainer = document.getElementsByClassName('rating-container')[0]; const emojiContainer = document.getElementsByClassName('emoji-container')[0]; const emojiContainerPopUp = document.getElementsByClassName('emoji-container-pop-up')[0]; var stars = document.querySelectorAll('.star_new'); var stars_pop_up = document.querySelectorAll('.star_new_pop_up'); var value = ""; // Check if there is a stored rating in localStorage const storedRating = localStorage.getItem('reviewValue'); // Set the initial rating based on the stored value or default to 4 stars const initialRating = storedRating ? parseInt(storedRating) : ""; //For PDP star stars.forEach(star => { star.addEventListener('click', (event) => { value = parseInt(star.getAttribute('data-value')); productRating = value;// Reset emoji container emojiContainer.textContent = ''; emojiContainerPopUp.textContent = ''; localStorage.setItem("reviewValue",value);// Set emoji face based on the clicked star value switch (value) { case 1: emojiContainer.textContent = '😐'; break; case 2: emojiContainer.textContent = '😊'; break; case 3: emojiContainer.textContent = '😄'; break; case 4: emojiContainer.textContent = '😃'; break; case 5: emojiContainer.textContent = '😍'; break; default: break; } switch (value) { case 1: emojiContainerPopUp.textContent = '😐'; break; case 2: emojiContainerPopUp.textContent = '😊'; break; case 3: emojiContainerPopUp.textContent = '😄'; break; case 4: emojiContainerPopUp.textContent = '😃'; break; case 5: emojiContainerPopUp.textContent = '😍'; break; default: break; }// Fill the stars with the specified color stars.forEach((s, index) => { s.style.color = index < value ? '#FFCA0F' : '#fff'; s.style.webkitTextStrokeColor = index < value ? '#FFCA0F' : '#666'; }); stars_pop_up.forEach((s, index) => { s.style.color = index < value ? '#FFCA0F' : '#fff'; s.style.webkitTextStrokeColor = index < value ? '#FFCA0F' : '#666'; }); $(".write__review-cta-submit").prop("disabled", false).addClass("review-submit-active"); }); });//For Pop Up star stars_pop_up.forEach(star => { star.addEventListener('click', (event) => { value = parseInt(star.getAttribute('data-value')); localStorage.setItem("reviewValue",value); productRating = value;// Reset emoji container emojiContainerPopUp.textContent = '';// Set emoji face based on the clicked star value switch (value) { case 1: emojiContainerPopUp.textContent = '😐'; break; case 2: emojiContainerPopUp.textContent = '😊'; break; case 3: emojiContainerPopUp.textContent = '😄'; break; case 4: emojiContainerPopUp.textContent = '😃'; break; case 5: emojiContainerPopUp.textContent = '😍'; break; default: break; }// Fill the stars with the specified color stars_pop_up.forEach((s, index) => { s.style.color = index < value ? '#FFCA0F' : '#fff'; s.style.webkitTextStrokeColor = index < value ? '#FFCA0F' : '#666'; }); }); });function setRating(value) { const emojiContainer = document.getElementsByClassName('emoji-container')[0]; const emojiContainerPopUp = document.getElementsByClassName('emoji-container-pop-up')[0]; emojiContainer.textContent = ''; emojiContainerPopUp.textContent = ''; stars.forEach(star => { value = parseInt(value); switch (value) { case 1: emojiContainer.textContent = '😐'; break; case 2: emojiContainer.textContent = '😊'; break; case 3: emojiContainer.textContent = '😄'; break; case 4: emojiContainer.textContent = '😃'; break; case 5: emojiContainer.textContent = '😍'; break; default: break; } switch (value) { case 1: emojiContainerPopUp.textContent = '😐'; break; case 2: emojiContainerPopUp.textContent = '😊'; break; case 3: emojiContainerPopUp.textContent = '😄'; break; case 4: emojiContainerPopUp.textContent = '😃'; break; case 5: emojiContainerPopUp.textContent = '😍'; break; default: break; } stars.forEach((s, index) => { s.style.color = index < value ? '#FFCA0F' : '#fff'; s.style.webkitTextStrokeColor = index < value ? '#FFCA0F' : '#666'; }); stars_pop_up.forEach((s, index) => { s.style.color = index < value ? '#FFCA0F' : '#fff'; s.style.webkitTextStrokeColor = index < value ? '#FFCA0F' : '#666'; }); }); if(value > 0) { $(".write__review-cta-submit").prop("disabled", false).addClass("review-submit-active"); }}let visionRating = "";let comfortRating = "";let vfmRating = "";let reviewText = "";let reviewName = "";let fileNames = [];const defaultBtn = document.querySelector("#imgInput"); const imagePreview = document.querySelector(".wrtie__image-preview-wrapper"); let regExp = /[0-9a-zA-Z\^\&\'\@\{\}\[\]\,\$\=\!\-\#\(\)\.\%\+\~\_ ]+$/;// const fileInput = []; defaultBtn.addEventListener("change", function() { document.querySelector(".write__image").style.width = "70px"; const file = this.files[0]; fileNames.push(file); const fileReader = new FileReader(); if (file.type.match('image')) { fileReader.onload = function() { const imgHtml = `
` imagePreview.insertAdjacentHTML("beforeend", imgHtml); }; fileReader.readAsDataURL(file); } else { fileReader.onload = function() { const imgHtml = `
` imagePreview.insertAdjacentHTML("beforeend", imgHtml); }; fileReader.readAsDataURL(file); }// if(this.value){// let valueStore = this.value.match(regExp);// fileNames.push(valueStore);// } });$(document).on("click", "[name=rate]", function() { productRating = $(this).data("value") //$(".write__review-cta-next").prop("disabled", false).addClass("review-next-active"); $(".write__review-cta-submit").prop("disabled", false).addClass("review-submit-active");})$(document).on("click", "[name=vision]", function() { visionRating = $(this).val();})$(document).on("click", "[name=comfort]", function() { comfortRating = $(this).val();})$(document).on("click", "[name=vfm]", function() { vfmRating = $(this).val();})$(document).on("click", ".review-submit-active", function() { $('.loader').show(); reviewName = $("#writeNameContent").val(); reviewText = $("#writeContent").val(); let productId = '5090751217800'; var formdata = new FormData(); formdata.append("product_id", productId); formdata.append("product_rating", productRating); if (comfortRating != "") { formdata.append("comfort_rating", comfortRating); } if (visionRating != "") { formdata.append("vision_rating", visionRating); } if (vfmRating != "") { formdata.append("value_for_money_rating", vfmRating); } if (reviewText != "") { formdata.append("review_text", reviewText); } if (fileNames.length != 0) { fileNames.forEach(function(file) { formdata.append("filenames[]", file); }) } submitReview(formdata);})
`; brand_usp_slider_html = brand_usp_slider_html + htmlData; }); $('#brand_usp_slider_html').html(brand_usp_slider_html); } // create product comparision html if (product_comparison.length > 0) { product_comparison.forEach(function (item, index) { const image = item.image; let htmlData = `
`; product_comparison_html = product_comparison_html + htmlData; }); $('#product_comparison_html').html(product_comparison_html); } // create product slider html if (product_slider.length > 0) { product_slider.forEach(function (item, index) { const image = item.image; let htmlData = `
`; product_slider_html = product_slider_html + htmlData; }); $('#product_slider_html').html(product_slider_html); } // create unique selling point html if (unique_selling_point_slider.length > 0) { unique_selling_point_slider.forEach(function (item, index) { const image = item.image; let htmlData = `
`; unique_selling_point_slider_html = unique_selling_point_slider_html + htmlData; }); $('#unique_selling_point_slider_html').html(unique_selling_point_slider_html); } // create user life style html if (user_lifestyle_slider.length > 0) { user_lifestyle_slider.forEach(function (item, index) { const image = item.image; let htmlData = `
`; user_lifestyle_slider_html = user_lifestyle_slider_html + htmlData; }); $('#user_lifestyle_slider_html').html(user_lifestyle_slider_html); } // create user testimonial html if (user_testimonial_slider.length > 0) { user_testimonial_slider.forEach(function (item, index) { const image = item.image; let htmlData = `
`; user_testimonial_slider_html = user_testimonial_slider_html + htmlData; }); $('#user_testimonial_slider_html').html(user_testimonial_slider_html); } // show influencer and tutorial video if (videos !== '') { if (influencer_pick !== null) { let htmlData = `
`; $('#videos_influencer_pick_html').html(htmlData); } if (tutorial !== null) { let htmlData = `
`; $('#videos_tutorial_html').html(htmlData); } } } else { } } catch (error) {} } // Function fetch product id from url async function aPlusContentLoad(product_id_shopify) { const urlParams = new URLSearchParams(location.search); if (urlParams.has('product_id')) { // if product_id is available in url let product_id_url = urlParams.get('product_id'); await aPlusContent(product_id_url); } else { // if product_id is not available in url then fetching data using shopify profuct_id await aPlusContent(product_id_shopify); } } // On load function and passing shopify product id let product_id_shopify = '5090751217800'; $(window).on('load', function () { aPlusContentLoad(product_id_shopify); }); // Function to check if an element is in the viewport function isElementInViewport(el) { const rect = el.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth) ); } // Callback function for the Intersection Observer function handleIntersection(entries, observer) { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); } }); } // Create an Intersection Observer const observer = new IntersectionObserver(handleIntersection, { threshold: 0.5 }); // Observe each element with the 'fade-in' class document.querySelectorAll('.fade-in').forEach((element) => { observer.observe(element); }); // Check visibility on page load window.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('.fade-in').forEach((element) => { if (isElementInViewport(element)) { element.classList.add('is-visible'); } }); }); // Check visibility on scroll window.addEventListener('scroll', () => { document.querySelectorAll('.fade-in').forEach((element) => { if (isElementInViewport(element)) { element.classList.add('is-visible'); } }); });
Similar Products
Accessories
Also available on
Sign In
Scratch Now To Win Big Rewards!
Win limited time offers with up to 25% off!
Get Updates on Whatsapp
Use referral code
*Applicable only for first time users.
By Proceeding you agree to the Terms of Use and Privacy Policy
Start Shopping
` : ``}
${(coupon_type == "coupon") ? `20% OFF` : `${coupon_value} AquaCash`}
${(coupon_type == "coupon") ? `
Coupon code: ${coupon_value}
` : `
`} ${(coupon_type == "coupon") ? `
Valid till: ${coupon_eligi}
` : `
1 AquaCash = 1 Rupee
`}` setTimeout(function () { $('.popup__gift--image img').attr("data-src", "https://static.aqualens.in/IN/CDNS/box-open-still.png"); $('#popupGiftOffer').html(offerHtml); if (coupon_type == "coupon") { $(".popup__gift--text").text("This coupon will be available in your cart"); } else { $(".popup__gift--text").text("AquaCash added to your wallet"); } }, 1000); } else { $.ajax({ method: "GET", headers: { Authorization: 'Bearer ' + sessionToken }, url: `${baseUrl}api/v1/account/wallets/`, dataType: "json" }) .done(function (data) { let totalAquacash = 0; if (data.status) { totalAquacash = parseInt(data.data.wallet_balance); }; let offerHtml = `
You've already unlocked today's gift
Balance: ${totalAquacash} AC
1 AquaCash = 1 Rupee
`; $(".popup__gift--text").text("Redeem your AquaCash at checkout"); $('.popup__gift--image img').attr("data-src", "https://static.aqualens.in/IN/CDNS/box-open-still.png"); $('#popupGiftOffer').html(offerHtml); // if (coupon_type == "coupon") { // $(".popup__gift--text").text("This coupon will be available in your cart"); // } else { // $(".popup__gift--text").text(coupon_desc.toString()); // } }) } urlParams.delete('isReward'); url.search = urlParams.toString(); window.history.pushState({}, "", url.href); $('.wait-loading').addClass("hide"); } //window.history.pushState({}, document.title, window.location.pathname); } else { $('.whatsapp-chat').show(); $('#shopify-section-header-new').addClass('sticky'); window.location.reload(true); $('.wait-loading').addClass("hide"); } //window.location.reload(); }) // done end .fail(function (error) { $('.error__otp').text("OTP incorrect. Please try again").addClass("active"); $('.error__otp').show(); $(".wait-loading").addClass("hide"); }) // fail end }).fail((e) => { let resJson = e.responseJSON; const message = JSON.parse(resJson.message); $('.error__otp').text("OTP incorrect. Please try again").addClass("active"); $('.error__otp').show(); setTimeout(function () { $('.error__otp').fadeOut(); }, 2000); $('.wait-loading').addClass("hide"); $('.text__section--input input[name="otp_input"]').val(""); $('.text__section--input input[name="otp_input"]').first().focus(); $(btn).siblings(".error").removeClass("success").html(message[2]).addClass("active"); if (message[1] == "309") { clearInterval(timerCount); timerCount = 0; $('.resend_btn').removeClass("disabled").addClass("active"); $('#timer').text('00: 00') } $("#main__login-popup .wait-loading").addClass("hide"); }); // verify otp end } else { $('.error__otp').text("OTP incorrect. Please try again").addClass("active"); $('.error__otp').show(); setTimeout(function () { $('.error__otp').fadeOut(); }, 2000); $("#main__login-popup .wait-loading").addClass("hide"); } // smsDigit end }); // .verify--otp class end // Scratch Card (function () { 'use strict'; var isDrawing, lastPoint; var container = document.getElementById('js-container'), canvas = document.getElementById('js-canvas'), canvasWidth = canvas.width, canvasHeight = canvas.height, ctx = canvas.getContext('2d', { willReadFrequently: true }), image = new Image(), brush = new Image(); // base64 Workaround because Same-Origin-Policy image.src = 'https://cdn.shopify.com/s/files/1/0084/6957/7794/files/scratchcard_new.png?v=1684219055'; image.setAttribute('crossOrigin', ''); image.onload = function () { //ctx.drawImage(image, 0, 0); // Show the form when Image is loaded. //document.querySelectorAll('.form')[0].style.visibility = 'visible'; var ctx = canvas.getContext('2d', { willReadFrequently: true }); var wrh = image.width / image.height; var newWidth = canvas.width; var newHeight = newWidth / wrh; if (newHeight > canvas.height) { newHeight = canvas.height; newWidth = newHeight * wrh; } var xOffset = newWidth < canvas.width ? ((canvas.width - newWidth) / 2) : 0; var yOffset = newHeight < canvas.height ? ((canvas.height - newHeight) / 2) : 0; ctx.drawImage(image, xOffset, yOffset, newWidth, newHeight); document.querySelectorAll('.form')[0].style.visibility = 'visible'; }; brush.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAxCAYAAABNuS5SAAAKFklEQVR42u2aCXCcdRnG997NJtlkk83VJE3apEma9CQlNAR60UqrGSqW4PQSO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lBWTIfMleJqFb10jXCBJUlMyORSIP14LhqNef6v/05bpZTdHulUyXKsufDNdRxZ4vIhSKwhQFG5vfLfcwZsx2X92Jhje8/P8OI+TK/oO+zeA84WTzkvI/6RuB3y6f68qf11xnyMiuzMms4178AwArmZmkkdGcAAAAASUVORK5CYII='; canvas.addEventListener('mousedown', handleMouseDown, false); canvas.addEventListener('touchstart', handleMouseDown, false); canvas.addEventListener('mousemove', handleMouseMove, false); canvas.addEventListener('touchmove', handleMouseMove, false); canvas.addEventListener('mouseup', handleMouseUp, false); canvas.addEventListener('touchend', handleMouseUp, false); function distanceBetween(point1, point2) { return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)); } function angleBetween(point1, point2) { return Math.atan2(point2.x - point1.x, point2.y - point1.y); } // Only test every `stride` pixel. `stride`x faster, // but might lead to inaccuracy function getFilledInPixels(stride) { if (!stride || stride < 1) { stride = 1; } var pixels = ctx.getImageData(0, 0, canvasWidth, canvasHeight), pdata = pixels.data, l = pdata.length, total = (l / stride), count = 0; // Iterate over all pixels for (var i = count = 0; i < l; i += stride) { if (parseInt(pdata[i]) === 0) { count++; } } return Math.round((count / total) * 100); } function getMouse(e, canvas) { var offsetX = 0, offsetY = 0, mx, my; if (canvas.offsetParent !== undefined) { do { offsetX += canvas.offsetLeft; offsetY += canvas.offsetTop; } while ((canvas = canvas.offsetParent)); } mx = (e.pageX || e.touches[0].clientX) - offsetX; my = (e.pageY || e.touches[0].clientY) - offsetY; return { x: mx, y: my }; } function handlePercentage(filledInPixels) { filledInPixels = filledInPixels || 0; if (filledInPixels > 50) { canvas.parentNode.removeChild(canvas); $('.scratch-continue').removeClass("inactive").addClass("active"); $('.scratch-continue').addClass("scratch-continue-button"); window.setTimeout(function () { window.location.reload(true); }, 4500); } } function handleMouseDown(e) { isDrawing = true; lastPoint = getMouse(e, canvas); } function handleMouseMove(e) { if (!isDrawing) { return; } e.preventDefault(); var currentPoint = getMouse(e, canvas), dist = distanceBetween(lastPoint, currentPoint), angle = angleBetween(lastPoint, currentPoint), x, y; for (var i = 0; i < dist; i++) { x = lastPoint.x + (Math.sin(angle) * i) - 25; y = lastPoint.y + (Math.cos(angle) * i) - 25; ctx.globalCompositeOperation = 'destination-out'; ctx.drawImage(brush, x, y); } lastPoint = currentPoint; handlePercentage(getFilledInPixels(32)); } function handleMouseUp(e) { isDrawing = false; } })(); $(document).on("change", '#opt_in', function () { $(this).val(this.checked ? "1" : "0"); }); $(document).on("click", ".scratch-continue-button", function () { $('.whatsapp-chat').show(); $('#shopify-section-header-new').addClass('sticky'); window.location.reload(true); }) $(document).on("click", ".close-scratch-popup", function () { window.location.reload(true); })
Referral Success! You Recieved Rs. 50
From one friend to another - Rs 50 Aquacash. Redeem in 7 days & get bigger discounts!
No delivery delays, your order is a blink away.
Enter your Pincode to avail delivery in just 1 day!