{"product_id":"waterdrop-reverse-osmosis-hot-cold-water-dispenser-a2","title":"Waterdrop Reverse Osmosis Hot Cold Water Dispenser, A2","description":"\u003cstyle\u003e\n    \/* other style *\/\n    .vis-overview-choose-swiper-dot1 {\n        top: 10%;\n        left: 47%;\n    }\n\n    .vis-overview-choose-swiper-dot2 {\n        top: 75%;\n        left: 67%;\n    }\n\n    .vis-overview-choose-swiper-dot3 {\n        top: 55%;\n        left: 44%;\n    }\n\n    .vis-overview-choose-swiper-dot4 {\n        top: 39%;\n        left: 72%;\n    }\n\n    .vis-overview-choose-swiper-dot5 {\n        top: 41%;\n        left: 27%;\n    }\n\n    .vis-overview-ph .wd-word-temp p.red {\n        color: #D83D3D;\n    }\n\u003c\/style\u003e\n\u003c!-- overview --\u003e\n\u003cdiv id=\"vis-overview\"\u003e\n\u003cdiv class=\"vis-overview-block\"\u003e\n\u003cdiv class=\"vis-overview-sale\"\u003e\n\u003cdiv class=\"vis-overview-sale-item vis-overview-sale-item-second box1\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"vis-overview-block\"\u003e\n\u003cdiv class=\"vis-overview-block-scene-content\"\u003e\n\u003cdiv class=\"vis-overview-block-scene-pc-item-fifth wd-generic-heart\"\u003e\n\u003cdiv class=\"vis-overview-block-scene-pc-item-content\"\u003e\n\u003cdiv class=\"vis-overview-block-scene-pc-item-img\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"vis-overview-block\"\u003e\n\u003cdiv class=\"vis-overview-install\"\u003e\n\u003cdiv class=\"vis-overview-install-mp4\"\u003e\u003ciframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/C85B4wdxGig?si=-p_7N5SzmErhO5Nv\" height=\"315\" width=\"560\"\u003e\u003c\/iframe\u003e\u003c\/div\u003e\n\u003cdiv class=\"vis-overview-install-content\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c!-- jscode --\u003e\n\u003cp\u003e\u003cscript src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0078\/6156\/7570\/files\/wd-gsap-latest-beta.js?v=1713772570\"\u003e\u003c\/script\u003e \u003cscript src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0078\/6156\/7570\/files\/wd-gsap-scroll-trigger.min.js?v=1713772570\"\u003e\u003c\/script\u003e \u003cscript src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0078\/6156\/7570\/files\/swiper-bundle.js?v=1761554114\"\u003e\u003c\/script\u003e \u003cscript\u003e \/\/ overview sale\n\n        $('.vis-overview-sale-item-video-play-btn').click(function () {\n            $(this).parents('.vis-overview-sale-item-video').addClass('vis-overview-sale-item-video-active')\n            $(this).siblings('video').show()[0].play();\n\n        })\n        $('.vis-overview-sale-item-video-stop-btn').click(function () {\n            $(this).parents('.vis-overview-sale-item-video').removeClass('vis-overview-sale-item-video-active')\n            $(this).siblings('video')[0].pause();\n        }) \/\/ overview design\n\n        $('.vis-overview-design-top-content').click(function () {\n            let content_width = $(this).width();\n            $(this).find('.vis-overview-design-top-dot').css(\"left\", content_width - 70)\n            $(this).find('.vis-overview-design-top-img').css(\"opacity\", 1)\n            const svgs = document.querySelectorAll('.vis-overview-design-bottom-num .svg-icon');\n\n            svgs.forEach((svg, index) =\u003e {\n                if (index \u003c 3) {\n                    setTimeout(() =\u003e {\n                        svg.classList.add('active');\n                    }, index * 1000);\n                }\n            });\n\n        })\n        $(window).scroll(function () {\n            var wd_vis_product_targetElement = $('.vis-overview-design');\n            var wd_vis_product_targetOffsetTop = wd_vis_product_targetElement.offset().top;\n\n            var scrollTop = $(window).scrollTop();\n\n            if (scrollTop + $(window).height() \u003e= wd_vis_product_targetOffsetTop - 300) {\n                $('.vis-overview-design-top-content').click();\n            }\n        });\n\n        \/\/ overview change\n\n        $('.wd-video-change-video-btn').on('click', function () {\n            var $videoBtn = $(this);\n            var $video = $videoBtn.parents('.wd-video-change').find('#cold-hot-videos')[0];\n            var $videoDot = $('.wd-video-change-video-dot');\n            var $btnBefore = $('.wd-video-change-video-btn-before');\n            var $btnAfter = $('.wd-video-change-video-btn-after');\n\n            if (!$videoBtn.hasClass('wd-video-change-video-btn-active')) {\n\n                $videoBtn.addClass('wd-video-change-video-btn-active');\n\n                var btnWidth = $videoBtn.outerWidth();\n\n                $videoDot.css('left', btnWidth - 70);\n\n\n                $btnBefore.hide();\n                $btnAfter.css('display', 'flex');\n\n                var time = 0;\n\n                var interval = setInterval(function () {\n                    time++;\n                    $btnAfter.text(vis_change_formatTime(time));\n\n                    if (time \u003e= 8) {\n                        clearInterval(interval);\n                        $videoDot.find('svg').show();\n                    }\n                }, 1000);\n\n                $video.play();\n\n                setTimeout(function () {\n                    $video.pause();\n                }, 8000);\n            }\n        });\n\n        function vis_change_formatTime(seconds) {\n            var hours = Math.floor(seconds \/ 3600);\n            var minutes = Math.floor((seconds % 3600) \/ 60);\n            var sec = seconds % 60;\n\n            return vis_change_pad(hours) + ':' + vis_change_pad(minutes) + ':' + vis_change_pad(sec);\n        }\n\n        function vis_change_pad(number) {\n            return number \u003c 10 ? '0' + number : number;\n        }\n\n        $('body .wd-video-change-text-popup-content-title').hover(function () {\n            $(this).siblings('.wd-video-change-text-popup').css('display', 'block')\n        }, function () {\n            $(this).siblings('.wd-video-change-text-popup').css('display', 'none')\n        });\n\n\n        $('body #cold-hot-videos').attr('src', 'https:\/\/cdn.shopify.com\/videos\/c\/o\/v\/dbff24a39645416b86217dcf5ae83b3b.mp4');\n\n        $('body .wd-video-change-cold-btn, .wd-video-change-hot-btn').on('click', function () {\n\n            $('body .wd-video-change-cold-btn, .wd-video-change-hot-btn').removeClass('active');\n\n            $(this).addClass('active');\n\n            const video = $(this).parents('.wd-video-change').find('#cold-hot-videos')[0];\n\n            $(this).parents('.wd-video-change').find('#cold-hot-videos').css('opacity', 0);\n\n            if ($(this).hasClass('wd-video-change-cold-btn')) {\n                video.src = gaspPageWidth \u003e 1024 ?\n                    'https:\/\/cdn.shopify.com\/videos\/c\/o\/v\/dbff24a39645416b86217dcf5ae83b3b.mp4' :\n                    'https:\/\/cdn.shopify.com\/videos\/c\/o\/v\/2f20e8f38df84e7da52f422138938b80.mp4';\n            } else {\n                video.src = gaspPageWidth \u003e 1024 ?\n                    'https:\/\/cdn.shopify.com\/videos\/c\/o\/v\/2d1d2bdbfffa40129ff5e8a78fd7379f.mp4' :\n                    'https:\/\/cdn.shopify.com\/videos\/c\/o\/v\/502084148e4948a783e3c957fbd25f99.mp4';\n            }\n\n            video.onloadedmetadata = function () {\n                $(this).parents('.wd-video-change').find('#cold-hot-videos').css('opacity', 1);\n                video.play();\n            };\n\n            video.onended = function () {\n                video.pause();\n                video.currentTime = 0;\n            };\n        });\n\n\n\n\n        \/\/ overview ph\n        let gaspPageWidth = $(window).width();\n        \/\/gsap\n        gsap.registerPlugin(ScrollTrigger);\n        gsap.registerPlugin(Observer);\n\n        ScrollTrigger.config({\n            ignoreMobileResize: true\n        });\n\n        if (gaspPageWidth \u003e 1024) {\n            gsap.timeline({\n                scrollTrigger: {\n                    trigger: \".wd-background-video\",\n                    start: \"top top\",\n                    end: \"+=250%\",\n                    pin: true,\n                    scrub: 1,\n                    \/\/ markers: true\n                }\n\n            }).to(\".wd-background-video-img\", {\n                height: '1000%',\n                opacity: 1,\n                duration: 3,\n                ease: \"power2.inOut\"\n\n            }).to(\".wd-background-word\", {\n                height: \"auto\",\n                opacity: 1,\n                duration: 1,\n                ease: \"power2.inOut\"\n            }\n\n                , \"\u003c0.3\");\n        }\n\n        \/\/ overview install\n\n        $('.vis-overview-install-play-btn').click(function () {\n            $(this).parent('.vis-overview-install-mp4').addClass('vis-overview-install-mp4-active')\n            $(this).siblings('video').show()[0].play();\n\n        })\n        $('.vis-overview-install-stop-btn').click(function () {\n            $(this).parent('.vis-overview-install-mp4').removeClass('vis-overview-install-mp4-active')\n            $(this).siblings('video')[0].pause();\n        })\n\n        \/\/ overview choose card\n        $('body .vis-overview-block-scene-pc-item-subtitle-click').click(function () {\n            var index = $(this).parent().index()\n\n            $(this).parent().siblings().find('.vis-overview-block-scene-pc-item-subtitle-click').removeClass('vis-overview-block-scene-pc-item-subtitle-click-active');\n            $(this).addClass('vis-overview-block-scene-pc-item-subtitle-click-active');\n            $(this).parent().siblings().find('.vis-overview-block-scene-pc-item-info-click').slideUp();\n            $(this).siblings('.vis-overview-block-scene-pc-item-info-click').slideDown();\n            $(this).parents('.vis-overview-block-scene-pc-item-content').find('.vis-overview-block-scene-pc-item-img-item').css('opacity', '0')\n            $(this).parents('.vis-overview-block-scene-pc-item-content').find('.vis-overview-block-scene-pc-item-img-item').eq(index).css('opacity', '1')\n            $(this).parents('.vis-overview-block-scene-pc-item-text-group').siblings().removeClass('vis-overview-block-scene-pc-item-text-group-active');\n            $(this).parents('.vis-overview-block-scene-pc-item-text-group').addClass('vis-overview-block-scene-pc-item-text-group-active');\n            $('.tab-active-text').removeClass('active');\n            $(this).find('.tab-active-text').addClass('active');\n        })\n\n        \/\/ medium\n        let swiperMedia = new Swiper(\".wd-v2-index-media-swiper\", {\n            slidesPerView: 4,\n            spaceBetween: 20,\n            centeredSlides: false,\n            slideToClickedSlide: true,\n            loop: true,\n            navigation: {\n                nextEl: \".wd-v2-index-media-swiper-next-btn\",\n                prevEl: \".wd-v2-index-media-swiper-prev-btn\",\n            },\n            on: {\n                slideChange: function () {\n                    $(\".wd-v2-index-media-content\").find(\"div\").eq(this.realIndex).show().siblings(\"div\").hide();\n                    $(\".wd-v2-index-media-swiper-slide img\").css({ opacity: \"0.1\" });\n                    $(\".wd-v2-index-media-swiper-slide img\").eq(this.activeIndex).css({ opacity: \"1\" });\n                },\n            },\n            pagination: {\n                el: \".swiper-pagination-media\",\n                clickable: true,\n            },\n            breakpoints: {\n                0: {\n                    slidesPerView: \"auto\",\n                    spaceBetween: 8,\n                    slidesOffsetBefore: 24,\n                    slidesOffsetAfter: 24,\n                },\n                390: {\n                    slidesPerView: 4,\n                    spaceBetween: 30,\n                },\n                1025: {\n                    slidesPerView: 4,\n                    spaceBetween: 20,\n                },\n            },\n        });\n    \u003c\/script\u003e\u003c\/p\u003e","brand":"Waterdrop","offers":[{"title":"Default Title","offer_id":47995080245473,"sku":"WD-A2","price":499.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0675\/3864\/9313\/files\/WD-A2.png?v=1771614602","url":"https:\/\/cenozoic-supply.com\/products\/waterdrop-reverse-osmosis-hot-cold-water-dispenser-a2","provider":"Cenozoic Supply","version":"1.0","type":"link"}