PageSourceSearch

https://www.1lg.com/wp-content/plugins/bs-isotope-main/js/isotope-init.js?ver=7.1.2

js 1lg.com collected 2026-10-04 08:34:19 UTC 5,256 bytes, 203 lines download raw bytes

1// Set .equal-height class to equal height
2jQuery(document).ready(function ($) {
3  $(window).resize(function () {
4    if (window.matchMedia("(min-width: 768px)").matches) {
5
6      var maxHeight = 0;
7
8      $(".equal-height").each(function () {
9        if ($(this).height() > maxHeight) {
10          maxHeight = $(this).height();
11        }
12      });
13
14      $(".equal-height").height(maxHeight);
15
16    }
17  }).trigger("resize");
18});
19// Set .equal-height class to equal height End
20
21
22// Initialize Isotope
23
24// Equal Height
25jQuery(function ($) {
26
27  var $container = $('#equal-height'); //The ID for the list with all the blog posts
28  $container.isotope({ //Isotope options, 'item' matches the class in the PHP
29    itemSelector: '.item',
30    layoutMode: 'fitRows'
31  });
32
33  //Add the class active to the item that is clicked, and remove from the others
34  var $optionSets = $('#filters-equal-height'),
35    $optionLinks = $optionSets.find('a');
36
37  $optionLinks.click(function () {
38    var $this = $(this);
39    // don't proceed if already active
40    if ($this.hasClass('active')) {
41      return false;
42    }
43    var $optionSet = $this.parents('#filters-equal-height');
44    $optionSets.find('.active').removeClass('active');
45    $this.addClass('active');
46
47    //When an item is clicked, sort the items.
48    var selector = $(this).attr('data-filter');
49    $container.isotope({
50      filter: selector
51    });
52
53    return false;
54  });
55
56});
57// Equal Height End
58
59
60// Masonry
61jQuery(function ($) {
62
63  var $container = $('#masonry'); //The ID for the list with all the blog posts
64  $container.isotope({ //Isotope options, 'item' matches the class in the PHP
65    itemSelector: '.item',
66    layoutMode: 'masonry'
67  });
68
69  //Add the class active to the item that is clicked, and remove from the others
70  var $optionSets = $('#filters-masonry'),
71    $optionLinks = $optionSets.find('a');
72
73  $optionLinks.click(function () {
74    var $this = $(this);
75    // don't proceed if already active
76    if ($this.hasClass('active')) {
77      return false;
78    }
79    var $optionSet = $this.parents('#filters-masonry');
80    $optionSets.find('.active').removeClass('active');
81    $this.addClass('active');
82
83    //When an item is clicked, sort the items.
84    var selector = $(this).attr('data-filter');
85    $container.isotope({
86      filter: selector
87    });
88
89    return false;
90  });
91
92});
93// Masonry End
94
95
96// Masonry Overlay
97jQuery(function ($) {
98
99  var $container = $('#masonry-overlay'); //The ID for the list with all the blog posts
100  $container.isotope({ //Isotope options, 'item' matches the class in the PHP
101    itemSelector: '.item',
102    layoutMode: 'masonry'
103  });
104
105  //Add the class active to the item that is clicked, and remove from the others
106  var $optionSets = $('#filters-masonry-overlay'),
107    $optionLinks = $optionSets.find('a');
108
109  $optionLinks.click(function () {
110    var $this = $(this);
111    // don't proceed if already active
112    if ($this.hasClass('active')) {
113      return false;
114    }
115    var $optionSet = $this.parents('#filters-masonry-overlay');
116    $optionSets.find('.active').removeClass('active');
117    $this.addClass('active');
118
119    //When an item is clicked, sort the items.
120    var selector = $(this).attr('data-filter');
121    $container.isotope({
122      filter: selector
123    });
124
125    return false;
126  });
127
128});
129// Masonry Overlay End
130
131
132// Equal Height Overlay
133jQuery(function ($) {
134
135  var $container = $('#equal-height-overlay'); //The ID for the list with all the blog posts
136  $container.isotope({ //Isotope options, 'item' matches the class in the PHP
137    itemSelector: '.item',
138    layoutMode: 'fitRows'
139  });
140
141  //Add the class active to the item that is clicked, and remove from the others
142  var $optionSets = $('#filters-equal-height-overlay'),
143    $optionLinks = $optionSets.find('a');
144
145  $optionLinks.click(function () {
146    var $this = $(this);
147    // don't proceed if already active
148    if ($this.hasClass('active')) {
149      return false;
150    }
151    var $optionSet = $this.parents('#filters-equal-height-overlay');
152    $optionSets.find('.active').removeClass('active');
153    $this.addClass('active');
154
155    //When an item is clicked, sort the items.
156    var selector = $(this).attr('data-filter');
157    $container.isotope({
158      filter: selector
159    });
160
161    return false;
162  });
163
164});
165// Equal Height Overlay End
166
167
168// Products
169jQuery(function ($) {
170
171  var $container = $('#product'); //The ID for the list with all the blog posts
172  $container.isotope({ //Isotope options, 'item' matches the class in the PHP
173    itemSelector: '.item',
174    layoutMode: 'fitRows'
175  });
176
177  //Add the class active to the item that is clicked, and remove from the others
178  var $optionSets = $('#filters-product'),
179    $optionLinks = $optionSets.find('a');
180
181  $optionLinks.click(function () {
182    var $this = $(this);
183    // don't proceed if already active
184    if ($this.hasClass('active')) {
185      return false;
186    }
187    var $optionSet = $this.parents('#filters-product');
188    $optionSets.find('.active').removeClass('active');
189    $this.addClass('active');
190
191    //When an item is clicked, sort the items.
192    var selector = $(this).attr('data-filter');
193    $container.isotope({
194      filter: selector
195    });
196
197    return false;
198  });
199
200});
201// Products End
202
203// Initialize Isotope End

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.