PageSourceSearch

https://www.creativedev.in/wp-content/plugins/shopkeeper-portfolio…?ver=15b045a3ac3ad03d6ca4bcec82f079c2

js creativedev.in collected 2026-10-05 03:35:41 UTC 4,468 bytes, 165 lines download raw bytes

1jQuery( function ($) {
2
3	"use strict";
4
5	//portfolio isotope - hover effect
6	$('.hover-effect-text').each(function(){
7
8		var that = $(this);
9
10		that.css('bottom',-that.outerHeight())
11			.attr('data-height',that.outerHeight());
12	})
13
14	$('.hover-effect-link').on( 'mouseenter', function(){
15
16		var that = $(this);
17
18		if ( !that.find('.hover-effect-text').is(':empty') ) {
19
20			var portfolio_cat_height = that.find('.hover-effect-text').outerHeight();
21
22			that.find('.hover-effect-title').css('bottom',portfolio_cat_height);
23			that.find('.hover-effect-text').css('bottom',0);
24
25		}
26
27	});
28
29
30	$('.hover-effect-link').on( 'mouseleave', function(){
31
32		var that = $(this);
33
34		if ( !that.find('.hover-effect-text').is(':empty') ) {
35
36			var portfolio_cat_height = that.find('.hover-effect-text').attr('data-height');
37
38			that.find('.hover-effect-title').css('bottom',28);
39			that.find('.hover-effect-text').css('bottom',-portfolio_cat_height);
40		}
41
42	});
43
44
45	//portfolio isotope - adjust wrapper width, return portfolio_grid
46    function portfolioIsotopeWrapper () {
47
48		if ( $(window).innerWidth() > 1584 ) {
49			$portfolio_grid = 5;
50		} else if ( $(window).innerWidth() <= 480 ) {
51			$portfolio_grid = 1;
52		} else if ( $(window).innerWidth() <= 901 ) {
53			$portfolio_grid = 2;
54		} else if ( $(window).innerWidth() <= 1248 ) {
55			$portfolio_grid = 3;
56		} else {
57			$portfolio_grid = 4;
58		}
59
60		if ( $('.items_per_row_3').length > 0 && $(window).innerWidth() > 1248 )
61		{
62			$portfolio_grid = 3;
63		}
64
65		if ( $('.items_per_row_4').length > 0 && $(window).innerWidth() > 1584 )
66		{
67			$portfolio_grid = 4;
68		}
69
70        $portfolio_wrapper_width = $('.portfolio-isotope-container').width();
71
72        if ( $portfolio_wrapper_width % $portfolio_grid > 0 ) {
73            $portfolio_wrapper_width = $portfolio_wrapper_width + ( $portfolio_grid - $portfolio_wrapper_width%$portfolio_grid);
74        };
75
76        $('.portfolio-isotope').css('width',$portfolio_wrapper_width);
77
78        return $portfolio_grid;
79    } // end portfolioIsotopeWrapper
80
81    //portfolio isotope
82    if ( $('.portfolio-isotope-container').length ) {
83
84		var $portfolio_wrapper_inner,
85            $portfolio_wrapper_width,
86            $portfolio_grid,
87            $filterValue;
88
89        $filterValue = $('.filters-group .is-checked').attr('data-filter');
90
91        $portfolio_grid =  portfolioIsotopeWrapper();
92        portfolioIsotopeWrapper();
93
94        var afterIsotope = function(){
95            setTimeout(function(){
96                //$('.preloader_isotope').remove();
97                $(".portfolio-box").removeClass('hidden');
98            },200);
99        }
100
101        var portfolioIsotope=function(){
102            var imgLoad = imagesLoaded($('.portfolio-isotope'));
103
104            imgLoad.on('done',function(){
105
106                $portfolio_wrapper_inner = $('.portfolio-isotope').isotope({
107                    "itemSelector": ".portfolio-box",
108					 //layoutMode: 'fitRows',
109                    "masonry": { "columnWidth": ".portfolio-grid-sizer" }
110                });
111
112                afterIsotope()
113            })
114
115            imgLoad.on('fail',function(){
116
117                portfolio_wrapper_inner = $('.portfolio-isotope').isotope({
118                    "itemSelector": ".portfolio-box",
119					 //layoutMode: 'fitRows',
120                    "masonry": { "columnWidth": ".portfolio-grid-sizer" }
121                });
122
123                afterIsotope()
124            })
125
126        }
127
128        portfolioIsotope();
129
130        // filter items on button click
131        $('.filters-group').on( 'click', '.filter-item', function() {
132
133            $filterValue = $(this).attr('data-filter');
134            $(this).parents('.portfolio-filters').siblings('.portfolio-isotope').isotope({ filter: $filterValue });
135
136		});
137    }//endif portfolio isotope
138
139    $(window).on( 'resize', function(){
140
141    	//portfolio isotope
142        if ( $('.portfolio-isotope-container').length ) {
143
144            var $portfolio_grid_on_resize;
145
146            portfolioIsotopeWrapper()
147            $portfolio_grid_on_resize =  portfolioIsotopeWrapper();
148
149            if ( $portfolio_grid != $portfolio_grid_on_resize ) {
150
151                $('.filters-group .filter-item').each(function(){
152                    if ( $(this).attr('data-filter') == $filterValue ){
153                            $(this).trigger('click');
154                    }
155                })
156
157                $portfolio_grid = $portfolio_grid_on_resize;
158
159				resizeIsotopeEnd();
160
161            }
162
163        }
164    });
165});

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.