PageSourceSearch

https://www.technosmart.ai/wp-content/plugins/ai-max-plus/modules/…/assets/js/header-icons.js?ver=1.0.2

js technosmart.ai collected 2026-10-09 22:58:52 UTC 3,081 bytes, 82 lines download raw bytes

1// Search js
2(function ($) {
3
4    var dtHeaderIconsWidgetHandler = function($scope, $){
5
6        $search = $scope.find("div.search-overlay");
7        if( $search.length ) {
8            if($search.parents('.elementor-section').hasClass('sticky-header-active')) {
9                $search.find(".wdt-search-form-container").remove();
10            } else {
11                $form = $search.find(".wdt-search-form-container").clone();
12                $search.find(".wdt-search-form-container").remove();
13                $form.appendTo( $("body") );
14            }
15        }
16
17        $('.wdt-search-form-close').on('click', function(e){
18            if ($(this).parents('.wdt-search-form-container').length) {
19                $(this).parents('.wdt-search-form-container').removeClass('show');
20            } else {
21                $('.wdt-search-form-container').toggleClass('show');
22            }
23        });
24
25        $scope.find('.wdt-search-icon').on('click', function(e) {
26            if($(this).parents('.wdt-header-icons-list-item').hasClass('search-expand')) {
27                $searchItem = $scope.find('.wdt-search-form-container');
28            } else  {
29                $searchItem = $('body').find('.wdt-search-form-container')[0];
30            }
31            if($searchItem) {
32                $($searchItem).toggleClass('show');
33            }
34        });
35
36        $scope.find('.wdt-shop-menu-cart-icon').on('click', function(e) {
37
38            if($('.wdt-shop-cart-widget').hasClass('activate-sidebar-widget')) {
39
40                $('.wdt-shop-cart-widget').addClass('wdt-shop-cart-widget-active');
41                $('.wdt-shop-cart-widget-overlay').addClass('wdt-shop-cart-widget-active');
42
43                // Nice scroll script
44
45                var winHeight = $(window).height();
46                var headerHeight = $('.wdt-shop-cart-widget-header').height();
47                var footerHeight = $('.woocommerce-mini-cart-footer').height();
48
49                var height = parseInt((winHeight-headerHeight-footerHeight), 10);
50
51                $('.wdt-shop-cart-widget-content').height(height).niceScroll({ cursorcolor:"#000", cursorwidth: "5px", background:"rgba(20,20,20,0.3)", cursorborder:"none" });
52
53                e.preventDefault();
54            }
55
56        });
57
58        // Wishlist count update
59        $(document).on( 'added_to_wishlist removed_from_wishlist', function(){
60
61            var html = $('.wdt-wishlist-count');
62            $.ajax({
63                url: yith_wcwl_l10n.ajax_url,
64                data: {
65                    action: 'yith_wcwl_update_wishlist_count'
66                },
67                dataType: 'json',
68                success: function( data ){
69                    html.html( data.count );
70                }
71            })
72        } );
73    };
74
75    //Elementor JS Hooks
76    $(window).on('elementor/frontend/init', function () {
77
78        elementorFrontend.hooks.addAction('frontend/element_ready/wdt-header-icons.default', dtHeaderIconsWidgetHandler);
79
80    });
81
82})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.