PageSourceSearch

https://icicn.org/javascript/main.js

js icicn.org collected 2026-10-08 07:11:12 UTC 35,807 bytes, 975 lines download raw bytes

1/**
2  * isMobile
3  * responsiveMenu();
4  * topSearch();          
5  * flatTestimonials_1();
6  * flatTestimonials_2();
7  * flatTestimonials_3();
8  * flatTestimonials_4();
9  * flatClient();
10  * detectViewport();
11  * counter();
12  * flatAccordion();
13  * tabs();
14  * portfolioIsotope();
15  * googleMap();
16  * CountDown();
17  * flatFilterPrice();
18  * popupGallery();
19  * sectionVideo();         
20  * responsiveVideo();
21  * swClick(); 
22  * parallax();
23  * removePreloader();
24  * goTop();
25*/
26
27;(function($) {
28
29   'use strict'
30
31    var isMobile = {
32        Android: function() {
33            return navigator.userAgent.match(/Android/i);
34        },
35        BlackBerry: function() {
36            return navigator.userAgent.match(/BlackBerry/i);
37        },
38        iOS: function() {
39            return navigator.userAgent.match(/iPhone|iPad|iPod/i);
40        },
41        Opera: function() {
42            return navigator.userAgent.match(/Opera Mini/i);
43        },
44        Windows: function() {
45            return navigator.userAgent.match(/IEMobile/i);
46        },
47        any: function() {
48            return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
49        }
50    };
51
52	var responsiveMenu = function() {
53        var menuType = 'desktop';
54
55        $(window).on('load resize', function() {
56            var currMenuType = 'desktop';
57
58            if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) {
59                currMenuType = 'mobile';
60            }
61
62            if ( currMenuType !== menuType ) {
63                menuType = currMenuType;
64
65                if ( currMenuType === 'mobile' ) {
66                    var $mobileMenu = $('#mainnav').attr('id', 'mainnav-mobi').hide();
67                    var hasChildMenu = $('#mainnav-mobi').find('li:has(ul)');
68
69                    $('#header').after($mobileMenu);
70                    hasChildMenu.children('ul').hide();
71                    hasChildMenu.children('a').after('<span class="btn-submenu"></span>');
72                    $('.btn-menu').removeClass('active');
73                } else {
74                    var $desktopMenu = $('#mainnav-mobi').attr('id', 'mainnav').removeAttr('style');
75
76                    $desktopMenu.find('.submenu').removeAttr('style');
77                    $('#header').find('.nav-wrap').append($desktopMenu);
78                    $('.btn-submenu').remove();
79                }
80            }
81        });
82
83        $('.btn-menu').on('click', function() {         
84            $('#mainnav-mobi').slideToggle(300);
85            $(this).toggleClass('active');
86        });
87
88        $(document).on('click', '#mainnav-mobi li .btn-submenu', function(e) {
89            $(this).toggleClass('active').next('ul').slideToggle(300);
90            e.stopImmediatePropagation()
91        });
92    }
93
94    var headerFixed = function() {
95        if ( $('body').hasClass('header_sticky2') ) {
96            var nav = $('.header');
97
98            if ( nav.size() != 0 ) {
99                var offsetTop = $('.header.scroll-head').offset().top,
100                    headerHeight = $('.header.scroll-head').height(),
101                    injectSpace = $('<div />', { height: headerHeight }).insertAfter(nav);   
102                    injectSpace.hide();                 
103
104                $(window).on('load scroll', function(){
105                     if ( $(window).scrollTop() > offsetTop + 120 ) {
106                         $('.header.scroll-head').addClass('downscrolled');
107                     } else {
108                         $('.header.scroll-head').removeClass('header-small downscrolled');
109                     }
110
111                     if ( $(window).scrollTop() > 500 ) {
112                         $('.header.scroll-head').addClass('header-small upscrolled');
113                     } else {
114                         $('.header.scroll-head').removeClass('upscrolled');
115                     }
116                })
117            }
118        }     
119    };
120
121    var headerFixed111 = function() {
122        if ( $('body').hasClass('header-sticky') ) {
123            var nav = $('.header');
124
125            if ( nav.size() !== 0 ) {
126                var offsetTop = $('.header').offset().top,
127                    headerHeight = $('.header').height(),
128                    injectSpace = $('<div />', { height: 80 }).insertAfter(nav);   
129                    injectSpace.hide();                 
130
131                $(window).on('load scroll', function(){
132                    if ( $(window).scrollTop() > offsetTop ) {
133                        if ( $('.header').hasClass('header-classic') ) {
134                            injectSpace.show();
135                        }
136                        $('.header').addClass('downscrolled');                        
137                    } else {
138                        $('.header').removeClass('header-small downscrolled');
139                        injectSpace.hide();
140                    }                    
141                })
142            }
143        }
144    };
145
146    var headerFixedstyle2 = function() {
147        if ( $('body').hasClass('header-sticky2') ) {
148            var nav = $('.header');
149
150            if ( nav.size() !== 0 ) {
151                var offsetTop = $('.header').offset().top,
152                    headerHeight = $('.header').height(),
153                    injectSpace = $('<div />', { height: 60 }).insertAfter(nav);   
154                    injectSpace.hide();                 
155
156                $(window).on('load scroll', function(){
157                    if ( $(window).scrollTop() > offsetTop ) {
158                        if ( $('.header').hasClass('header-classic') ) {
159                            injectSpace.show();
160                        }
161                        $('.header').addClass('downscrolled');                        
162                    } else {
163                        $('.header').removeClass('header-small downscrolled');
164                        injectSpace.hide();
165                    }                    
166                })
167            }
168        }
169    };
170
171    var topSearch = function () {
172        $(document).on('click', function(e) {   
173            var clickID = e.target.id;   
174            if ( ( clickID !== 's' ) ) {
175                $('.top-search').removeClass('show');                
176            } 
177        });
178
179        $('.show-search').on('click', function(event){
180            event.stopPropagation();
181        });
182
183        $('.search-form').on('click', function(event){
184            event.stopPropagation();
185        });        
186
187        $('.show-search').on('click', function (event) {
188            if(!$('.top-search').hasClass( "show" )) {
189                $('.top-search').addClass('show');  
190                event.preventDefault();                
191            }
192                
193            else
194                $('.top-search').removeClass('show');
195                event.preventDefault();
196
197            if( !$('.show-search' ).hasClass( "active" ) )
198                $( '.show-search' ).addClass( 'active' );
199            else
200                $( '.show-search' ).removeClass( 'active' );
201        });   
202    };
203
204    var ajaxContactForm = function() {  
205        $('#contactform').each(function() {
206            $(this).validate({
207                submitHandler: function( form ) {
208                    var $form = $(form),
209                        str = $form.serialize(),
210                        loading = $('<div />', { 'class': 'loading' });
211
212                    $.ajax({
213                        type: "POST",
214                        url:  $form.attr('action'),
215                        data: str,
216                        beforeSend: function () {
217                            $form.find('.form-submit').append(loading);
218                        },
219                        success: function( msg ) {
220                            var result, cls;                            
221                            if ( msg == 'Success' ) {                                
222                                result = 'Message Sent Successfully To Email Administrator. ( You can change the email management a very easy way to get the message of customers in the user manual )';
223                                cls = 'msg-success';
224                            } else {
225                                result = 'Error sending email.';
226                                cls = 'msg-error';
227                            }
228
229                            $form.prepend(
230                                $('<div />', {
231                                    'class': 'flat-alert ' + cls,
232                                    'text' : result
233                                }).append(
234                                    $('<a class="close" href="#"><i class="fa fa-close"></i></a>')
235                                )
236                            );
237
238                            $form.find(':input').not('.submit').val('');
239                        },
240                        complete: function (xhr, status, error_thrown) {
241                            $form.find('.loading').remove();
242                        }
243                    });
244                }
245            });
246        }); // each contactform
247    };   
248
249    var alertBox = function() {
250        $(document).on('click', '.close', function(e) {
251            $(this).closest('.flat-alert').remove();
252            e.preventDefault();
253        })     
254    }       
255  
256    var googleMap = function() {
257        if ( $().gmap3 ) {
258            $("#maps").gmap3({
259                map:{
260                    options:{
261                        zoom: 11,
262                        mapTypeId: 'Spec_style',
263                        mapTypeControlOptions: {
264                            mapTypeIds: ['Spec_style', google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.HYBRID]
265                        },
266                        scrollwheel: false
267                    }
268                },
269                getlatlng:{
270                    address:  "1341 W Mockingbrid, NewYourk",
271                    callback: function(results) {
272                        if ( !results ) return;
273                        $(this).gmap3('get').setCenter(new google.maps.LatLng(results[0].geometry.location.lat(), results[0].geometry.location.lng()));
274                        $(this).gmap3({
275                            marker:{
276                                latLng:results[0].geometry.location,
277                                options:{
278                                    // icon: 'http://themesflat.com/html/canava/images/icon/marker.png'
279                                }
280                            }
281                        });
282                    }
283                },
284                styledmaptype:{
285                    id: "Spec_style",
286                    options:{
287                        name: "Spec Map"
288                    }, 
289                    styles: [
290                        {
291                            "featureType": "landscape",
292                            "stylers": [
293                                {
294                                    "saturation": -100
295                                },
296                                {
297                                    "lightness": 65
298                                },
299                                {
300                                    "visibility": "on"
301                                }
302                            ]
303                        },
304
305                        {
306                            "featureType": "poi",
307                            "stylers": [
308                                {
309                                    "saturation": -100
310                                },
311                                {
312                                    "lightness": 51
313                                },
314                                {
315                                    "visibility": "simplified"
316                                }
317                            ]
318                        },
319
320                        {
321                            "featureType": "road.highway",
322                            "stylers": [
323                                {
324                                    "saturation": -100
325                                },
326                                {
327                                    "visibility": "simplified"
328                                }
329                            ]
330                        },
331
332                        {
333                            "featureType": "road.arterial",
334                            "stylers": [
335                                {
336                                    "saturation": -100
337                                },
338                                {
339                                    "lightness": 30
340                                },
341                                {
342                                    "visibility": "on"
343                                }
344                            ]
345                        },
346                        {
347                            "featureType": "road.local",
348                            "stylers": [
349                                {
350                                    "saturation": -100
351                                },
352                                {
353                                    "lightness": 40
354                                },
355                                {
356                                    "visibility": "on"
357                                }
358                            ]
359                        },
360                        {
361                            "featureType": "transit",
362                            "stylers": [
363                                {
364                                    "saturation": -100
365                                },
366                                {
367                                    "visibility": "simplified"
368                                }
369                            ]
370                        },
371
372                        {
373                            "featureType": "administrative.province",
374                            "stylers": [
375                                {
376                                    "visibility": "off"
377                                }
378                            ]
379                        },
380                        {
381                            "featureType": "water",
382                            "elementType": "labels",
383                            "stylers": [
384                                {
385                                    "visibility": "on"
386                                },
387                                {
388                                    "lightness": -25
389                                },
390                                {
391                                    "saturation": -100
392                                },
393                                { "color": "#81abff" }
394                            ]
395                        },
396                        {
397                            "featureType": "water",
398                            "elementType": "geometry",
399                            "stylers": [
400                                {
401                                    "hue": "#81abff"
402                                },
403                                {
404                                    "lightness": 17
405                                },
406                                {
407                                    "saturation": -97
408                                }
409                            ]
410                        }
411                    ]                   
412                },
413            });
414        }
415    };            
416
417    var flatTestimonials_1 = function() {
418        $('.flat-row').each(function() {            
419            if ( $().owlCarousel ) {
420                $(this).find('.flat-testimonials1').owlCarousel({
421                    loop: true,
422                    margin: 30,
423                    nav: $('.flat-testimonials1').data('nav'),
424                    dots: $('.flat-testimonials1').data('dots'),                     
425                    autoplay: $('.flat-testimonials1').data('auto'),                    
426                    responsive:{
427                        0:{
428                            items: 1
429                        },
430                        480:{
431                            items: 2
432                        },
433                        767:{
434                            items: 2
435                        },
436                        991:{
437                            items: 2
438                        },
439                        1200: {
440                            items: $('.flat-testimonials1').data('item')
441                        }
442                    }
443                });
444            }
445        });
446    };
447
448    var flatTestimonials_2 = function() {
449        $('.flat-row').each(function() {            
450            if ( $().owlCarousel ) {
451                $(this).find('.flat-testimonials2').owlCarousel({
452                    loop: true,
453                    margin: 30,
454                    nav: $('.flat-testimonials2').data('nav'),
455                    dots: $('.flat-testimonials2').data('dots'),                     
456                    autoplay: $('.flat-testimonials2').data('auto'),                    
457                    responsive:{
458                         0:{
459                            items: 1
460                        },
461                        480:{
462                            items: 2
463                        },
464                        767:{
465                            items: 2
466                        },
467                        991:{
468                            items: 2
469                        },
470                        1200: {
471                            items: $('.flat-testimonials2').data('item')
472                        }
473                    }
474                });
475            }
476        });
477    };
478
479    var flatTestimonials_3 = function() {
480        $('.flat-row').each(function() {            
481            if ( $().owlCarousel ) {
482                $(this).find('.flat-testimonials3').owlCarousel({
483                    loop: true,
484                    margin: 0,
485                    nav: $('.flat-testimonials3').data('nav'), 
486                    dots: $('.flat-testimonials3').data('dots'),                                    
487                    autoplay: $('.flat-testimonials3').data('auto'),                    
488                    responsive:{
489                        0:{
490                            items: 1
491                        },
492                        480:{
493                            items: 1
494                        },
495                        767:{
496                            items: 1
497                        },
498                        991:{
499                            items: 1
500                        },
501                        1200: {
502                            items: $('.flat-testimonials3').data('item')
503                        }
504                    }
505                });
506            }
507        });
508    };
509
510    var flatTestimonials_4 = function() {
511        $('.flat-row').each(function() {            
512            if ( $().owlCarousel ) {
513                $(this).find('.wrap-portfolio').owlCarousel({
514                    loop: true,
515                    margin: 13,
516                    nav: $('.wrap-portfolio').data('nav'), 
517                    dots: $('.wrap-portfolio').data('dots'),                                    
518                    autoplay: $('.wrap-portfolio').data('auto'),                    
519                    responsive:{
520                        0:{
521                            items: 1
522                        },
523                        480:{
524                            items: 2
525                        },
526                        767:{
527                            items: 2
528                        },
529                        991:{
530                            items: 2
531                        },
532                        1200: {
533                            items: $('.wrap-portfolio').data('item')
534                        }
535                    }
536                });
537            }
538        });
539    };
540
541    var flatClient = function() {
542        $('.flat-row').each(function() {            
543            if ( $().owlCarousel ) {
544                $(this).find('.flat-client').owlCarousel({
545                    loop: true,
546                    margin: 70,
547                    nav: $('.flat-client').data('nav'),
548                    dots: $('.flat-client').data('dots'),                     
549                    autoplay: $('.flat-client').data('auto'),                    
550                    responsive:{
551                        0:{
552                            items: 2
553                        },
554                       
554 320: {
555                            items: 2
556                        },
557                        480:{
558                            items: 3
559                        },
560                        767:{
561                            items: 3
562                        },
563                        991:{
564                            items: 4
565                        },
566                        1200: {
567                            items: $('.flat-client').data('item')
568                        }
569                    }
570                });
571            }
572        });
573    }; 
574
575    var flatpopup = function() {
576        $('.flat-row').each(function() {            
577            if ( $().owlCarousel ) {
578                $(this).find('.flat-item-img').owlCarousel({
579                    loop: true,
580                    margin: 70,
581                    nav: $('.flat-item-img').data('nav'),
582                    dots: $('.flat-item-img').data('dots'),                     
583                    autoplay: $('.flat-item-img').data('auto'),                    
584                    responsive:{
585                        0:{
586                            items: 1
587                        },
588                        320: {
589                            items: 1
590                        },
591                        480:{
592                            items: 1
593                        },
594                        767:{
595                            items: 1
596                        },
597                        991:{
598                            items: 1
599                        },
600                        1200: {
601                            items: 1
602                        }
603                    }
604                });
605            }
606        });
607    }; 
608
609    var counter = function() {       
610        $('.flat-counter').on('on-appear', function() {             
611            $(this).find('.numb-count').each(function() { 
612                var to = parseInt( ($(this).attr('data-to')),10 ), speed = parseInt( ($(this).attr('data-speed')),10 );
613                if ( $().countTo ) {
614                    $(this).countTo({
615                        to: to,
616                        speed: speed
617                    });
618                }
619            });
620       });
621    }; 
622
623    var quantity = function(){
624            jQuery('<div class="quantity-nav"><div class="quantity-button quantity-up">></div><div class="quantity-button quantity-down"><</div></div>').insertAfter('.quantity input');
625                jQuery('.quantity').each(function() {
626                  var spinner = jQuery(this),
627                    input = spinner.find('input[type="number"]'),
628                    btnUp = spinner.find('.quantity-up'),
629                    btnDown = spinner.find('.quantity-down'),
630                    min = input.attr('min'),
631                    max = input.attr('max');
632
633                  btnUp.click(function() {
634                    var oldValue = parseFloat(input.val());
635                    if (oldValue >= max) {
636                      var newVal = oldValue;
637                    } else {
638                      var newVal = oldValue + 1;
639                    }
640                    spinner.find("input").val(newVal);
641                    spinner.find("input").trigger("change");
642                  });
643
644                  btnDown.click(function() {
645                    var oldValue = parseFloat(input.val());
646                    if (oldValue <= min) {
647                      var newVal = oldValue;
648                    } else {
649                      var newVal = oldValue - 1;
650                    }
651                    spinner.find("input").val(newVal);
652                    spinner.find("input").trigger("change");
653                  });
654
655                });
656    }  
657
658    var detectViewport = function() {
659        $('[data-waypoint-active="yes"]').waypoint(function() {
660            $(this).trigger('on-appear');
661            }, { offset: '90%', triggerOnce: true });
662
663        $(window).on('load', function() {
664            setTimeout(function() {
665                $.waypoints('refresh');
666            });
667        });
668    };
669
670    var flatAccordion = function() {
671        var args = {duration: 600};
672        $('.flat-toggle .toggle-title.active').siblings('.toggle-content').show();
673
674        $('.flat-toggle.enable .toggle-title').on('click', function() {
675            $(this).closest('.flat-toggle').find('.toggle-content').slideToggle(args);
676            $(this).toggleClass('active');
677        }); // toggle 
678
679        $('.flat-accordion .toggle-title').on('click', function () {
680            if( !$(this).is('.active') ) {
681                $(this).closest('.flat-accordion').find('.toggle-title.active').toggleClass('active').next().slideToggle(args);
682                $(this).toggleClass('active');
683                $(this).next().slideToggle(args);
684            } else {
685                $(this).toggleClass('active');
686                $(this).next().slideToggle(args);
687            }     
688        }); // accordion
689    }; 
690
691    var tabs = function() {
692        $('.flat-tabs').each(function() {
693            $(this).children('.content-tab').children().hide();
694            $(this).children('.content-tab').children().first().show();
695            $(this).find('.menu-tab').children('li').on('click', function(e) {  
696                var liActive = $(this).index(),
697                    contentActive = $(this).siblings().removeClass('active').parents('.flat-tabs').children('.content-tab').children().eq(liActive);
698
699                contentActive.addClass('active').fadeIn('slow');
700                contentActive.siblings().removeClass('active');
701                $(this).addClass('active').parents('.flat-tabs').children('.content-tab').children().eq(liActive).siblings().hide();
702                e.preventDefault();
703            });
704        });
705    };
706
707    var portfolioIsotope = function() {         
708        if ( $().isotope ) {           
709            var $container = $('.iso-portfolio');
710            $container.imagesLoaded(function(){
711                $container.isotope({
712                    itemSelector: '.item',
713                    transitionDuration: '1s'
714                });
715            });
716
717            $('.portfolio-filter li').on('click',function() {                           
718                var selector = $(this).find("a").attr('data-filter');
719                $('.portfolio-filter li').removeClass('active');
720                $(this).addClass('active');
721                $container.isotope({ filter: selector });
722                return false;
723            });
724
725            $('.iso-portfolio .load-more a').on('click', function(e) {
726                e.preventDefault();
727
728                var el = $(this),
729                    url = el.attr('href'),
730                    page = parseInt(el.attr('data-page'), 10);
731
732                el.addClass('loading').text('Loading...');
733
734                $.ajax({
735                    type: "GET",
736                    url: url,
737                    dataType: "html",
738                    async: false,   // wait result
739                    data : { page : page }
740                })
741                .done(function (data) {
742                    if ( data != null ) {                      
743                        var newitem = $(data);
744                        $container.append(newitem).isotope('appended', newitem);
745                        el.removeClass('loading').text('Load more');
746                        page = page + 1;
747                        el.attr({'data-page': page, 'href': './ajax/p' + page + '.html'});
748                    }
749                })
750                .fail(function () {
751                    el.text('No more portfolio to load.');
752                })
753            });
754        };
755    };
756
757    var CountDown = function() {
758        var before = '<div class="square"><div class="numb">',
759            text = '</div><div class="text">';
760            if ($().countdown) {
761                $(".countdown").countdown('2017/07/27', function(event) {
762                  $(this).html(event.strftime(before + '%D' + text + '</div></div>' + before + '%H' + text + '</div></div>' + before + '%M' + text + '</div></div>
762' + before + '%S' + text + '</div>'));
763                });
764            }
765    }; 
766
767    var flatFilterPrice = function() {
768        if( $().slider ) {
769            $( ".price_slider" ).slider({
770                range: true,
771                min: 607,
772                max: 1140,
773                values: [ 610, 980 ],
774                slide: function( event, ui ) {
775                    $( ".price_label > input " ).val( "$" + ui.values[ 0 ] + "  - $" + ui.values[ 1 ] );
776                    }
777            });
778
779            $( ".price_label > input " ).val( "$" + $( ".price_slider" ).slider( "values", 0 ) +
780            "  -  $" + $( ".price_slider" ).slider( "values", 1 ) );
781            $( ".ui-slider-handle").append("<span class='shadow'></span>");
782        }
783    };
784
785    var sectionVideo = function () {
786        if($().YTPlayer) {
787            $(".video-section").YTPlayer( {
788                showControls: false,
789                autoPlay: false,
790                
791            }); 
792            var v = $('.video-section');
793            $('#video-controls a')
794            .each(function() {
795                var t = $(this);
796                t.on('click', (function(e) {
797                    e.preventDefault();  
798                    if (t.hasClass('fa-play')) {
799                        t.removeClass('fa-play')
800                            .addClass(
801                                'fa-pause');
802                        v.playYTP();
803                        return false
804                    }                  
805                    if (t.hasClass('fa-pause')) {
806                        t.removeClass(
807                                'fa-pause')
808                            .addClass('fa-play');
809                        v.pauseYTP();
810                        return false
811                    }  
812                    if (t.hasClass('fa-play-circle')) {
813                        t.removeClass('fa-play-circle')
814                            .addClass(
815                                'fa-pause-circle');
816                        v.playYTP();
817                        return false
818                    }  
819                    if (t.hasClass('fa-pause-circle')) {
820                        t.removeClass(
821                                'fa-pause-circle')
822                            .addClass('fa-play-circle');
823                        v.pauseYTP();
824                        return false
825                    }                        
826                }));
827            });
828        }
829    }
830
831    var responsiveVideo= function() {
832        if ( $().fitVids ) {
833            $('.container').fitVids();
834        }
835    };
836
837    var swClick = function () {
838        function activeLayout () {
839            $(".switcher-container" ).on( "click", "a.sw-light", function() {
840                $(this).toggleClass( "active" );
841                $('body').addClass('home-boxed');  
842                $('body').css({'background': '#f6f6f6' });                
843                $('.sw-pattern.pattern').css ({ "top": "100%", "opacity": 1, "z-index": "10"});
844            }).on( "click", "a.sw-dark", function() {
845                $('.sw-pattern.pattern').css ({ "top": "98%", "opacity": 0, "z-index": "-1"});
846                $(this).removeClass('active').addClass('active');
847                $('body').removeClass('home-boxed');
848                $('body').css({'background': '#fff' });
849                return false;
850            })       
851        }        
852
853        function activePattern () {
854            $('.sw-pattern').on('click', function () {
855                $('.sw-pattern.pattern a').removeClass('current');
856                $(this).addClass('current');
857                $('body').css({'background': 'url("' + $(this).data('image') + '")', 'background-size' : '30px 30px', 'background-repeat': 'repeat' });
858                return false
859            })
860        }
861
862        activeLayout(); 
863        activePattern();
864    } 
865    
866    var goTop = function() {
867        $(window).scroll(function() {
868            if ( $(this).scrollTop() > 800 ) {
869                $('.go-top').addClass('show');
870            } else {
871                $('.go-top').removeClass('show');
872            }
873        }); 
874
875        $('.go-top').on('click', function() {            
876            $("html, body").animate({ scrollTop: 0 }, 1000 , 'easeInOutExpo');
877            return false;
878        });
879    };   
880
881    var retinaLogos = function() {
882      var retina = window.devicePixelRatio > 1 ? true : false;
883
884        if(retina) {
885            $('.header .logo').find('img').attr({src:'./images/[email protected]',width:'210',height:'88'});   
886        }
887    };    
888    
889    var parallax = function() {
890        if ( $().parallax && isMobile.any() == null ) {
891            $('.parallax1').parallax("50%", 0.5);  
892            $('.parallax2').parallax("50%", 0.5);
893            $('.parallax3').parallax("50%", 0.5);
894            $('.parallax4').parallax("50%", 0.5);
895            $('.parallax5').parallax("50%", 0.5);
896            $('.parallax6').parallax("50%", 0.5);         
897        }
898    };
899
900    var popupGallery = function () {
901        $(".popup-gallery").magnificPopup({
902            type: "image",
903            tLoading: "Loading image #%curr%...",
904            removalDelay: 600,
905            mainClass: "my-mfp-slide-bottom",
906            gallery: {
907                enabled: true,
908                navigateByImgClick: true,
909                preload: [ 0, 1 ]
910            },
911            image: {
912                tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
913            }
914        });
915    }
916
917    var popupdiv = function() {
918            $('[data-popup-open]').on('click', function(e)  {
919                var targeted_popup_class = jQuery(this).attr('data-popup-open');
920                $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
921         
922                e.preventDefault();
923            });
924         
925            //----- CLOSE
926            $('[data-popup-close]').on('click', function(e)  {
927                var targeted_popup_class = jQuery(this).attr('data-popup-close');
928                $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
929         
930                e.preventDefault();
931            });
932    }
933
934    
935
936    var removePreloader = function() {        
937        $('.loading-overlay').fadeOut('slow',function () {
938            $(this).remove();
939        });
940    };
941
942   	// Dom Ready
943	$(function() { 
944         if ( matchMedia( 'only screen and (min-width: 991px)' ).matches ) {
945            headerFixed111();
946            headerFixed();
947            headerFixedstyle2();
948         }  
949        responsiveMenu();
950        topSearch();          
951        flatTestimonials_1();
952        flatTestimonials_2();
953        flatTestimonials_3();
954        flatTestimonials_4();
955        flatClient();
956        flatpopup();
957        detectViewport();
958        counter();
959        flatAccordion();
960        tabs();
961        portfolioIsotope();
962        googleMap();
963        CountDown();
964        flatFilterPrice();
965        popupGallery();
966        sectionVideo();         
967        responsiveVideo();
968        swClick(); 
969        parallax();
970        removePreloader();
971        goTop();
972        popupdiv();
973   	});
974
975})(jQuery);

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.