PageSourceSearch

https://www.ra2ed.com/assets/js/custom-app.js?73

js ra2ed.com collected 2026-10-02 11:05:43 UTC 27,613 bytes, 857 lines download raw bytes

1jQuery(document).ready(function ($) {
2    "use strict";
3    /*====== PRELOADER ======*/
4    //jQuery(window).load(function () {
5    //    // will first fade out the loading animation
6    //    jQuery(".loader").fadeOut();
7    //    // will fade out the whole DIV that covers the website.
8    //    jQuery(".preloader").delay(1000).fadeOut("slow");
9    //});	
10    /*====== Search on enter button ======*/
11	$("#searchBox2").on('keydown', function(e){
12		if(e.which === 13){
13		  e.preventDefault();
14		  goSearch2();
15	   }
16	 });	
17    /*====== STICKY HEADER ======*/
18    $('.sticky-header').each(function () {
19        var window_scrolltop;
20        var clone_navigation = $(".main-menu").clone();
21        if ($("#wpadminbar").length > 0) {
22            $("body").addClass("wpadminbar-open");
23        }
24        $(".sticky-header-content .container").append(clone_navigation);
25        $(window).scroll(function () {
26            window_scrolltop = $(this).scrollTop();
27            if (window_scrolltop > 900) {
28                $(".sticky-header").addClass("open");
29                $("header").addClass("stick-whole-header-close");
30            }
31            else {
32                $(".sticky-header").removeClass("open");
33                $("header").addClass("stick-whole-header");
34                $("header").removeClass("stick-whole-header-close");
35            }
36            $(".summary.entry-summary").addClass("post-title sticky-title");
37            if (window_scrolltop > 500) {
38                $('.sticky-progressbar').addClass("active");
39                $('.reading-title-bar').find('h6.page-title').text($('.post-title.sticky-title h1').text());
40            }
41            else {
42                $('.sticky-progressbar').removeClass("active");
43                $('.reading-title-bar').find('h6.page-title').text('');
44            }
45            var scrollAmount = $(window).scrollTop();
46            var documentHeight = $(document).height();
47            var windowHeight = $(window).height();
48            var scrollPercent = (scrollAmount / (documentHeight - windowHeight)) * 100;
49            var roundScroll = Math.round(scrollPercent);
50            $(".status-bar").css("width", (scrollPercent + '%'));
51        });
52    });
53    /*====== MEGA MENU ======*/
54    $('header .main-menu').each(function () {
55        function mousein_triger() {
56            var fullsize = $('body').width();
57            if (fullsize > 700) {
58                $("header .main-menu .menu-item").removeClass("active");
59                $(this).addClass("active");
60                $(this).find('.mega-menu-content').css('visibility', 'hidden').show();
61                $(this).find('.mega-menu-content').height($(this).find('.mega-category').height());
62                $(this).find('.mega-menu-content').css('visibility', 'visible').hide();
63                $(this).children('.mega-menu-content, .child-menu').fadeIn(150);
64            }
65        }
66
67        function mouseout_triger() {
68            $(this).children('.mega-menu-content, .child-menu').fadeOut(150);
69        }
70        var settings = {
71            sensitivity: 4
72            , interval: 30
73            , timeout: 300
74            , over: mousein_triger
75            , out: mouseout_triger
76        };
77        $('.main-menu .menu-item').not('.sub-menu .menu-item').hoverIntent(settings);
78        var settings1 = {
79            sensitivity: 4
80            , interval: 0
81            , timeout: 300
82            , over: mousein_triger
83            , out: mouseout_triger
84        };
85        $('.sub-menu .menu-item').hoverIntent(settings1);
86    });
87    /*====== SEARCH HOLDER ======*/
88    $('.sericon').each(function () {
89/*
90        $(".sericon > a").on('click', function () {
91            $(".search-form-content").fadeIn("fast");
92        });
93*/
94        $(".search-form-content .close-search").on('click', function () {
95            $(".search-form-content").fadeOut("fast");
96        })
97        $(document).keyup(function (e) {
98            if (e.keyCode == 27) {
99                $('.search-form-content .close-search').click();
100            } // esc
101        });
102    });
103	$(".sidenavigation-search").on('click', function (e) {
104		$(".fa-close").trigger( "click" );
105		$(".search-form-content").fadeIn("fast");
106	});
107    /*====== SIDEBAR ======*/
108    $('.sidebar-navigation').each(function () {
109        $("body").on("click", ".navicon a", function (e) {
110            $("html").addClass("sidebar-open");
111            $(".sidebar-navigation, .blog-inwrap").addClass("open");
112            e.stopPropagation();
113            e.preventDefault();
114            document.getElementById("sidebarMenu").click();
115            console.log('clicked');
116        });
117        $("body").on("click", ".close-btn", function (e) {
118            $("html").removeClass("sidebar-open");
119            $(".sidebar-navigation, .blog-inwrap").removeClass("open");
120            e.preventDefault();
121        });
122        $(".sidebar-navigation ul li.menu-item-has-children a").click(function () {
123            var link = $(this);
124            var closest_ul = link.closest("ul");
125            var parallel_active_links = closest_ul.find(".active")
126            var closest_li = link.closest("li");
127            var link_status = closest_li.hasClass("active");
128            var count = 0;
129            closest_ul.find("ul").slideUp(function () {
130                if (++count == closest_ul.find("ul").length) parallel_active_links.removeClass("active");
131            });
132            if (!link_status) {
133                closest_li.children("ul").slideDown();
134                closest_li.addClass("active");
135            }
136        });
137        $('.scrollbar-macosx').scrollbar();
138    });
139	
140    /*======Below must apply to mobile & doesn't interfere with desktop or tablet: moving MPU after 1st paragraph and MPU1 should after 2nd paragraph. 1 tricky paragraph was this: http://bit.ly/2ftTkbs======*/
141    //$( window ).load(function() {
142    if ($(".js-mobile-mpu-move").length > 0) {
143        if (window.matchMedia('(max-width:990px)').matches) {
144			
145			
146			
147			
148			
149			
150			
151			
152			var arabic = /[\u0600-\u06FF]/;
153			var paragraphNbr = 0;
154			var placedMPU = false;
155			var placedMPU1 = false;
156			var nbrOfLettersCurrentlyAfterFirstParagraph = 0;
157			var nbrOfLettersToBeAfterFirstParagraph = 120;
158			$('.js-mobile-mpu-move').find('p,div').each(function(){
159				
160				if(!placedMPU && $("#mediaplayer").length > 0)
161				{
162					$("#MPU").insertAfter($(".videoContainer"));
163				}
164				else
165				{
166					if($(this).children('p,div').length>0)//checking if text has sub elements; e.g. <div><p></p><div></div></div>
167					{
168						$(this).children('p,div').each(function(){
169
170									if(arabic.test($(this).text()))
171									{
172
173										if(!placedMPU && $("#mediaplayer").length == 0)//mentioned mediaplayer, in order to not place MPU after 1st paragraph but to keep it default (under video)
174										{
175											if ($(this).parent().children('p,div').length > 1)
176											{
177												if(placedMPU == false)//MPU
178												{
179													$("#MPU").insertAfter($(this));
180													placedMPU = true;
181												}
182												////else if(paragraphNbr>0 && placedMPU1 == false)//MPU1
183												////{
184												////	nbrOfLettersCurrentlyAfterFirstParagraph = nbrOfLettersCurrentlyAfterFirstParagraph + $(this).text().length;
185												////	if (nbrOfLettersCurrentlyAfterFirstParagraph >= nbrOfLettersToBeAfterFirstParagraph)
186												////	{							
187												////		$("#MPU1").insertAfter($(this));
188												////		placedMPU1 = true;
189												////	}
190												////}
191											}
192											else if ($(this).text().length > nbrOfLettersToBeAfterFirstParagraph  && $(this).find($("br")).length >= 1)//if article's new lines are <br> & not <p>   
193											{
194												$("#MPU").insertAfter($(this).find($("br:eq(2)")));
195												if ($(".js-mobile-mpu-move").find("#MPU").length==0)
196												{
197													$("#MPU").insertAfter($(this).find($("br:eq(3)")));
198													////$("#MPU1").insertAfter($(this).find($("br:eq(2)")));
199													placedMPU = true;
200													////placedMPU1 = true;
201												}else{
202													////$("#MPU1").insertAfter($(this).find($("br:eq(1)")));
203													placedMPU = true;
204													////placedMPU1 = true;
205												}
206											}
207										}
208									}
209
210									paragraphNbr++;
211
212
213
214						});
215					}else{
216						//$(this).each(function(){
217						$('.js-mobile-mpu-move').find('p,div').each(function(){
218
219
220									if(arabic.test($(this).text()))
221									{
222
223
224										if(!placedMPU && $("#mediaplayer").length == 0)//mentioned mediaplayer, in order to not place MPU after 1st paragraph but to keep it default (under video)
225										{
226											if ($(this).parent().children('p,div').length > 1)
227											{
228												if(placedMPU == false)//MPU
229												{
230													$("#MPU").insertAfter($(this));
231													placedMPU = true;
232												}
233												////else if(paragraphNbr>0 && placedMPU1 == false)//MPU1
234												////{
235												////	nbrOfLettersCurrentlyAfterFirstParagraph = nbrOfLettersCurrentlyAfterFirstParagraph + $(this).text().length;
236												////	if (nbrOfLettersCurrentlyAfterFirstParagraph >= nbrOfLettersToBeAfterFirstParagraph)
237												////	{							
238												////		$("#MPU1").insertAfter($(this));
239												////		placedMPU1 = true;
240												////	}
241												////}
242											}
243											else if ($(this).text().length > nbrOfLettersToBeAfterFirstParagraph  && $(this).find($("br")).length >= 1)//if article's new lines are <br> & not <p>       
244											{
245												$("#MPU").insertAfter($(this).find($("br:eq(1)")));
246												if ($(".js-mobile-mpu-move").find("#MPU").length==0)
247												{
248													$("#MPU").insertAfter($(this).find($("br:eq(2)")));
249													////$("#MPU1").insertAfter($(this).find($("br:eq(2)")));
250													placedMPU = true;
251													////placedMPU1 = true;
252												}else{
253													////$("#MPU1").insertAfter($(this).find($("br:eq(1)")));
254													placedMPU = true;
255													////placedMPU1 = true;
256												}
257											}
258										}
259										else if(!placedMPU && $("#mediaplayer").length == 1)
260										{
261											if ($(this).parent().children('p,div').length > 1)
262											{
263												if(placedMPU == false)//MPU
264												{
265													$("#MPU").insertAfter($(this));
266													placedMPU = true;
267												}
268												////else if(paragraphNbr>0 && placedMPU1 == false)//MPU1
269												////{
270												////	nbrOfLettersCurrentlyAfterFirstParagraph = nbrOfLettersCurrentlyAfterFirstParagraph + $(this).text().length;
271												////	if (nbrOfLettersCurrentlyAfterFirstParagraph >= nbrOfLettersToBeAfterFirstParagraph)
272												////	{							
273												////		$("#MPU1").insertAfter($(this));
274												////		placedMPU1 = true;
275												////	}
276												////}
277											}
278											else if ($(this).text().length > nbrOfLettersToBeAfterFirstParagraph  && $(this).find($("br")).length >= 1)//if article's new lines are <br> & not <p>       
279											{
280												$("#MPU").insertAfter($(this).find($("br:eq(0)")));
281												if ($(".js-mobile-mpu-move").find("#MPU").length==0)
282												{
283													$("#MPU").insertAfter($(this).find($("br:eq(2)")));
284													////$("#MPU1").insertAfter($(this).find($("br:eq(2)")));
285													placedMPU = true;
286													////placedMPU1 = true;
287												}else{
288													////$("#MPU1").insertAfter($(this).find($("br:eq(1)")));
289													placedMPU = true;
290													////placedMPU1 = true;
291												}
292											}
293										}
294									}
295									paragraphNbr++;
296
297
298
299						});
300					}
301					
302				}
303					
304			});
305
306
307			///////////////////////////////////////////////////////////////////////////////////////////////if MPUs not yet moved for some reason; such as if 1 paragarph or 2nd paragraph's too short. e.g. post ID 76746
308			/////////////////////////////////////////////////////////////////////////////////////////////if ($(".js-mobile-mpu-move").find("#MPU").length==0)
309			/////////////////////////////////////////////////////////////////////////////////////////////{
310			/////////////////////////////////////////////////////////////////////////////////////////////	$("#MPU").insertBefore(".js-mobile-mpu-move");
311			/////////////////////////////////////////////////////////////////////////////////////////////}
312			////if ($(".js-mobile-mpu-move").find("#MPU1").length==0)
313			////{
314			////	$("#MPU1").insertAfter(".js-mobile-mpu-move");
315			////}
316			$("#MPU").css("marginTop","30px");
317			$("#MPU").css("marginBottom","30px");
318			
319			
320			
321			
322			
323/*no; very old
324            if ($(".js-mobile-mpu-move p:eq(0) br:eq(1)").length > 0)//if article's new lines are <br> & not <p>
325            {
326                $("#MPU").insertAfter(".js-mobile-mpu-move p:eq(0) br:eq(1)");
327                $("#MPU1").insertAfter(".js-mobile-mpu-move p:eq(0) br:eq(2)");
328            }
329            else
330            {
331                //$("#MPU").insertAfter(".js-mobile-mpu-move p:eq(0)");
332				var arabic = /[\u0600-\u06FF]/;
333				if(arabic.test($(".js-mobile-mpu-move p:eq(0)").text()))
334				{
335					$("#MPU").insertAfter(".js-mobile-mpu-move p:eq(0)");
336					$("#MPU1").insertAfter(".js-mobile-mpu-move p:eq(1)");
337				}else{
338					$("#MPU").insertAfter(".js-mobile-mpu-move p:not(:has(img)):eq(0)");//moving MPU after 1st available paragraph not having image
339					$("#MPU1").insertAfter(".js-mobile-mpu-move p:not(:has(img)):eq(1)");//moving MPU1 after 2nd paragraph not having image
340				}
341            }
342			$("#MPU").css("marginTop","30px");
343			$("#MPU").css("marginBottom","30px");
344			
345			if ($(".js-mobile-mpu-move").find("#MPU1").length==0)//if mpu1 not yet moved to inside text for some reason such as at this post 55481
346				$("#MPU1").insertAfter(".js-mobile-mpu-move p:eq(0)");
347*/
348				
349				
350				
351				
352				
353				
354        }
355    }
356    //});
357	
358    /*======Closing leaderboard at mobile at mouse-click======*/
359    $('.leaderboard.mobile a.closeLeaderboard').click(function () {
360        //$('.leaderboard.mobile').transition({ y: '100px' }, 500, '', function () {
361            $('.leaderboard.mobile').attr('style', 'display: none !important');
362        //});
363    });
364    /*====== post slider business AREA ======*/
365	if ($(".slider-blog-posts .hague-ajax-content-articles").length > 0) {
366		$(".slider-blog-posts .hague-ajax-content-articles").slick({
367			slidesToShow: 1
368				, slidesToScroll: 1
369				, rtl:true
370					, autoplay: true
371							, autoplaySpeed: 3500
372				, asNavFor: '.featured-slider-for'
373				, dots: true
374
375				, centerMode: false
376				, arrows: false
377				, focusOnSelect: true
378        });
379	}
380
381
382    /*======vertical news usercontrol======*/
383	//$('.latestnews-uc #featured ul').slick({
384	//    slidesToShow: 4
385    //, slidesToScroll: 1
386    //, autoplay: true
387    //, rtl: true
388    //, autoplaySpeed: 5500
389    //, vertical:true
390    //, prevArrow: $('.scrollDivUp')
391    //, nextArrow: $('.scrollDivDown')
392    //, responsive: [
393    //    {
394    //        breakpoint: 767
395    //        , settings: {
396    //            slidesToShow: 3
397    //            , slidesToScroll: 1
398    //        }
399    //    }
400    //, {
401    //    breakpoint: 480
402    //        , settings: {
403    //            slidesToShow: 3
404    //            , slidesToScroll: 1
405    //        }
406    //}
407    //]
408	//});
409    /*======end vertical news uc=====*/
410
411    /*====== FEATURED AREA ======*/
412    if ($('.featured-style-1 .featured-slider-for').length > 0) {
413        $('.featured-style-1 .featured-slider-for').slick({
414            slidesToShow: 1
415            , slidesToScroll: 1
416            , arrows: false
417            , rtl:true
418            , fade: true
419            , asNavFor: '.featured-slider-nav'
420            , responsive: [
421                {
422                    breakpoint: 991
423                    , settings: {
424                        fade: false
425                        , autoplay: true
426                        , autoplaySpeed: 3500
427                    , }
428	    }
429	  ]
430        });
431    }
432    if ($('.featured-style-1 .featured-slider-nav').length > 0) {
433        $('.featured-style-1 .featured-slider-nav').slick({
434            slidesToShow: 4
435            , slidesToScroll: 1
436            , rtl:true
437            , asNavFor: '.featured-slider-for'
438            , dots: false
439            , centerMode: false
440            , arrows: false
441            , focusOnSelect: true
442        , });
443    }
444	if ($('.featured-style-2 .featured-slider').length > 0) {
445		$('.featured-style-2 .featured-slider').slick({
446			dots: true
447			, arrows: true
448			, infinite: true
449			, rtl:true
450			, speed: 1000
451			, autoplay: true
452			, autoplaySpeed: 3500
453			, slidesToShow: 3
454			, slidesToScroll: 1
455			, responsive: [
456				{
457					breakpoint: 991
458					, settings: {
459						slidesToShow: 2
460						, slidesToScroll: 1
461						, infinite: true
462						, dots: true
463					}
464			}
465				, {
466					breakpoint: 767
467					, settings: {
468						slidesToShow: 2
469						, slidesToScroll: 1
470					}
471			}
472				, {
473					breakpoint: 480
474					, settings: {
475						slidesToShow: 1
476						, slidesToScroll: 1
477					}
478			}
479		  ]
480		});
481	}
482    $('.featured-style-3 .featured-carousel').each(function () {
483        $('.featured-carousel').slick({
484            centerMode: true
485            , centerPadding: '220px'
486            , dots: true
487            , arrows: true
488            , rtl:true
489            , slidesToShow: 1
490            , autoplay: true
491            , autoplaySpeed: 4000
492            , speed: 1600
493            , responsive: [
494                {
495                    breakpoint: 991
496                    , settings: {
497                        arrows: false
498                        , centerMode: true
499                        , centerPadding: '40px'
500                        , slidesToShow: 1
501                    }
502			}
503                , {
504                    breakpoint: 768
505                    , settings: {
506                        arrows: false
507                        , centerMode: true
508                        , centerPadding: '20px'
509                        , slidesToShow: 1
510                    }
511			}
512                , {
513                    breakpoint: 480
514                    , settings: {
515                        arrows: false
516                        , centerMode: true
517                        , centerPadding: '0px'
518                        , slidesToShow: 1
519                    }
520			}
521		  ]
522        });
523    });
524	if ($(".featured-style-4 .featured-grid-carousel.desk").length > 0) {
525		$('.featured-style-4 .featured-grid-carousel.desk').slick({
526			dots: true
527			, arrows: true
528			, infinite: true
529			, autoplay: true
530			, rtl: true
531			, autoplaySpeed: 3500
532			, speed: 1200
533			, slidesToShow: 1
534		});
535	}
536	if ($(".featured-style-4 .featured-grid-carousel.mob .post-ctx").length > 0) {
537		$('.featured-style-4 .featured-grid-carousel.mob .post-ctx').slick({
538			dots: true
539		  , arrows: true
540		  , infinite: true
541		  , autoplay: true
542		  , rtl: true
543		  , autoplaySpeed: 3500
544		  , speed: 1200
545		  , slidesToShow: 1
546		});
547	}
548	if ($(".featured-style-4 .video-page.featured-grid-carousel").length > 0) {
549		$('.featured-style-4 .video-page.featured-grid-carousel').slick({
550			dots: true
551		  , arrows: true
552		  , infinite: true
553		  , autoplay: true
554		  , rtl: true
555		  , autoplaySpeed: 3500
556		  , speed: 1200
557		  , slidesToShow: 1
558		});
559	}
560	if ($(".featured-style-5 .featured-boxed-slider").length > 0) {
561		$('.featured-style-5 .featured-boxed-slider').slick({
562			dots: true
563			, arrows: true
564			, infinite: true
565			, slidesToShow: 1
566			, rtl:true
567			, slidesToScroll: 1
568			, autoplay: true
569			, autoplaySpeed: 3500
570			, speed: 1000
571		, });
572	}
573    /*====== CATEGORY SLIDERS ======*/
574    if ($('.cat-slider').length > 0) {
575        $('.cat-slider').slick({
576            slidesToShow: 1
577            , slidesToScroll: 1
578            , autoplay: true
579    
580            , autoplaySpeed: 3500
581            , fade: true
582            , prevArrow: $('.slider-prev')
583            , nextArrow: $('.slider-next')
584            
585            ,adaptiveHeight:true
586        , });
587    }
588    if ($('.cat-carousel').length > 0) {
589        $('.cat-carousel').slick({
590            slidesToShow: 3
591            , slidesToScroll: 1
592            , autoplay: true
593            , rtl:true
594            , autoplaySpeed: 3500
595            , prevArrow: $('.carousel-prev')
596            , nextArrow: $('.carousel-next')
597            , responsive: [
598                {
599                    breakpoint: 767
600                    , settings: {
601                        slidesToShow: 2
602                        , slidesToScroll: 1
603                    }
604	    }
605            , {
606                    breakpoint: 480
607                    , settings: {
608                        slidesToShow: 1
609                        , slidesToScroll: 1
610                    }
611	    }
612	  ]
613        });
614    }
615    if ($('.cat-carousel-four').length > 0) {
616        $('.cat-carousel-four').slick({
617            slidesToShow: 4
618            , slidesToScroll: 1
619            , rtl:true
620            , autoplay: true
621            , autoplaySpeed: 3500
622            , prevArrow: $('.carousel-prev')
623            , nextArrow: $('.carousel-next')
624            , responsive: [
625                {
626                    breakpoint: 767
627                    , settings: {
628                        slidesToShow: 2
629                        , slidesToScroll: 1
630                    }
631	    }
632            , {
633                    breakpoint: 480
634                    , settings: {
635                        slidesToShow: 1
636                        , slidesToScroll: 1
637                    }
638	    }
639	  ]
640        });
641    }
642	if ($('.cat-carousel-five').length > 0) {
643		$('.cat-carousel-five').slick({
644			slidesToShow: 5
645			, slidesToScroll: 1
646			, autoplay: true
647			, autoplaySpeed: 3500
648			, rtl:true
649			, prevArrow: $('.carousel-prev')
650			, nextArrow: $('.carousel-next')
651			, responsive: [
652				{
653					breakpoint: 767
654					, settings: {
655						slidesToShow: 2
656						, slidesToScroll: 1
657					}
658			}
659				, {
660					breakpoint: 480
661					, settings: {
662						slidesToShow: 1
663						, slidesToScroll: 1
664					}
665			}
666		  ]
667		});
668	}
669	if ($('.custom-posts-slider-for').length > 0) {
670		$('.custom-posts-slider-for').slick({
671			slidesToShow: 1
672			, slidesToScroll: 1
673			, arrows: false
674			, rtl:true
675			, fade: true
676			, asNavFor: '.custom-posts-slider-nav'
677			, responsive: [
678				{
679					breakpoint: 991
680					, settings: {
681						fade: false
682						, autoplay: true
683						, autoplaySpeed: 3500
684					, }
685			}
686		  ]
687		});
688	}
689	if ($('.custom-posts-slider-nav').length > 0) {
690		$('.custom-posts-slider-nav').slick({
691			slidesToShow: 4
692			, slidesToScroll: 1
693			, asNavFor: '.custom-posts-slider-for'
694			, dots: false
695			, rtl: true
696			, centerMode: false
697			, arrows: false
698			, focusOnSelect: true
699		, });
700	}
701    /*====== SLIDER WIDGET ======*/
702	if ($('.widget-category-slider').length > 0) {
703		$('.widget-category-slider').slick({
704			dots: true
705			, arrows: false
706			, slidesToShow: 1
707			, rtl:true
708			, slidesToScroll: 1
709			, autoplay: true
710			, autoplaySpeed: 2500
711			, speed: 1000
712		, });
713	}
714    /*====== STICKY SIDEBAR ======*/
715    $('.sidebar').each(function () {
716        $(this).theiaStickySidebar({
717              additionalMarginTop: 85
718            , additionalMarginBottom: 30
719        , });
720    });
721    /*====== POST TYPE VIDEO ======*/
722    $('.post-video').each(function () {
723        $(".post-video").fitVids();
724    });
725    /*====== POST TYPE GALLERY ======*/
726	if ($(".post-gallery").length > 0)
727	{
728		$('.post-gallery').each(function () {
729			$(".post-gallery.style-1").justifiedGallery({
730				rowHeight: 300
731				, margins: 1
732				, lastRow: 'justify'
733				, captions: false
734			, });
735			  $(".post-gallery.style-6").justifiedGallery({
736				rowHeight: 200
737				, margins: 1
738				, lastRow: 'justify'
739				, captions: false
740			, });
741			  $(".post-gallery.style-4").justifiedGallery({
742				rowHeight:160
743				, margins: 1
744				, lastRow: 'justify'
745				, captions: false
746			, });
747			  $(".post-gallery.style-7").justifiedGallery({
748				rowHeight:120
749				, margins: 1
750				, lastRow: 'justify'
751				, captions: false
752			, });
753			if ($('.post-gallery.style-2 ul').length > 0) {
754				$('.post-gallery.style-2 ul').slick({
755					dots: true
756					, arrows: true
757					, slidesToShow: 1
758					, rtl:true
759					, slidesToScroll: 1
760					, autoplay: true
761					//, rtl:true
762					, autoplaySpeed: 2500
763					, speed: 1000
764					, responsive: [
765						{
766							breakpoint: 480
767							, settings: {
768								arrows: false
769							, }
770					}
771				  ]
772				});
773			}
774		});
775	}
776    /*====== LIGHTBOX IMAGE ======*/
777	if ($("a.lightbox-image").length > 0) {
778		$('a.lightbox-image').each(function () {
779			$('a.lightbox-image').magnificPopup({
780				type: 'image'
781				, gallery: {
782					enabled: true
783				}
784			});
785		});
786	    /*=====light box swipe=====*/
787		if ($(".img-click").length > 0) {
788		    $('.img-click').click(function () {
789		        var count = 0;
790		        //Enable swiping...
791
792		                changeUrl($(this).index());
793		          
794		  
795		    })
796		}
797	
798	}
799	//function changeUrl(el) {
800
801	//    if (el != "right" && el != "left") {
802	//        if (history.pushState) {
803	//            history.pushState(null, null, '#' + (parseInt(el) + 1));
804	//        }
805	//        else {
806	//            location.hash = '#' + el;
807	//        }
808	//    } else {
809	        
810	//        if (history.pushState) {
811	//            history.pushState(null, null, '#' + $("figcaption .mfp-counter").html().replace(" ", "").split("/")[0]);
812	//        }
813	//        else {
814	//            location.hash = '#' + $("figcaption .mfp-counter").html().replace(" ", "").split("/")[0];
815	//        }
816	//    }
817
818	//}
819    /*====== COMMENT POST TOGLLE ======*/
820    $('.post-comments .comments-title').each(function () {
821        var $content = $(".comment-list").hide();
822        $(".post-comments .comments-title h3").on("click", function (e) {
823            $(this).toggleClass("expanded");
824            $content.slideToggle();
825        });
826    });
827    /*====== PARALLAX EFFECT ======*/
828    $('.post-inner-header').each(function () {
829        function parallax() {
830            var scrolled = $(window).scrollTop();
831            $('.parallax-image').css('transform', "translateY(" + -(scrolled * -0.2) + "px)");
832        }
833        $(window).scroll(function () {
834            parallax();
835        });
836    });
837    /*====== BACK TO TOP ======*/
838    $('.back-to-top').each(function () {
839        var offset = 220;
840        var duration = 500;
841        $(window).scroll(function () {
842            if ($(this).scrollTop() > offset) {
843                $('.back-to-top').fadeIn(duration);
844            }
845            else {
846                $('.back-to-top').fadeOut(duration);
847            }
848        });
849        $('.back-to-top a').click(function (event) {
850            event.preventDefault();
851            $('html, body').animate({
852                scrollTop: 0
853            }, 1000);
854            return false;
855        });
856    });
857});

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.