PageSourceSearch

https://www.imagesretailme.com/wp-content/themes/newedge-child/js/main.js?ver=6.9.4

js imagesretailme.com collected 2026-09-24 09:54:35 UTC 7,367 bytes, 282 lines download raw bytes

1/*global $:false */
2
3jQuery(document).ready(function($){'use strict';
4
5	/* -------------------------------------- */
6	// 		RTL Support Visual Composer
7	/* -------------------------------------- */	
8	var delay = 1;
9	function themeum_rtl() {
10		if( $("html").attr("dir") == 'rtl' ){
11			if( $( ".entry-content > div" ).attr( "data-vc-full-width" ) =='true' )	{
12				$('.entry-content > div').css({'left':'auto','right':$('.entry-content > div').css('left')});	
13			}
14		}
15	}
16	setTimeout( themeum_rtl , delay);
17
18	$( window ).resize(function() {
19		setTimeout( themeum_rtl , delay);
20	});
21
22
23	$('.prettySocial').prettySocial();
24	
25	/* -------------------------------------- */
26	// 				Sticky Nav
27	/* -------------------------------------- */
28	$(window).on('scroll', function(){'use strict';
29		if ( $(window).scrollTop() > 130 ) {
30			$('#masthead').addClass('sticky');
31		} else {
32			$('#masthead').removeClass('sticky');
33		}
34	});
35
36	$('.featured-wrap .share-btn').on('click',function(){ 'use strict';
37		$('.share-btn-pop').slideToggle(500);
38	});
39
40	$('#gallerycarousel').flexslider({ 
41		animation: "slide",
42		controlNav: false,
43		animationLoop: false,
44		slideshow: false,
45		itemWidth: 132,
46		itemMargin:10,
47		asNavFor: '#galleryslider'
48	});
49
50	$('#galleryslider').flexslider({ 
51		animation: "slide",
52		controlNav: false,
53		animationLoop: false,
54		slideshow: false,
55		sync: "#gallerycarousel"
56	});
57
58
59	/* -------------------------------------- */
60	// 				Search onclick
61	/* -------------------------------------- */
62	$('.hd-search-btn').on('click', function(event) { 'use strict';
63		event.preventDefault();
64		var $searchBox = $('.home-search');
65		if ($searchBox.hasClass('show')) {
66			$searchBox.removeClass('show');
67			$searchBox.fadeOut('fast');
68		}else{
69			$searchBox.addClass('show');
70			$searchBox.fadeIn('slow');
71		}
72	});
73
74	$('.hd-search-btn-close').on('click', function(event) { 'use strict';
75		event.preventDefault();
76
77		var $searchBox = $('.home-search');
78		$searchBox.removeClass('show');
79		$searchBox.fadeOut('fast');
80	});	
81
82
83
84
85	/* --------------------------------------
86	*				Bookmark 
87	*  -------------------------------------- */
88	// Add Meta Value Form Submit
89	$(".bookmark").on('click',function(e){ 'use strict';
90		$(this).submit(function(e){
91			var postdata = $(this).serializeArray();
92			var formURL = $(this).attr("action");
93			$(this).addClass( "active" );
94
95			$.ajax(
96			{
97				url : formURL,
98				type: "POST",
99				data : postdata,
100				success:function(data, textStatus, jqXHR) {
101				},
102				error: function(jqXHR, textStatus, errorThrown){
103				}
104			});
105			e.preventDefault();	//STOP default action
106			e.unbind(); //Remove a previously-attached event handler
107		});
108		$(this).submit(); //SUBMIT FORM
109	});
110	
111
112	/* -------------------------------------- */
113	// 			Bookmark Delete Form
114	/* -------------------------------------- */
115	$(".bookmark-delete").on('click',function(e){ 'use strict';
116		$(this).submit(function(e){
117			var postdata = $(this).serializeArray();
118			var formURL = $(this).attr("action");
119		
120			$.ajax(
121			{
122				url : formURL,
123				type: "POST",
124				data : postdata,
125				success:function(data, textStatus, jqXHR) {
126					location.reload();
127				},
128				error: function(jqXHR, textStatus, errorThrown){
129				}
130			});
131			e.preventDefault();	//STOP default action
132			e.unbind(); //Remove a previously-attached event handler
133		});
134		$(this).submit(); //SUBMIT FORM
135	});
136	
137
138
139
140	/* --------------------------------------
141	*		Shortcode hover color effect 
142	*  -------------------------------------- */
143	var clr = '';
144	var clr_bg = '';
145	$(".thm-color").on({
146	    mouseenter: function () {
147	     	clr = $(this).css('color');
148			clr_bg = $(this).css('backgroundColor');
149			$(this).css("color", $(this).data("hover-color"));
150			$(this).css("background-color", $(this).data("hover-bg-color"));
151	    },
152	    mouseleave: function () {
153	        $(this).css("color", clr );
154			$(this).css("background-color", clr_bg );
155	    }
156	});
157
158
159	
160	/* -------------------------------------- */
161	// 	Product Single Page Plus Minus Button
162	/* -------------------------------------- */
163
164
165
166	/* -------------------------------------- */
167	// 			Sticky Sidebar Add
168	/* -------------------------------------- */	
169	$('.stickys').theiaStickySidebar();
170
171
172	/* -------------------------------------- */
173	// 			Woocommerce
174	/* -------------------------------------- */	
175	$( ".woocart" ).hover(function() {
176		$(this).find('.widget_shopping_cart').stop( true, true ).fadeIn();
177	}, function() {
178		$(this).find('.widget_shopping_cart').stop( true, true ).fadeOut();
179	});	
180
181
182
183	$('.woocart a').html( $('.woo-cart').html() );
184
185	$('.add_to_cart_button').on('click',function(){'use strict';
186
187			$('.woocart a').html( $('.woo-cart').html() );		    
188
189			var total = 0;
190			if( $('.woo-cart-items span.cart-has-products').html() != 0 ){
191				if( $('#navigation ul.cart_list').length  > 0 ){
192					for ( var i = 1; i <= $('#navigation ul.cart_list').length; i++ ) {
193						var total_string = $('#navigation ul.cart_list li:nth-child('+i+') .quantity').text();
194						total_string = total_string.substring(-3, total_string.length);
195						total_string = total_string.replace('×', '');
196						total_string = parseInt( total_string.trim() );
197						//alert( total_string );
198						if( !isNaN(total_string) ){ total = total_string + total; }
199					}
200				}
201			}
202			$('.woo-cart-items span.cart-has-products').html( total+1 );
203
204    });	
205
206
207    // Hover Youtube Video Play
208	$('#player').on('hover',function() {
209		var str = jQuery("iframe#player").attr('src');
210		if (str.indexOf("autoplay") >= 0){
211
212		}else{
213			jQuery("iframe#player").attr('src', str + '?autoplay=1'); 
214		}
215	});
216
217
218
219
220
221	// Load More Pagination
222	$('#post-loadmore').on('click',function(event){
223		event.preventDefault();
224
225		var $that = $(this);
226		if($that.hasClass('disable')){
227			return false;
228		}
229
230		//alert('sad');
231
232		var container = $('#themeum-area'), // item container
233			perpage = $that.data('per_page'), // post per page number
234			show_author = $that.data('show_author'), // output column grid
235			show_date = $that.data('show_date'), // output column grid
236			show_category = $that.data('show_category'), // output column grid
237			order = $that.data('order'), // output column grid
238			category = $that.data('category'), // output column grid
239			total_posts = $that.data('total_posts'), // total posts count
240			ajaxUrl = $that.data('url');
241
242		var items = container.find('.themeum-latest-item'),
243			itemNumbers = items.length,
244			paged = ( itemNumbers / perpage ) + 1; // paged number
245
246//console.log( paged );
247
248		$.ajax({
249			url: ajaxUrl,
250			type: 'POST',
251			data: {perpage: perpage,paged:paged,show_author:show_author,show_date:show_date,show_category:show_category,order:order,category:category},
252			beforeSend: function(){
253				$that.addClass('disable');
254				$('<i class="fa fa-spinner fa-spin" style="margin-left:10px"></i>').appendTo( "#post-loadmore" ).fadeIn(100);
255			},
256			complete:function(){
257				$('#post-loadmore .fa-spinner ').remove();
258			}
259		})
260		.done(function(data) {
261			var newLenght  = container.find('.themeum-latest-item').length;
262			if(total_posts <= newLenght){
263				$('.load-wrap').fadeOut(400,function(){
264					$('.load-wrap').remove();
265				});
266			}
267			$that.removeClass('disable');
268
269			var $newItems = $(data);
270			$('#themeum-area').append( $newItems );
271		})
272		.fail(function() {
273			alert('failed');
274			console.log("error");
275		});
276	});
277
278
279
280
281
282});

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.