PageSourceSearch

https://eternallyblessed.org/wp-content/themes/custom-community/apicore/js/custom.js?ver=6.3.12

js eternallyblessed.org collected 2026-10-01 15:17:33 UTC 22,574 bytes, 765 lines download raw bytes

1jQuery(function($)
2{	
3	if( $('.carousel').length > 0 )
4	{
5		$('.carousel').carousel();	
6	}
7	
8	// ** adding zoom to images **
9	
10	$('.result-wrapper').on('mouseenter', '.asin-image', function(event)
11	{
12		var mediumImage = $(this).attr('rel');
13		
14		if('' != mediumImage)
15		{
16			$(this).parent().zoom({
17				url: mediumImage
18			});
19		}
20	});
21	
22	// ** search query coming from the search bar from main website **
23	
24	var searchQuery = $('.search-query').val();
25	var buttonType = $('.button-search').attr('type');
26	
27	
28	if('button' == buttonType)
29	{
30		$('.search-query').keypress(function(e){
31			if(e.keyCode == 13)
32			{
33				e.preventDefault();
34				$('.button-search').click();
35			}
36		});
37		
38		$('.result-wrapper').hide();
39		$('.load-image').show();
40		$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery}, function(data)  
41		{
42			$('.load-image').hide();
43			if('invalid' == data)
44			{
45				// ** handle clicks from buy button from about page **
46				
47				if($('.title-input').hasClass('buy-title'))
48				{
49					var searchQuery = $('.buy-title').val();
50					var typeRequest = '';
51					
52					$('.search-query').val(searchQuery);
53					
54					$('.load-image').show();
55					$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery, typerequest: typeRequest}, function(data)  
56					{
57						$('.load-image').hide();
58						if('invalid' == data)
59						{
60							if($('.author-input').hasClass('buy-author'))
61							{
62								var searchQuery = $('.buy-author').val();
63								var typeRequest = 'author';
64								
65								$('.load-image').show();
66								$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery, typerequest: typeRequest}, function(data)  
67								{
68									$('.load-image').hide();
69									if('invalid' == data)
70									{
71										$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
72										$('.result-wrapper').fadeIn(1000);
73									}
74									else
75									{
76										$('.search-query').val(searchQuery);
77										$('.result-wrapper').html('');
78										$('.result-wrapper').append(data);
79										$('.result-wrapper').delay(500).fadeIn();
80										
81										$('.asin-image').each(function(){
82											var mediumImage = $(this).attr('rel');
83									        $(this)
84									        .parent()
85									        .zoom({url: mediumImage});
86									    });
87									}
88								});  
89							}	
90						}
91						else
92						{
93							$('.result-wrapper').html('');
94							$('.result-wrapper').append(data);
95							$('.result-wrapper').delay(500).fadeIn();
96							
97							$('.asin-image').each(function(){
98								var mediumImage = $(this).attr('rel');
99						        $(this)
100						        .parent()
101						        .zoom({url: mediumImage});
102						    });
103						}
104					}); 
105				}
106				else
107				{
108					$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
109					$('.result-wrapper').fadeIn(1000);
110				}
111			}
112			else
113			{
114				$('.result-wrapper').html('');
115				$('.result-wrapper').append(data);
116				$('.result-wrapper').delay(500).fadeIn();
117				
118				$('.asin-image').each(function(){
119					var mediumImage = $(this).attr('rel');
120			        $(this)
121			        .parent()
122			        .zoom({url: mediumImage});
123			    });
124			}
125		});  
126	}
127	
128	// ** search query coming from search page **
129	
130	$('.button-search').click(function()
131	{
132		$('.result-wrapper').hide();
133		var searchQuery = $('.search-query').val();
134		$('.load-image').show();
135		$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery}, function(data)  
136			{
137				$('.load-image').hide();
138				if('invalid' == data)
139				{
140					$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
141					$('.result-wrapper').fadeIn(1000);
142				}
143				else
144				{
145					$('.result-wrapper').html('');
146					$('.result-wrapper').append(data);
147					$('.result-wrapper').delay(500).fadeIn();
148					
149					$('.asin-image').each(function(){
150						var mediumImage = $(this).attr('rel');
151				        $(this)
152				        .parent()
153				        .zoom({url: mediumImage});
154				    });
155				}
156		});  
157	});
158	
159	$('.result-wrapper').on('click', '.page-nr', function(event)
160	{
161		$('.result-wrapper').hide();
162		var currentPage = $('.active').text();
163		var previousPage = Number(currentPage)-1;
164		var nextPage = Number(currentPage)+1;
165		
166		var selectedPage = $(this).text();
167
168		if ('Previous' == selectedPage)
169		{
170			selectedPage = previousPage;
171		}
172		if ('Next' == selectedPage)
173		{
174			selectedPage = nextPage;
175		}
176		
177		if(selectedPage > 0)
178		{
179			var searchQuery = $('.search-query').val();
180			var typeRequest = $('#results-ul').attr('class');
181			
182			$('.load-image').show();
183			$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery, page: selectedPage, typerequest: typeRequest}, function(data)  
184			{
185				$('.load-image').hide();
186				if('invalid' == data)
187				{
188					$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
189					$('.result-wrapper').fadeIn(1000);
190				}
191				else
192				{
193					$('.result-wrapper').html('');
194					$('.result-wrapper').append(data);
195					$('.result-wrapper').delay(500).fadeIn();
196					
197					$('.asin-image').each(function(){
198						var mediumImage = $(this).attr('rel');
199				        $(this)
200				        .parent()
201				        .zoom({url: mediumImage});
202				    });
203				}
204			});  
205		}
206	});
207	
208	
209	// ** handling clicks from results table from title click  **
210	
211	$('.result-wrapper').on('click', '.asin-title', function(event)
212	{
213		var asinStr = $(this).attr('class');
214		var asinArray = asinStr.split(' ');
215		var asinId = asinArray[1];
216		
217		var title = $(this).text();
218		var isbn = $(this).parent().attr('class');
219		
220		var asinString = $('.asin-string').val();
221		
222		$('.load-image').show();
223		$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', asin: asinId, title: title, asinstring: asinString}, function(data)  
224		{
225			$('.load-image').hide();
226			if('invalid' == data)
227			{
228				$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
229				$('.result-wrapper').fadeIn(1000);
230			}
231			else
232			{
233				$('.results-list').hide();
234				$('.result-wrapper').append(data);
235				$('.result-wrapper').delay(500).fadeIn();
236				
237				$('.asin-image').each(function(){
238					var mediumImage = $(this).attr('rel');
239			        $(this)
240			        .parent()
241			        .zoom({url: mediumImage});
242			    });
243				
244				$('.show-more').click(function()
245				{
246					$('.more-text').slideToggle('slow', function()
247					{
248						var showText = $('.show-more').text();
249						if('Show Less' == showText)
250						{
251							 $('.show-more').html('Show More');
252						}
253						if('Show More' == showText)
254						{
255							 $('.show-more').html('Show Less');
256						}
257					});
258				});
259				
260				var bindingType = $('#binding-type').attr('class');
261				var alibrisSearch = 'valid';  //only book
262				var biblioSearch = 'valid';  //only book
263				var closeoutSearch = 'valid';  //only book
264				var halfSearch = 'valid';  //only book
265				var ebaySearch = 'valid';  //only book
266				
267				var bnSearch = 'valid';  // searching ebook and book
268				var christianSearch = 'valid';  // searching ebook and book
269				var ebooksSearch = 'valid';  //only ebook
270				var eKoboSearch = 'valid';  //only ebook
271				var eAmazonSearch = 'valid';  //only ebook
272				
273				$('.load-text').fadeIn('slow').delay(5000).fadeOut('slow', function()
274				{
275					$('.back-button').click(function()
276					{	
277						$('.compare-wrapper').html('');
278						$('.results-list').fadeIn();
279					});
280				});
281
282				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, bnsearch: bnSearch}, function(data)  
283				{	
284					if('invalid' == data)
285					{
286						return false;
287					}
288					else
289					{
290						if(data.barnes['new'][0])
291						{
292							$('.new-tr').append(data.barnes['new'][0]);
293						}
294						if(data.barnes['used'][0])
295						{
296							$('.used-tr').append(data.barnes['used'][0]);
297						}
298						
299						var lowestNew = $('#lownewprice').attr('class');
300						var lowestUsed = $('#lowusedprice').attr('class');
301						
302						if(data.barnes['lowest']['new']['price'][0])
303						{
304							var priceNew = data.barnes['lowest']['new']['price'][0];
305							if(parseInt(priceNew) < parseInt(lowestNew))
306							{
307								$('.low-new-tr').html(data.barnes['lowest']['new'][0]);
308							}
309						}
310						if(data.barnes['lowest']['used']['price'][0])
311						{
312							var priceUsed = data.barnes['lowest']['used']['price'][0];
313							if(parseInt(priceUsed) < parseInt(lowestUsed))
314							{
315								$('.low-used-tr').html(data.barnes['lowest']['used'][0]);
316							}
317						}
318						
319						//ebook part
320						
321						if(data.barnes['ebook'][0])
322						{
323							$('.ebook-tr').append(data.barnes['ebook'][0]);
324						}
325						
326						var lowestEbook = $('#lowebookprice').attr('class');
327						
328						if(data.barnes['lowest']['ebook']['price'][0])
329						{
330							var priceNew = data.barnes['lowest']['ebook']['price'][0];
331							if('' == lowestEbook)
332							{
333								$('.low-ebook-tr').show();
334								$('.low-ebook-tr').html(data.barnes['lowest']['ebook'][0]);
335							}
336							if(parseInt(priceNew) < parseInt(lowestEbook))
337							{
338								$('.low-ebook-tr').show();
339								$('.low-ebook-tr').html(data.barnes['lowest']['ebook'][0]);
340							}
341						}
342						
343						// send a request to kobo with the eisbn
344						
345						if(data.barnes['lowest']['eisbn'][0])
346						{
347							$('.barnes-eisbn').val(data.barnes['lowest']['eisbn'][0]);
348							var eisbn = data.barnes['lowest']['eisbn'][0];
349							if('' != eisbn)
350							{
351								var eisbnStart = $('.eisbn-start').val();
352								if('stopped' == eisbnStart) 
353								{
354									$('.eisbn-start').val('started');
355									$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, ekobosearch: eKoboSearch, eisbn: eisbn}, function(data)  
356									{
357										if('invalid' == data)
358										{
359											return false;
360										}
361										else
362										{
363											if(data.kobo['new'][0])
364											{
365												$('.ebook-tr').append(data.kobo['new'][0]);
366											}
367											
368											var lowestEbook = $('#lowebookprice').attr('class');
369											
370											if(data.kobo['lowest']['new']['price'][0])
371											{
372												var priceNew = data.kobo['lowest']['new']['price'][0];
373												if('' == lowestEbook)
374												{
375													$('.low-ebook-tr').show();
376													$('.low-ebook-tr').html(data.kobo['lowest']['new'][0]);
377												}
378												if(parseInt(priceNew) < parseInt(lowestEbook))
379												{
380													$('.low-ebook-tr').show();
381													$('.low-ebook-tr').html(data.kobo['lowest']['new'][0]);
382												}
383											}
384										}
385									}, 'json');
386								}
387							}
388						}
389					}
390				}, 'json');
391				
392				
393				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, christiansearch: christianSearch}, function(data)  
394				{
395					if('invalid' == data)
396					{
397						return false;
398					}
399					else
400					{
401						if(data.christian['new'][0])
402						{
403							$('.new-tr').append(data.christian['new'][0]);
404						}
405						
406						var lowestNew = $('#lownewprice').attr('class');
407						
408						if(data.christian['lowest']['new']['price'][0])
409						{
410							var priceNew = data.christian['lowest']['new']['price'][0];
411							if(parseInt(priceNew) < parseInt(lowestNew))
412							{
413								$('.low-new-tr').html(data.christian['lowest']['new'][0]);
414							}
415						}
416						
417						//ebook part
418						
419						if(data.christian['ebook'][0])
420						{
421							$('.ebook-tr').append(data.christian['ebook'][0]);
422						}
423						
424						var lowestEbook = $('#lowebookprice').attr('class');
425						
426						if(data.christian['lowest']['ebook']['price'][0])
427						{
428							var priceNew = data.christian['lowest']['ebook']['price'][0];
429							if('' == lowestEbook)
430							{
431								$('.low-ebook-tr').show();
432								$('.low-ebook-tr').html(data.christian['lowest']['ebook'][0]);
433							}
434							if(parseInt(priceNew) < parseInt(lowestEbook))
435							{
436								$('.low-ebook-tr').show();
437								$('.low-ebook-tr').html(data.christian['lowest']['ebook'][0]);
438							}
439						}
440					}
441				}, 'json');
442				
443				
444				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, alibrissearch: alibrisSearch}, function(data)  
445				{			
446					if('invalid' == data)
447					{
448						return false;
449					}
450					else
451					{
452						if(data.alibris['new'][0])
453						{
454							$('.new-tr').append(data.alibris['new'][0]);
455						}
456						if(data.alibris['used'][0])
457						{
458							$('.used-tr').append(data.alibris['used'][0]);
459						}
460						
461						var lowestNew = $('#lownewprice').attr('class');
462						var lowestUsed = $('#lowusedprice').attr('class');
463						
464						if(data.alibris['lowest']['new']['price'][0])
465						{
466							var priceNew = data.alibris['lowest']['new']['price'][0];
467							if(parseInt(priceNew) < parseInt(lowestNew))
468							{
469								$('.low-new-tr').html(data.alibris['lowest']['new'][0]);
470							}
471						}
472						if(data.alibris['lowest']['used']['price'][0])
473						{
474							var priceUsed = data.alibris['lowest']['used']['price'][0];
475							if(parseInt(priceUsed) < parseInt(lowestUsed))
476							{
477								$('.low-used-tr').html(data.alibris['lowest']['used'][0]);
478							}
479						}
480					}
481				}, 'json');
482				
483				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, bibliosearch: biblioSearch}, function(data)  
484				{							
485					if('invalid' == data)
486					{
487						return false;
488					}
489					else
490					{
491						if(data.biblio['new'][0])
492						{
493							$('.new-tr').append(data.biblio['new'][0]);
494						}
495						if(data.biblio['used'][0])
496						{
497							$('.used-tr').append(data.biblio['used'][0]);
498						}
499						
500						var lowestNew = $('#lownewprice').attr('class');
501						var lowestUsed = $('#lowusedprice').attr('class');
502						
503						if(data.biblio['lowest']['new']['price'][0])
504						{
505							var priceNew = data.biblio['lowest']['new']['price'][0];
506							if(parseInt(priceNew) < parseInt(lowestNew))
507							{
508								$('.low-new-tr').html(data.biblio['lowest']['new'][0]);
509							}
510						}
511						if(data.biblio['lowest']['used']['price'][0])
512						{
513							var priceUsed = data.biblio['lowest']['used']['price'][0];
514							if(parseInt(priceUsed) < parseInt(lowestUsed))
515							{
516								$('.low-used-tr').html(data.biblio['lowest']['used'][0]);
517							}
518						}
519					}
520				}, 'json');
521				
522				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, ebookssearch: ebooksSearch}, function(data)  
523				{			
524					if('invalid' == data)
525					{
526						return false;
527					}
528					else
529					{
530						if(data.ebooks['new'][0])
531						{
532							$('.ebook-tr').append(data.ebooks['new'][0]);
533						}
534						
535						var lowestEbook = $('#lowebookprice').attr('class');
536						
537						if(data.ebooks['lowest']['new']['price'][0])
538						{
539							var priceNew = data.ebooks['lowest']['new']['price'][0];
540							if('' == lowestEbook)
541							{
542								$('.low-ebook-tr').show();
543								$('.low-ebook-tr').html(data.ebooks['lowest']['new'][0]);
544							}
545							if(parseInt(priceNew) < parseInt(lowestEbook))
546							{
547								$('.low-ebook-tr').show();
548								$('.low-ebook-tr').html(data.ebooks['lowest']['new'][0]);
549							}
550						}
551						
552						if(data.ebooks['lowest']['eisbn'][0])
553						{
554							$('.ebooks-eisbn').val(data.ebooks['lowest']['eisbn'][0]);
555							var eisbn = data.ebooks['lowest']['eisbn'][0];
556							if('' != eisbn)
557							{
558								var eisbnStart = $('.eisbn-start').val();
559								if('stopped' == eisbnStart) 
560								{
561									$('.eisbn-start').val('started');
562									$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, ekobosearch: eKoboSearch, eisbn: eisbn}, function(data)  
563									{
564										if('invalid' == data)
565										{
566											return false;
567										}
568										else
569										{
570											if(data.kobo['new'][0])
571											{
572												$('.ebook-tr').append(data.kobo['new'][0]);
573											}
574											
575											var lowestEbook = $('#lowebookprice').attr('class');
576											
577											if(data.kobo['lowest']['new']['price'][0])
578											{
579												var priceNew = data.kobo['lowest']['new']['price'][0];
580												if('' == lowestEbook)
581												{
582													$('.low-ebook-tr').show();
583													$('.low-ebook-tr').html(data.kobo['lowest']['new'][0]);
584												}
585												if(parseInt(priceNew) < parseInt(lowestEbook))
586												{
587													$('.low-ebook-tr').show();
588													$('.low-ebook-tr').html(data.kobo['lowest']['new'][0]);
589												}
590											}
591										}
592									}, 'json');
593								}
594							}
595						}
596					}
597				}, 'json');
598				
599				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, closeoutsearch: closeoutSearch}, function(data)  
600				{
601					if('invalid' == data)
602					{
603						return false;
604					}
605					else
606					{
607						if(data.closeout['new'][0])
608						{
609							$('.new-tr').append(data.closeout['new'][0]);
610						}
611						
612						var lowestNew = $('#lownewprice').attr('class');
613						
614						if(data.closeout['lowest']['new']['price'][0])
615						{
616							var priceNew = data.closeout['lowest']['new']['price'][0];
617							if(parseInt(priceNew) < parseInt(lowestNew))
618							{
619								$('.low-new-tr').html(data.closeout['lowest']['new'][0]);
620							}
621						}
622					}
623				}, 'json');
624				
625				var eAmazUrl = $('.amazon-url').val();
626				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: asinId, binding: bindingType, eamazonsearch: eAmazonSearch, eamazurl: eAmazUrl}, function(data)  
627				{	
628					if('invalid' == data)
629					{
630						return false;
631					}
632					else
633					{
634						if(data.eamazon['ebook'][0])
635						{
636							$('.ebook-tr').append(data.eamazon['ebook'][0]);
637						}
638						
639						var lowestEbook = $('#lowebookprice').attr('class');
640						
641						if(data.eamazon['lowest']['ebook']['price'][0])
642						{
643							var priceNew = data.eamazon['lowest']['ebook']['price'][0];
644							if('' == lowestEbook)
645							{
646								$('.low-ebook-tr').show();
647								$('.low-ebook-tr').html(data.eamazon['lowest']['ebook'][0]);
648							}
649							if(parseInt(priceNew) < parseInt(lowestEbook))
650							{
651								$('.low-ebook-tr').show();
652								$('.low-ebook-tr').html(data.eamazon['lowest']['ebook'][0]);
653							}
654						}
655					}
656				}, 'json');	
657				
658				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, halfsearch: halfSearch}, function(data)
659				{
660					if('invalid' == data)
661					{
662						return false;
663					}
664					else
665					{
666						if(data.half['new'][0])
667						{
668							$('.new-tr').append(data.half['new'][0]);
669						}
670						if(data.half['used'][0])
671						{
672							$('.used-tr').append(data.half['used'][0]);
673						}
674						
675						var lowestNew = $('#lownewprice').attr('class');
676						var lowestUsed = $('#lowusedprice').attr('class');
677						
678						if(data.half['lowest']['new']['price'][0])
679						{
680							var priceNew = data.half['lowest']['new']['price'][0];
681							if(Number(priceNew) < parseInt(lowestNew))
682							{
683								$('.low-new-tr').html(data.half['lowest']['new'][0]);
684							}
685						}
686						if(data.half['lowest']['used']['price'][0])
687						{
688							var priceUsed = data.half['lowest']['used']['price'][0];
689							if(Number(priceUsed) < parseInt(lowestUsed))
690							{
691								$('.low-used-tr').html(data.half['lowest']['used'][0]);
692							}
693						}
694					}
695				}, 'json');
696				
697				
698				$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'item-lookup', title: title, isbn: isbn, binding: bindingType, ebaysearch: ebaySearch}, function(data)
699				{
700					if('invalid' == data)
701					{
702						return false;
703					}
704					else
705					{
706						if(data.ebay['used'][0])
707						{
708							$('.used-tr').append(data.ebay['used'][0]);
709							$('.new-tr').append(data.ebay['used'][0]);
710						}
711						
712						var lowestUsed = $('#lowusedprice').attr('class');
713						
714						if(data.ebay['lowest']['used']['price'][0])
715						{
716							var priceUsed = data.ebay['lowest']['used']['price'][0];
717							if(Number(priceUsed) < parseInt(lowestUsed))
718							{
719								$('.low-used-tr').html(data.ebay['lowest']['used'][0]);
720							}
721						}
722					}
723				}, 'json');
724				
725			}
726		});  
727	});
728	
729	
730	// ** handling clicks from results table from author click  **
731	
732	$('.result-wrapper').on('click', '.query-author', function(event)
733	{
734		var searchQuery = $(this).text();
735		var typeRequest = 'author';
736		
737		$('.load-image').show();
738		$.post(MyAjax.ajaxurl, {action: 'apisearch', route: 'custom-search', searchquery: searchQuery, typerequest: typeRequest}, function(data)  
739		{
740			$('.load-image').hide();
741			if('invalid' == data)
742			{
743				$('.result-wrapper').html('<div class="alert results-error"><button type="button " class="close" data-dismiss="alert">&times;</button><strong>We are sorry,</strong> your search did not return any results. Please modify the search title, author or ISBN.</div>');
744				$('.result-wrapper').fadeIn(1000);
745			}
746			else
747			{
748				$('.search-query').val(searchQuery);
749				$('.result-wrapper').html('');
750				$('.result-wrapper').append(data);
751				$('.result-wrapper').delay(500).fadeIn();
752				
753				$('.asin-image').each(function(){
754					var mediumImage = $(this).attr('rel');
755			        $(this)
756			        .parent()
757			        .zoom({url: mediumImage});
758			    });
759			}
760		});  
761		
762	});
763	
764});
765		

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.