PageSourceSearch

https://asliwholesale.com/assets/js/themed96d.js?ver=1790259055

js asliwholesale.com collected 2026-09-24 14:11:06 UTC 15,257 bytes, 310 lines download raw bytes

1"use strict";
2var header = jQuery('.main_header'),
3	header_wrapper = jQuery('.header_wrapper'),
4	header_rp = jQuery('.header_rp'),
5	min_header = 80,
6    html = jQuery('html'),
7    body = jQuery('body'),
8    footer = jQuery('footer'),
9    window_h = jQuery(window).height(),
10    window_w = jQuery(window).width(),
11    main_wrapper = jQuery('.main_wrapper'),
12    site_wrapper = jQuery('.site_wrapper'),
13    preloader_block = jQuery('.preloader'),
14    fullscreen_block = jQuery('.fullscreen_block'),
15    is_masonry = jQuery('.is_masonry'),
16    grid_portfolio_item = jQuery('.grid-portfolio-item'),
17    pp_block = jQuery('.pp_block'),
18    head_border = 1;
19jQuery(document).ready(function ($) {
20	if(jQuery('.swipebox').size() > 0) {
21		jQuery('html').addClass('gt3_swipe_box');
22		jQuery('.swipebox').swipebox({
23			afterOpen: function() {
24				gt3_setup_soho_box();
25			},
26			afterClose: function() {
27				gt3_close_soho_box();
28			}
29		});
30	}
31	if (jQuery('.ribbon_preloader') > 0) { } else {
32        setTimeout("preloader_block.addClass('la-animate');", 500);
33        setTimeout("preloader_block.addClass('load_done')", 2500);
34        setTimeout("preloader_block.remove()", 2950);
35    }
36	if (html.hasClass('sticky_menu') && body.hasClass('admin-bar')) {
37		header.css('top', jQuery('#wpadminbar').height());
38	}
39    content_update();
40    if (jQuery('.flickr_widget_wrapper').size() > 0) {
41        jQuery('.flickr_badge_image a').each(function () {
42            jQuery(this).append('<div class="flickr_fadder"></div>');
43        });
44    }
45    /* header.find('.header_wrapper').append('<div class="mob_home"><a href="'+base_url+'" style="margin-top: -6%;color: black;margin-right: -3%;"><i class="fa fa-home fa-2x" aria-hidden="true" style="margin-top: -9px;margin-right: 4%;"></i></a><a href="javascript:void(0)" class="menu_side" style="margin-top: -24px;margin-right: 13%;color: black;margin-left: 16px;"><span style="margin-top: -112px;font-weight: bold;margin-right: 41%;">MENU</span></a></div>'); */
46	header.find('.header_wrapper').append('<div class="mob_home"><a href="javascript:void(0)" class="menu_toggler"></a></div>');
47    // <div style="display: flex;justify-content: flex-end;"><a href="<?php echo $base_url;?>" style="margin-top: -12%;color: black;margin-right: 4%;"><i class="fa fa-home fa-2x" aria-hidden="true" style="margin-top: -52px;margin-right: 4%;"></i></a><span style="margin-top: -48px;font-weight: bold;margin-right: 18%;">MENU</span><a href="javascript:void(0)" class="menu_toggler"></a></div>
48    header.append('<div class="mobile_menu_wrapper"><ul class="mobile_menu container"/></div>');
49    jQuery('.mobile_menu').html(header.find('.menu').html());
50    jQuery('.mobile_menu_wrapper').hide();
51    jQuery('.menu_toggler').click(function () {
52        jQuery('.mobile_menu_wrapper').slideToggle(300);
53        jQuery('.main_header').toggleClass('opened');
54    });
55    jQuery('.menu_side').click(function () {
56        jQuery('.mobile_menu_wrapper').slideToggle(300);
57        jQuery('.main_header').toggleClass('opened');
58    });
59    //setTimeout("jQuery('body').animate({'opacity' : '1'}, 500)", 500);
60	if (jQuery('.main_wrapper').size() > 0) {
61		setTimeout("jQuery('.main_wrapper').animate({'opacity' : '1'}, 500)", 500);
62	} else if (jQuery('.fullscreen_block').size() > 0) {
63		setTimeout("jQuery('.fullscreen_block').animate({'opacity' : '1'}, 500)", 500);
64	}
65    jQuery('.search_toggler').click(function (event) {
66		event.preventDefault();
67        header.toggleClass('search_on');
68    });
69    if (pp_block.size()) {
70        centerWindow404();
71    }
72	if (jQuery('.comments_divider').size() > 0) {
73		jQuery('.comments_divider').addClass('show');
74		setTimeout("jQuery('.comments_divider').removeClass('show')",300);
75		setTimeout("jQuery('.comments_divider').addClass('show')",500);
76	}
77});
78jQuery(window).resize(function () {
79    window_h = jQuery(window).height();
80    window_w = jQuery(window).width();
81    content_update();
82	if(jQuery('.swipebox').size() > 0) {
83		if (jQuery.swipebox.isOpen ) {
84			gt3_setup_soho_box();
85			setTimeout("gt3_setup_soho_box()",500);
86		}
87	}
88});
89jQuery(window).load(function () {
90    content_update();
91});
92function content_update() {
93    if (html.hasClass('sticky_menu')) {
94        if (html.hasClass('without_border')) {
95            head_border = 0;
96        }
97        jQuery('body').css('padding-top', header.height() + head_border);
98    }
99    site_wrapper.width('100%').css('min-height', window_h - parseInt(body.css('padding-top')));
100    if (jQuery(window).width() > 760) {
101        main_wrapper.css('min-height', window_h - header.height() - footer.height() - parseInt(main_wrapper.css('padding-top')) - parseInt(main_wrapper.css('padding-bottom')) - parseInt(footer.css('border-top-width')) - parseInt(header.css('border-bottom-width')) + 'px');
102        if (fullscreen_block.size() > 0 && footer.size() > 0) {
103           /*  fullscreen_block.css('min-height', window_h - header.height() - footer.height() - parseInt(fullscreen_block.css('padding-top')) - parseInt(fullscreen_block.css('padding-bottom')) - parseInt(footer.css('border-top-width')) - parseInt(header.css('border-bottom-width')) + 'px'); */
104        } else {
105            fullscreen_block.css('min-height', window_h - header.height() - parseInt(header.css('border-bottom-width')) + 'px');
106        }
107    } else {
108        //
109    }
110}
111function gt3_get_blog_posts(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories) {
112    jQuery.post(gt3_ajaxurl, { action: "gt3_get_blog_posts", post_type: post_type, posts_count: posts_count, posts_already_showed: posts_already_showed, template_name: template_name, content_insert_class: content_insert_class, categories: categories })
113        .done(function (data) {
114            jQuery(content_insert_class).append(data);
115            if (jQuery('.this_is_blog').size() > 0) {
116                jQuery('.pf_output_container').each(function () {
117                    if (jQuery(this).html() == '') {
118                        jQuery(this).parents('.fw_preview_wrapper').addClass('no_pf');
119                    } else {
120                        jQuery(this).parents('.fw_preview_wrapper').addClass('has_pf');
121                    }
122                });
123            }
124            if (is_masonry.size() > 0) {
125                is_masonry.masonry('reloadItems');
126                is_masonry.masonry();
127            }
128            if (jQuery('.fs_grid_portfolio').size() > 0) {
129                setupGrid();
130                grid_portfolio_item.unbind();
131                grid_portfolio_item.bind({
132                    mouseover: function () {
133                        jQuery(this).removeClass('unhovered');
134                        jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height() + jQuery(this).find('.fs-port-cont').height());
135                    },
136                    mouseout: function () {
137                        jQuery(this).addClass('unhovered');
138                        jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height());
139                    }
140                });
141            }
142            jQuery('.newLoaded').each(function () {
143                jQuery(this).find('.gallery_likes_add').click(function () {
144                    var gallery_likes_this = jQuery(this);
145                    if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) {
146                        jQuery.post(gt3_ajaxurl, {
147                            action: 'add_like_attachment',
148                            attach_id: jQuery(this).attr('data-attachid')
149                        }, function (response) {
150                            jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { expires: 7, path: '/' });
151                            gallery_likes_this.addClass('already_liked');
152                            gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart');
153                            gallery_likes_this.find('span').text(response);
154                        });
155                    }
156                });
157                jQuery(this).removeClass('newLoaded');
158            });
159            setTimeout("animateList()", 300);
160            jQuery(window).on('scroll', scrolling);
161        });
162}
163function gt3_get_port_posts(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories) {
164    jQuery.post(gt3_ajaxurl, { action: "get_portfolio_works", post_type: post_type, posts_count: posts_count, posts_already_showed: posts_already_showed, template_name: template_name, content_insert_class: content_insert_class, categories: categories })
165        .done(function (data) {
166            jQuery(content_insert_class).append(data);
167            if (jQuery('.this_is_blog').size() > 0) {
168                jQuery('.pf_output_container').each(function () {
169                    if (jQuery(this).html() == '') {
170                        jQuery(this).parents('.fw_preview_wrapper').addClass('no_pf');
171                    } else {
172                        jQuery(this).parents('.fw_preview_wrapper').addClass('has_pf');
173                    }
174                });
175            }
176            if (is_masonry.size() > 0) {
177                is_masonry.masonry('reloadItems');
178                is_masonry.masonry();
179            }
180            if (jQuery('.fs_grid_portfolio').size() > 0) {
181                setupGrid();
182                grid_portfolio_item.unbind();
183                grid_portfolio_item.bind({
184                    mouseover: function () {
185                        jQuery(this).removeClass('unhovered');
186                        jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height() + jQuery(this).find('.fs-port-cont').height());
187                    },
188                    mouseout: function () {
189                        jQuery(this).addClass('unhovered');
190                        jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height());
191                    }
192                });
193            }
194            jQuery('.newLoaded').each(function () {
195                jQuery(this).find('.gallery_likes_add').click(function () {
196                    var gallery_likes_this = jQuery(this);
197                    if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) {
198                        jQuery.post(gt3_ajaxurl, {
199                            action: 'add_like_attachment',
200                            attach_id: jQuery(this).attr('data-attachid')
201                        }, function (response) {
202                            jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { expires: 7, path: '/' });
203                            gallery_likes_this.addClass('already_liked');
204                            gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart');
205                            gallery_likes_this.find('span').text(response);
206                        });
207                    }
208                });
209                jQuery(this).removeClass('newLoaded');
210            });
211            setTimeout("animateList()", 300);
212            jQuery(window).on('scroll', scrolling);
213        });
214}
215function gt3_get_isotope_posts(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories) {
216    jQuery.post(gt3_ajaxurl, { action: "get_portfolio_works", post_type: post_type, posts_count: posts_count, posts_already_showed: posts_already_showed, template_name: template_name, content_insert_class: content_insert_class, categories: categories })
217        .done(function (data) {
218            if (data.length < 1) {
219                jQuery(".load_more_works").hide("fast");
220            }
221            var $newItems = jQuery(data);
222            jQuery(content_insert_class).isotope('insert', $newItems, function () {
223                jQuery(content_insert_class).ready(function () {
224                    jQuery(content_insert_class).isotope('reLayout');
225                });
226				jQuery('.newLoaded').each(function () {
227					jQuery(this).find('.gallery_likes_add').click(function () {
228						var gallery_likes_this = jQuery(this);
229						if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) {
230							jQuery.post(gt3_ajaxurl, {
231								action: 'add_like_attachment',
232								attach_id: jQuery(this).attr('data-attachid')
233							}, function (response) {
234								jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { expires: 7, path: '/' });
235								gallery_likes_this.addClass('already_liked');
236								gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart');
237								gallery_likes_this.find('span').text(response);
238							});
239						}
240					});
241					jQuery(this).removeClass('newLoaded');
242				});
243                if (jQuery('.fs-port-cont').size() > 0) {
244                    setTimeout("setupGrid()", 500);
245                    setTimeout("setupGrid()", 1000);
246                    setTimeout('jQuery(".fs_grid_portfolio").isotope("reLayout");', 1500);
247                }
248            });
249        });
250}
251function animateList() {
252    jQuery('.loading:first').removeClass('loading').animate({'z-index': '15'}, 200, function () {
253        animateList();
254        if (is_masonry.size() > 0) {
255            is_masonry.masonry();
256        }
257    });
258};
259function workCheck() {
260    if (jQuery('.fs_blog_module').height() < parseInt(fullscreen_block.css('min-height'))) {
261        get_works();
262    } else {
263        fullscreen_block.addClass('cheked');
264    }
265}
266function scrolling() {
267    var chk_height = jQuery('body').height() - jQuery(this).height() - header.height() - footer.height() - 20;
268    if (jQuery(this).scrollTop() >= chk_height) {
269        jQuery(this).unbind("scroll");
270        get_works();
271    }
272}
273var setTop = 0;
274function centerWindow404() {
275    setTop = (window_h - pp_block.height() - header.height()) / 2 + header.height();
276    if (setTop < header.height() + 50) {
277        pp_block.addClass('fixed');
278        body.addClass('addPadding');
279        pp_block.css('top', header.height() + 50 + 'px');
280    } else {
281        pp_block.css('top', setTop + 'px');
282        pp_block.removeClass('fixed');
283        body.removeClass('addPadding');
284    }
285}
286jQuery(window).resize(function () {
287    if (pp_block.size()) {
288        setTimeout('centerWindow404()', 500);
289        setTimeout('centerWindow404()', 1000);
290    }
291});
292function gt3_open_soho_box() {
293}
294function gt3_setup_soho_box() {
295	var swipe_slider = jQuery('#swipebox-slider'),
296		swipe_title = jQuery('#swipebox-top-bar'),
297		swipe_bottom = jQuery('#swipebox-bottom-bar'),
298		setHeight = 0;
299	setHeight = jQuery(window).height() - swipe_title.height() - swipe_bottom.height();
300	swipe_slider.height(setHeight).css('top', swipe_title.height());
301}
302function gt3_close_soho_box() {
303}
304jQuery(document).on("click", "#swipebox-container .slide.current img", function (e) {
305	jQuery('#swipebox-next').click();
306	e.stopPropagation();
307});
308jQuery(document).on("click", "#swipebox-container", function (e) {
309	jQuery('#swipebox-close').click();
310});

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.