pawstreats.shop Open in urlscan Pro
2606:4700:3034::ac43:abfb  Public Scan

Submitted URL: http://pawstreats.shop/static/site/js/jqanimate.js
Effective URL: https://pawstreats.shop/static/site/js/jqanimate.js
Submission: On September 04 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

$(function () {
    $('.shop_pro').mouseenter(function () {
        $(this).children().last().css('display', 'block');
    })
    $('.shop_pro').mouseleave(function () {
        $(this).children().last().css('display', 'none');
    })
    $(".toggle").click(function () {
        $(this).next().animate({ height: 'toggle' })
    })
    $(".toggleg").click(function () {
        $(this).next().animate({ height: 'toggle' })
    })
    $(".wishlist").click(function (e) {
        $(this).addClass('wishlistfoucs');
        // $(this).toggleClass("wishlistfoucs");
    })

    $('.carousel-main').flickity(
        { prevNextButtons: true, pageDots: false }
    );
    $('.carousel-nav').flickity({
        asNavFor: '.carousel-main',
        contain: true,
        pageDots: false,
        vertical: true,
        prevNextButtons: true
    });
    if (localStorage.getItem('wishlist_box') != null) {
        var wishlist_box = JSON.parse(localStorage.getItem('wishlist_box'))
        let b = document.querySelectorAll('.wishlist')
        if (wishlist_box.length > 0) {
            var c = wishlist_box.map((obj) => {
                return obj.id
            });
            b.forEach((productElement) => {
                var productId = productElement.getAttribute('data-product-id');
                if (c.includes(Number(productId))) {

                    productElement.classList.add("wishlistfoucs");
                } else {
                    productElement.classList.remove("wishlistfoucs");

                }
            });
        }
    }
    $('.mover').hover(function () {
        $(this).next().show();
    },
        function () {
            $(this).next().hide();
        });

    $('.dio_menu_box').hover(function () {
        $(this).show();
    },
        function () {
            $(this).hide();
        });
    $('.shop_pro_13').mouseenter(function () {
        $('.hover_shop').css('display', 'block');
        $('.small_ratio').css('background', '#fff');
    })
    // $('.shop_pro_13').mouseleave(function () {
    //   $('.hover_shop').css('opacity', '0');
    //   $('.small_ratio').css('background', '#f7e7e6');   
    // })
    // $('.hover_shop').mouseenter(function () {
    //   $('.hover_shop').css('opacity', '1');
    //   $('.small_ratio').css('background', '#fff');   
    // })
    $('.hover_shop').mouseleave(function () {
        $('.hover_shop').css('display', 'none');
        $('.small_ratio').css('background', '#f7e7e6');
    })

    // window.onmousewheel = wheel
    // function wheel(e) {
    //     var box_pon = document.getElementById("header");
    //     if (e.wheelDelta) {
    //         if (e.wheelDelta > 0) {
    //             if (document.documentElement.scrollTop > 0) {
    //                 $("#header").fadeIn();
    //             }
    //         } else {
    //             $("#header").fadeOut();
    //         }

    //     }

    // }

});