PageSourceSearch

https://www.reichertspr.com/-/media/themes/ameteksxa/basesite/base…/scripts/component-pagination.js?thm=1

js reichertspr.com collected 2026-10-07 08:19:05 UTC 28,314 bytes, 695 lines download raw bytes

1$(document).ready(function () {
2	/*========================================================
3			Video Gallery Section
4	==========================================================*/
5	$(".video-gallery-section").on("click", ".pagination li a", function (event) {
6		event.preventDefault();
7	});
8
9	$('.navigation-title.field-title').parent('li').addClass('active');
10
11	let videoPrev = $("#video-release-list li#prev");
12	let videoNext = $("#video-release-list li#next");
13	let pageSize = $('#NoOfVideosPerPage').val();
14	let noOfPage = parseInt($('#noOfPage').val());
15	let product = $("#filter-product").children("option:selected").val();
16	let category = $("#filter-calegory").children("option:selected").val();
17	let facetTagName = $('#FacetTagRenderingParam').val();
18	$("#video-release-list li").eq(1).addClass("active");
19	$('#video-release-list li').eq(1).addClass("first");
20	$('#video-release-list li').eq(5).addClass("last");
21	var currentpages = "";
22	var totalPagenum = $("#video-release-list li.page-item").length - 2;
23
24	if (noOfPage == 1) {
25		$('#video-release-list li').eq(noOfPage).addClass("active");
26		videoPrev.addClass("disabled");
27		videoNext.addClass("disabled");
28	}
29
30	if (noOfPage > 1) {
31		videoPrev.addClass("disabled");
32	}
33
34	/*===================================================
35			Filter Product Dropdown Change
36	=====================================================*/
37	$("#filter-product").on("change", function () {
38		let product = $(this).children("option:selected").val();
39		let category = $("#filter-calegory").children("option:selected").val();
40		let first = parseInt($("#video-release-list li.first").text());
41		let last = parseInt($("#video-release-list li.last").text());
42		$.when(FilterResult(product, category)).done(function () {
43			if (noOfPage == 1) {
44				$('#video-release-list li').eq(noOfPage).addClass("active");
45				$("#video-release-list li#prev").addClass("disabled");
46				$("#video-release-list li#next").addClass("disabled");
47			}
48			else {
49				$('#video-release-list li').eq(1).addClass("active");
50				$('#video-release-list li').eq(first).addClass("first");
51				$('#video-release-list li').eq(last).addClass("last");
52			}
53			$('#loaderoverlay').hide();
54		});
55	});
56
57	$("#filter-calegory").on("change", function () {
58		let product = $("#filter-product").children("option:selected").val();
59		let category = $(this).children("option:selected").val();
60		let first = parseInt($("#video-release-list li.first").text());
61		let last = parseInt($("#video-release-list li.last").text());
62		$.when(FilterResult(product, category)).done(function () {
63			var noOfPage = $('#noOfPage').val();
64			if (noOfPage == 1) {
65				$('#video-release-list li').eq(noOfPage).addClass("active");
66				$("#video-release-list li#prev").addClass("disabled");
67				$("#video-release-list li#next").addClass("disabled");
68			}
69			else {
70				$('#video-release-list li').eq(1).addClass("active");
71				$('#video-release-list li').eq(first).addClass("first");
72				$('#video-release-list li').eq(last).addClass("last");
73			}
74			$('#loaderoverlay').hide();
75		});
76	});
77
78	/*========================================================
79			Product Search Input with auto Suggest
80	==========================================================*/
81	$(".clear-filter-btn").click(function () {
82		var product = "",
83			category = "";
84		$("#video-release-list li").removeClass("active");
85		$.when(FilterResult(product, category)).done(function () { //use this				
86			$('#video-release-list li').eq(1).addClass("active");
87			$('#loaderoverlay').hide();
88		});
89		$("#filter-product").val("");
90		$("#filter-calegory").val("");
91	});
92
93	function FilterResult(product, category) {
94		$('#loaderoverlay').show();
95		return $.ajax({
96			type: "POST",
97			url: "/api/sitecore/Product/GetVideosResult",
98			data: '{pageNumber: "' + 1 + '", noOfVideosPerPage: "' + pageSize + '", product: "' + product + '", category: "' + category + '" ,RenderFacetTagName: "' + facetTagName + '"}',
99			contentType: "application/json; charset=utf-8",
100			dataType: "html",
101			success: function (response) {
102				if (response != " ") {
103					$('.binddata').html(response);
104
105				}
106				else {
107					$('.binddata').html("<p>No Record Found</p>");
108				}
109			},
110			failure: function (response) {
111				// alert(response.responseText);
112			},
113			error: function (response) {
114				// alert(response.responseText);
115			},
116			complete: function () {
117				$('#loaderoverlay').hide();
118			}
119
120		});
121	};
122
123	$(".video-gallery-section").not("#prev,#next").on("click", "li", function () {
124		let currentpages = parseInt($(this).text());
125		let activepage = parseInt($("#video-release-list li.active").text());
126		let first = parseInt($("#video-release-list li.first").text());
127		let last = parseInt($("#video-release-list li.last").text());
128
129		$.when(videopagination(currentpages, pageSize, product, category, facetTagName)).done(function () { //use this				
130			$('#video-release-list li').eq(first).addClass("first");
131			$('#video-release-list li').eq(last).addClass("last");
132			$('#video-release-list li').eq(currentpages).addClass("active").css('display', 'inline-block');
133			for (var i = first; i < last + 1; i++) {
134				$("#video-release-list li").eq(i).css('display', 'inline-block');
135			}
136			$("#video-release-list li").eq(first).prevAll('li:not(#prev)').css('display', 'none');
137			$('#loaderoverlay').hide();
138			if (currentpages == noOfPage) {
139				$("#video-release-list li#next").addClass("disabled");
140			}
141			else if (currentpages == 1) {
142				$("#video-release-list li#prev").addClass("disabled");
143			}
144			else {
145				$("#video-release-list li#next").removeClass("disabled");
146			}
147		});
148	});
149
150	$(".video-gallery-section").on("click", "li#next", function () {
151		let first = parseInt($("#video-release-list li.first").text());
152		let last = parseInt($("#video-release-list li.last").text());
153		let currentpage = parseInt($("#video-release-list li.active").text());
154		let nextpage = parseInt($("#video-release-list li.active").next().text());
155		if (currentpage == noOfPage) {
156			return false
157		} else {
158			$.when(videopagination(nextpage, pageSize, product, category, facetTagName)).done(function () {
159
160				if (nextpage == noOfPage) {
161					$("#video-release-list li#next").addClass("disabled");
162				}
163				else {
164					$("#video-release-list li#next").removeClass("disabled");
165				}
166				$('#video-release-list li').eq(nextpage).addClass("active").css('display', 'inline-block');
167
168				if (last == currentpage) {
169					$('#video-release-list li').eq(first + 1).addClass("first");
170					$('#video-release-list li').eq(last + 1).addClass("last");
171					for (var i = first + 1; i < last + 1; i++) {
172						$("#video-release-list li").eq(i).css('display', 'inline-block');
173					}
174					$("#video-release-list li").eq(first + 1).prevAll('li:not(#prev)').css('display', 'none');
175				}
176				else {
177					for (var i = first; i < last + 1; i++) {
178						$("#video-release-list li").eq(i).css('display', 'inline-block');
179					}
180					$('#video-release-list li').eq(first).addClass("first").prevAll('li:not(#prev)').css('display', 'none');
181					$('#video-release-list li').eq(last).addClass("last");
182
183
184				}
185			});
186		}
187	});
188
189	$(".video-gallery-section").on("click", " li#prev", function () {
190		let first = parseInt($("#video-release-list li.first").text());
191		let last = parseInt($("#video-release-list li.last").text());
192		let currentpage = parseInt($("#video-release-list li.active").text());
193		let previouspage = parseInt($("#video-release-list li.active").prev().text());
194		if (currentpage == 1) {
195			return false
196		} else {
197			$.when(videopagination(previouspage, pageSize, product, category, facetTagName)).done(function () {
198				if (previouspage == 1) {
199					$("#video-release-list li#prev").addClass("disabled");
200				}
201				else {
202					$("#video-release-list li#prev").removeClass("disabled");
203				}
204				$('#video-release-list li').eq(previouspage).addClass("active").css('display', 'inline-block');
205
206				if (first == currentpage) {
207					$('#video-release-list li').eq(first - 1).addClass("first");
208					$('#video-release-list li').eq(last - 1).addClass("last");
209					for (var i = first - 1; i < last; i++) {
210						$("#video-release-list li").eq(i).css('display', 'inline-block');
211					}
212					$("#video-release-list li").eq(first - 1).prevAll('li:not(#prev)').css('display', 'none');
213
214				}
215				else {
216					for (var i = first; i < last + 1; i++) {
217						$("#video-release-list li").eq(i).css('display', 'inline-block');
218					}
219					$('#video-release-list li').eq(first).addClass("first").prevAll('li:not(#prev)').css('display', 'none');;
220					$('#video-release-list li').eq(last).addClass("last");
221
222
223				}
224
225			});
226
227		}
228	});
229
230	/*===================================================
231			VIDEO Pagination API CALL
232	=====================================================*/	
233	function videopagination(currentpages, pageSize, product, category, facetTagName) {
234		$('#loaderoverlay').show();
235
236		return $.ajax({
237			url: "/api/sitecore/Product/GetVideosResult",
238			type: "POST",
239			data: '{pageNumber: "' + currentpages + '" ,noOfVideosPerPage: "' + pageSize + '" ,product: "' + product + '", category: "' + category + '" ,RenderFacetTagName: "' + facetTagName + '"}',
240			contentType: "application/json; charset=utf-8",
241			success: function (data) {
242				$(".binddata").html(data);
243			},
244			error: function (data) {
245				console.log("Error occurred : " + data);
246			},
247			complete: function () {
248				$('#loaderoverlay').hide();
249			}
250		});
251	};
252
253	/*===================================================
254			Pagination Component
255	=====================================================*/	
256	$(".pagination-component").each(function(){
257		
258		$(this).find("li").eq(1).addClass("active first");
259		$(this).find("li").eq($(this).data("pagination-lenght")).addClass("last");
260		let checkcontent = $(this).find("li a");
261		$(checkcontent).map(function(){
262			let checkcontentText = $(checkcontent).attr('href')
263			checkcontentText.trim()
264				if(checkcontentText =="#"){
265					$(checkcontent).attr("href",'javascript:void(0)')
266				}
267		})
268		
269		if ($(this).data("total-pages") > 1) {
270			$(this).find("li#next").removeClass("disabled");
271		}
272	});
273
274	/*===================================================
275			Pagination Numbers Click
276	=====================================================*/
277	$(".pagination li").not("#prev, #next, li.disabled").click(function () {
278		if(!$(this).hasClass('active')){
279			let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
280		let currentpage = parseInt($(this).data('pagenumber'));
281		let currentactive = parseInt($(this).siblings("li.active").data('pagenumber'));
282		let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
283		let output = $(this).parents(".pagination-component").data("output");
284		let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
285		let getZygoPaging = $(this).parent().hasClass("zygo-pagination");
286		let id = $(this).parent().attr('id');
287		let next = $("#"+ id + " li#next");
288		let prev = $("#"+ id + " li#prev");
289
290		// to be used for pagination where zygo-pagination class used 
291		let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
292		let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
293
294		// this to be used when there is only pagination class with no zygo-pagination with it
295		let keyword = $('.globalsearchinput').val();
296		let totalRecords = parseInt($(this).parents(".pagination-component").data("total-records"));
297		var active = $(".tab-pane.active").attr("id");		
298		let divClass = $('#' + active).find('.search-item-wrapper').attr('class');
299		
300		
301		
302		if(currentpage == currentactive){
303			return false
304		} else {
305			// conditional API CALL
306			switch (getZygoPaging){
307				case true:
308					paginationresult(AjaxUrl, currentpage, pageSize, output);
309				break;
310				case false:
311					searchpagination(AjaxUrl, keyword, pageSize, currentpage, output, active, divClass);
312				break;
313			}; 
314
315			$(this).addClass("active");
316			$(this).siblings("li").removeClass("active");
317
318			if(currentpage == 1) {
319				$(this).parents(".pagination-component").find(prev).addClass("disabled");
320				if(totalpages > 1) {
321					$(this).parents(".pagination-component").find(next).removeClass("disabled");
322				}
323			} else if(currentpage == totalpages){
324				$(this).parents(".pagination-component").find(prev).removeClass("disabled");
325				$(this).parents(".pagination-component").find(next).addClass("disabled");
326			} else{
327				$(this).siblings().removeClass("disabled");
328			}
329
330			if (!getZygoPaging) {
331				var msg = "<p><strong>Page <span class='higilight_text'>" + currentpage + "</span> Showing <span class='higilight_text'>" + pageSize + 
332				"</span> Results out of <span class='higilight_text'>" + totalRecords + "</span><strong></p>"
333				$("#" + active).find(".result-count").html(msg);
334			}
335		}
336		}
337		
338				
339	});
340
341	/*===================================================
342			Pagination Next Click
343	=====================================================*/
344	$('.pagination li#next').click(function () {
345		if(!$(this).hasClass('disabled')){
346		let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
347		let nextpage = parseInt($(this).siblings("li.active").next('li').data("pagenumber"));
348		let currentpage = parseInt($(this).siblings("li.active").data('pagenumber'));
349		let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
350		let output = $(this).parents(".pagination-component").data("output");
351		let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
352		let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
353		let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
354		let getZygoPaging = $(this).parent().hasClass("zygo-pagination");
355		let id = $(this).parent().attr('id');
356		let next = $("#"+ id + " li#next");
357		let prev = $("#"+ id + " li#prev");
358
359		// this to be used when there is only pagination class with no zygo-pagination with it
360		let keyword = $('.globalsearchinput').val();
361		let totalRecords = parseInt($(this).parents(".pagination-component").data("total-records"));
362		var active = $(".tab-pane.active").attr("id");
363		let divClass = $('#' + active).find('.search-item-wrapper').attr('class');
364
365		if(currentpage == totalpages){	
366			return false
367		} else {
368			switch(getZygoPaging){
369				case true:
370					paginationresult(AjaxUrl, nextpage, pageSize, output);
371				break;
372
373				case false:
374					searchpagination(AjaxUrl, keyword, pageSize, nextpage, output, active, divClass);
375				break;
376			};			
377
378			if(nextpage == totalpages){
379				$(this).addClass("disabled");
380			}
381
382			if(nextpage > 1){
383				$(this).siblings(prev).removeClass("disabled");
384			}
385			
386			$(this).siblings('li').eq(nextpage).addClass('active');
387			$(this).siblings('li').eq(currentpage).removeClass('active');
388
389			if(nextpage > lastpage){
390				$(this).siblings('li').eq(nextpage).addClass('active last').css('display', 'inline-block');
391				$(this).siblings('li').eq(currentpage ).removeClass('last');
392				$(this).siblings('li').eq(firstpages).removeClass('first').css('display', 'none');
393				$(this).siblings('li').eq(firstpages + 1 ).addClass('first').prevAll('li').not(prev).css('display', 'none');
394			}
395		}
396
397		if (!getZygoPaging) {
398			var showing = 0
399			if(nextpage == totalpages) {
400				if(pageSize * totalpages != totalRecords) {
401					showing = (pageSize * totalpages - totalRecords)
402				} else {
403					showing = pageSize
404				}
405			}
406			
407			var msg = "<p><strong>Page <span class='higilight_text'>" + nextpage +
408			"</span> Showing <span class='higilight_text'>" + showing + 
409			"</span> Results out of <span class='higilight_text'>" + totalRecords + "</span><strong></p>"
410			$("#" + active).find(".result-count").html(msg);
411		}
412		}
413	});
414
415	/*===================================================
416			Pagination Previous Click
417	=====================================================*/
418	$('.pagination li#prev').click(function () {
419		if(!$(this).hasClass('disabled')){
420		let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
421		let previous = parseInt($(this).siblings("li.active").prev('li').data("pagenumber"));
422		let currentpage = parseInt($(this).siblings("li.active").data('pagenumber'));
423		let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
424		let output = $(this).parents(".pagination-component").data("output");
425		let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
426		let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
427		let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
428		let getZygoPaging = $(this).parent().hasClass("zygo-pagination");
429		let id = $(this).parent().attr('id');
430		let next = $("#"+ id + " li#next");
431		let prev = $("#"+ id + " li#prev");
432
433		// this to be used when there is only pagination class with no zygo-pagination with it
434		let keyword = $('.globalsearchinput').val();
435		var active = $(".tab-pane.active").attr("id");
436		let totalRecords = parseInt($(this).parents(".pagination-component").data("total-records"));
437		let divClass = $('#' + active).find('.search-item-wrapper').attr('class');
438		if (!getZygoPaging) {
439		}
440
441		if(currentpage == 1){								
442			return false
443		} else {
444			if(previous == 1){
445				$(this).parents(".pagination-component").find(prev).addClass("disabled");
446				$(this).parents(".pagination-component").find(next).removeClass("disabled");
447			} else if(previous != totalpages) {
448				$(this).parents(".pagination-component").find(next).removeClass("disabled");
449			} else {
450				$(this).parents(".pagination-component").find(prev).removeClass("disabled");
451			}
452
453			switch(getZygoPaging){
454				case true:
455					paginationresult(AjaxUrl, previous, pageSize, output);
456				break;
457				case false:
458					searchpagination(AjaxUrl, keyword, pageSize, previous, output, active, divClass);
459				break;
460			};
461			
462			if(previous >= firstpages){
463				$(this).parents(".pagination-component").find('li').eq(previous).addClass('active');
464				$(this).parents(".pagination-component").find('li').eq(previous).next().removeClass('active');							
465			} else if(currentpage == firstpages ) {
466				$(this).parents(".pagination-component").find('li').eq(previous).addClass('active first').css('display', 'inline-block');
467				$(this).parents(".pagination-component").find('li').eq(currentpage ).removeClass('first active');							
468				$(this).parents(".pagination-component").find('li').eq(lastpage - 1 ).addClass('last').nextAll('li').not(next).css('display', 'none');
469				$(this).parents(".pagination-component").find('li').eq(lastpage + 1).removeClass('last').css('display', 'none');
470			}
471		}
472		
473		if (!getZygoPaging) {
474			var msg = "<p><strong>Page <span class='higilight_text'>" + previous + "</span>
474 Showing <span class='higilight_text'>" + pageSize + 
475			"</span> Results out of <span class='higilight_text'>" + totalRecords + "</span><strong></p>"
476			$("#" + active).find(".result-count").html(msg);
477		}
478		}
479	});
480
481	/*===================================================
482			Pagination API CALL
483	=====================================================*/		
484	function searchpagination(AjaxUrl, keyword, totalPges, pageno, output, active, divClass) {
485		$('#loaderoverlay').show();
486
487		return $.ajax({
488			url: AjaxUrl, 
489			type: "POST",
490			data: '{keywords: "' + keyword + '" ,noOfResultsPerPage: "' + totalPges + '" ,pageno: "' + pageno + '"}',
491			contentType: "application/json; charset=utf-8",
492			success: function (data) {
493				$("#" + output).html(data);
494			},
495			error: function (data) {
496				console.log("Error occurred : " + data);
497			},
498			complete: function () {
499				if(divClass != undefined && divClass.indexOf('grid') > -1) {
500					$('#' + active).find('.search-item-wrapper').addClass('grid')
501				}
502				$('#loaderoverlay').hide();
503				
504				checkTarget();
505			}
506		});
507	};
508
509	function paginationresult(AjaxUrl, pagenumber, pageSize, output){
510		$('#loaderoverlay').show();
511
512		var postdata = {
513			"binddataSoftwareList" : "{pageNumber:'"+ pagenumber +"',noOfSoftwaresPerPage:'"+ pageSize + "'}",
514			"binddataSoftwareList1" : "{pageNumber:'"+ pagenumber +"',noOfSoftwaresPerPage:'"+ pageSize + "'}"
515		};
516
517		postdata = postdata[output];
518
519		return $.ajax({
520			url: AjaxUrl,
521			type: "POST",						
522			data: postdata,
523			contentType: "application/json; charset=utf-8",
524			success: function(data){
525				$("#" + output).html(data);                   
526			},
527			error: function(data){
528				console.log("Error occurred : " + data);
529			},
530			complete: function(){
531				$('#loaderoverlay').hide();
532				checkTarget()
533			}
534		});
535	};
536
537function checkTarget(){
538	if($('.search-result-tabs').length == true){
539		 $('html, body').animate({
540			scrollTop: $('.search-result-tabs').offset().top
541		}, 100);
542	}
543}
544
545
546	/*===================================================
547		Pagination Numbers Previous and Next
548	=====================================================*/
549	// let zygoPrev = $(".zygo-pagination li#prev");
550	// let zygoNext = $(".zygo-pagination li#next");
551
552	/*===================================================
553			Pagination Numbers
554	=====================================================*/
555	// $(".zygo-pagination li").not("#prev, #next, li.disabled").click(function () {
556	// 	let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
557	// 	let currentpage = parseInt($(this).data('pagenumber'));
558	// 	let currentactive = parseInt($(this).siblings("li.active").data('pagenumber'));
559	// 	let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
560	// 	let output = $(this).parents(".pagination-component").data("output");
561	// 	let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
562
563	// 	let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
564	// 	let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
565
566	// 	if(currentpage == currentactive){
567	// 		return false
568	// 	} else {
569	// 		paginationresult(AjaxUrl, currentpage, pageSize, output);
570
571	// 		$(this).addClass("active");
572	// 		$(this).siblings("li").removeClass("active");
573
574	// 		if(currentpage == 1) {
575	// 			$(this).parents(".pagination-component").find(zygoPrev).addClass("disabled");
576	// 			if(totalpages > 1) {
577	// 				$(this).parents(".pagination-component").find(zygoNext).removeClass("disabled");
578	// 			}
579	// 		} else if(currentpage == totalpages){
580	// 			$(this).parents(".pagination-component").find(zygoPrev).removeClass("disabled");
581	// 			$(this).parents(".pagination-component").find(zygoNext).addClass("disabled");
582	// 		} else{
583	// 			$(this).siblings().removeClass("disabled");
584	// 		}
585	// 	}
586	// });
587
588	/*===================================================
589			Pagination Next
590	=====================================================*/
591	// zygoNext.click(function () {
592	// 	let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
593	// 	let nextpage = parseInt($(this).siblings("li.active").next('li').data("pagenumber"));
594	// 	let currentpage = parseInt($(this).siblings("li.active").data('pagenumber'));
595	// 	let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
596	// 	let output = $(this).parents(".pagination-component").data("output");
597	// 	let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
598	// 	let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
599	// 	let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
600		
601	// 	if(currentpage == totalpages) {
602	// 		return false
603	// 	} else {
604	// 		paginationresult(AjaxUrl, nextpage, pageSize, output);
605
606	// 		if(nextpage == totalpages){
607	// 			$(this).addClass("disabled");
608	// 		}
609
610	// 		if(nextpage > 1){
611	// 			$(this).siblings(zygoPrev).removeClass("disabled");
612	// 		}
613			
614	// 		$(this).siblings('li').eq(nextpage).addClass('active');
615	// 		$(this).siblings('li').eq(currentpage).removeClass('active');
616
617	// 		if(nextpage > lastpage){
618	// 			$(this).siblings('li').eq(nextpage).addClass('active last').css('display', 'inline-block');
619	// 			$(this).siblings('li').eq(currentpage ).removeClass('last');
620	// 			$(this).siblings('li').eq(firstpages).removeClass('first').css('display', 'none');
621	// 			$(this).siblings('li').eq(firstpages + 1 ).addClass('first').prevAll('li').not(zygoPrev).css('display', 'none');
622	// 		}
623	// 	}
624	// });
625
626	/*===================================================
627			Pagination Previous
628	=====================================================*/
629	// zygoPrev.click(function () {
630	// 	let AjaxUrl = $(this).parents(".pagination-component").data("pagination-result-url");
631	// 	let previous = parseInt($(this).siblings("li.active").prev('li').data("pagenumber"));
632	// 	let currentpage = parseInt($(this).siblings("li.active").data('pagenumber'));
633	// 	let pageSize = parseInt($(this).parents(".pagination-component").data("number-per-pages"));
634	// 	let output = $(this).parents(".pagination-component").data("output");
635	// 	let firstpages  = parseInt($(this).siblings("li.first").data('pagenumber'));
636	// 	let lastpage = parseInt($(this).siblings("li.last").data('pagenumber'));
637	// 	let totalpages = parseInt($(this).parents(".pagination-component").data("total-pages"));
638
639	// 	if(currentpage == 1) {
640	// 		return false
641	// 	} else {
642	// 		if(previous == 1){
643	// 			$(this).parents(".pagination-component").find(zygoPrev).addClass("disabled");
644	// 			$(this).parents(".pagination-component").find(zygoNext).removeClass("disabled");
645	// 		} else if(previous != totalpages) {
646	// 			$(this).parents(".pagination-component").find(zygoNext).removeClass("disabled");
647	// 		} else {
648	// 			$(this).parents(".pagination-component").find(zygoPrev).removeClass("disabled");
649	// 		}
650
651	// 		paginationresult(AjaxUrl, previous, pageSize, output);
652			
653	// 		if(previous  >= firstpages){
654	// 			$(this).parents(".pagination-component").find('li').eq(previous).addClass('active');
655	// 			$(this).parents(".pagination-component").find('li').eq(previous).next().removeClass('active');							
656	// 		} else if(currentpage == firstpages ) {
657	// 			$(this).parents(".pagination-component").find('li').eq(previous).addClass('active first').css('display', 'inline-block');
658	// 			$(this).parents(".pagination-component").find('li').eq(currentpage ).removeClass('first active');							
659	// 			$(this).parents(".pagination-component").find('li').eq(lastpage - 1 ).addClass('last').nextAll('li').not(zygoNext).css('display', 'none');
660	// 			$(this).parents(".pagination-component").find('li').eq(lastpage + 1).removeClass('last').css('display', 'none');
661	// 		}			
662	// 	}
663	// });
664	
665	/*===================================================
666			Pagination Ajax
667	=====================================================*/
668	// function paginationresult(AjaxUrl, pagenumber, pageSize, output){
669	// 	$('#loaderoverlay').show();
670
671	// 	var postdata = {
672	// 		"binddataSoftwareList" : "{pageNumber:'"+ pagenumber +"',noOfSoftwaresPerPage:'"+ pageSize + "'}",
673	// 		"binddataSoftwareList1" : "{pageNumber:'"+ pagenumber +"',noOfSoftwaresPerPage:'"+ pageSize + "'}"
674	// 	};
675
676	// 	postdata = postdata[output];
677
678	// 	return $.ajax({
679	// 		url: AjaxUrl,
680	// 		type: "POST",						
681	// 		data: postdata,
682	// 		contentType: "application/json; charset=utf-8",
683	// 		success: function(data){
684	// 			$("#" + output).html(data);                   
685	// 		},
686	// 		error: function(data){
687	// 			console.log("Error occurred : " + data);
688	// 		},
689	// 		complete: function(){
690	// 			$('#loaderoverlay').hide();
691	// 		}
692	// 	});
693	// };
694}); 
695/*End of Document Ready*/

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.