PageSourceSearch

https://akh.com.qa/wp-content/themes/DEstiny/js/theme/scripts.js?ver=6.9.9

js akh.com.qa collected 2026-10-05 08:01:34 UTC 28,205 bytes, 932 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    var height_video = $(window).width();
4    var height_responsive = (height_video / 1.78011) + 1;
5    $('.video_slide').css("height", height_responsive);
6
7
8
9    $(window).resize(function () {
10
11        var height_video = $(window).width();
12        var height_responsive = (height_video / 1.78011) + 1;
13        $('.video_slide').css("height", height_responsive);
14
15    });
16
17});
18
19
20var window_height = $(window).height(),
21        testMobile,
22        loadingError = '<p class="error">The Content cannot be loaded.</p>',
23        nameError = '<div class="alert-message error">Please enter your name.<span class="close" href="#">x</span></div>',
24        emailError = '<div class="alert-message error">Please enter your e-mail address.<span class="close" href="#">x</span></div>',
25        invalidEmailError = '<div class="alert-message error">Please enter a valid e-mail address.<span class="close" href="#">x</span></div>',
26        subjectError = '<div class="alert-message error">Please enter the subject.<span class="close" href="#">x</span></div>',
27        messageError = '<div class="alert-message error">Please enter your message.<span class="close" href="#">x</span></div>',
28        mailSuccess = '<div class="alert-message success">Your message has been sent. Thank you!<span class="close" href="#">x</span></div>',
29        mailResult = $('#contact .result'),
30        current,
31        next,
32        prev,
33        target,
34        hash,
35        url,
36        page,
37        title,
38        projectIndex,
39        scrollPostition,
40        projectLength,
41        ajaxLoading = false,
42        wrapperHeight,
43        pageRefresh = true,
44        content = false,
45        loader = $('div#loader'),
46        portfolioGrid = $('div#portfolio-wrap'),
47        projectContainer = $('div#ajax-content-inner'),
48        projectNav = $('#project-navigation ul'),
49        exitProject = $('div#closeProject a'),
50        easing = 'easeOutExpo',
51        folderName = 'gallery';
52$.browser.safari = ($.browser.webkit && !(/chrome/.test(navigator.userAgent.toLowerCase())));
53
54
55if (!$.browser.safari) {
56    $('.home-parallax').find('.home-text-wrapper').children('.container').addClass('no-safari');
57}
58
59
60
61$(function () {
62
63    /* ------------------------------------------------------------------------ */
64    /* MAILCHIMP SUBSCRIPTION */
65    /* ------------------------------------------------------------------------ */
66    if ($('#newsletterform').length) {
67        if ($('#newsletterform').attr('data-mailchimp') == 'true') {
68            $('#newsletterform').attr('action', 'subscribe-mailchimp.php');
69            $('#newsletterform').ajaxForm({dataType: 'json',
70                timeout: 2000,
71                success: mailchimpCallback});
72        } else {
73            $('#newsletterform').attr('action', 'subscribe.php');
74            $('#newsletterform').ajaxForm({dataType: 'json',
75                timeout: 2000,
76                success: Callback});
77        }
78        $('#button-newsletter').click(function () {
79            $('#newsletterform').submit();
80            return false;
81        });
82    }
83
84
85});
86
87
88function Callback(response) {
89    if (response.responseStatus == 'err') {
90        if (response.responseMsg == 'ajax') {
91            alert('Error - this script can only be invoked via an AJAX call.');
92        } else if (response.responseMsg == 'fileopen') {
93            alert('Error opening $emailsFile. Please refer to documentation for help.');
94        } else if (response.responseMsg == 'name') {
95            alert('Please enter a valid name.');
96        } else if (response.responseMsg == 'email') {
97            alert('Please enter a valid email address.');
98        } else if (response.responseMsg == 'duplicate') {
99            alert('You are already subscribed to our newsletter.');
100        } else if (response.responseMsg == 'filewrite') {
101            alert('Error writing to $emailsFile. Please refer to documentation for help.');
102        } else {
103            alert('Undocumented error. Please refresh the page and try again.');
104        }
105    } else if (response.responseStatus == 'ok') {
106        alert('Thank you for subscribing to our newsletter!');
107    } else {
108        alert('Undocumented error. Please refresh the page and try again.');
109    }
110}
111
112
113function mailchimpCallback(response) {
114    if (response.responseStatus == 'err') {
115        if (response.responseMsg == 'ajax') {
116            alert('Error - this script can only be invoked via an AJAX call.');
117        } else if (response.responseMsg == 'name') {
118            alert('Please enter a valid name.');
119        } else if (response.responseMsg == 'email') {
120            alert('Please enter a valid email address.');
121        } else if (response.responseMsg == 'listid') {
122            alert('Invalid MailChimp list name.');
123        } else if (response.responseMsg == 'duplicate') {
124            alert('You are already subscribed to our newsletter.');
125        } else {
126            alert('Undocumented error (' + response.responseMsg + '). Please refresh the page and try again.');
127        }
128    } else if (response.responseStatus == 'ok') {
129        alert('Thank you for subscribing! Please confirm your subscription in the email you\'ll receive shortly.');
130    } else {
131        alert('Undocumented error. Please refresh the page and try again.');
132    }
133}
134
135
136$('.home-slide').each(function () {
137    contentSize = $(this).find('.home-slide-content');
138    contentSize.fitText(1.2);
139});
140
141
142var init = function () {
143    $('nav').animate({'opacity': '1'}, 400);
144
145    // Function to slabtext the H1 headings
146    function slabTextHeadlines() {
147        $(".home-quote h1").slabText({
148            // Don't slabtext the headers if the viewport is under 479px
149            "viewportBreakpoint": 300
150
151
152        });
153    }
154    ;
155
156
157
158
159    $(window).load(function () {
160        setTimeout(slabTextHeadlines, 5);
161    });
162
163
164    /*----------------------------------------------------*/
165    /* FULLSCREEN IMAGE HEIGHT
166     /*----------------------------------------------------*/
167
168    function fullscreenImgHeight() {
169
170        $('#home, .background-video').css({height: window_height});
171        /*		  var headerH = $('nav').outerHeight();
172         $("#home").css('marginBottom',-headerH);*/
173
174    }
175
176    fullscreenImgHeight();
177
178
179
180    $(window).bind('resize', function () {
181
182        fullscreenImgHeight();
183        home_parallax();
184
185    });
186
187};
188
189
190jQuery(window).load(function () {
191    jQuery(document).ready(function ($) {
192// cache container
193        var container = $('#portfolio-wrap');
194        container.isotope({
195            animationEngine: 'best-available',
196            animationOptions: {
197                duration: 200,
198                queue: false
199            },
200            layoutMode: 'fitRows'
201        });
202
203        
204        var def = $('#filters a.active').attr('data-filter');
205        if (typeof def !== typeof undefined) {
206            container.isotope({filter: def});
207            setProjects();
208            var text = $('#filters a.active').text();
209            $('.active_brand').html(text);
210        }
211       
212
213        // filter items when filter link is clicked
214        $('#filters a').click(function () {
215            $('#filters a').removeClass('active');
216            $(this).addClass('active');
217            var selector = $(this).attr('data-filter');
218            var text = $(this).text();
219            $('.active_brand').html(text);
220            container.isotope({filter: selector});
221            setProjects();
222            return false;
223        });
224
225
226        function splitColumns() {
227            var winWidth = $(window).width(),
228                    columnNumb = 1;
229
230
231            if (winWidth > 1200) {
232                columnNumb = 5;
233            } else if (winWidth > 900) {
234                columnNumb = 4;
235            } else if (winWidth > 600) {
236                columnNumb = 3;
237            } else if (winWidth > 300) {
238                columnNumb = 1;
239            }
240
241            return columnNumb;
242        }
243
244        function setColumns() {
245            var winWidth = $(window).width(),
246                    columnNumb = splitColumns(),
247                    postWidth = Math.floor(winWidth / columnNumb);
248
249            container.find('.portfolio-item').each(function () {
250                $(this).css({
251                    width: postWidth + 'px'
252                });
253            });
254        }
255
256        function setProjects() {
257            setColumns();
258            /*container.isotope('reLayout');*/
259        }
260
261        container.imagesLoaded(function () {
262            setColumns();
263        });
264
265
266        $(window).bind('resize', function () {
267            setProjects();
268        });
269
270        
271
272
273    });
274});
275
276
277
278function home_parallax() {
279    $(window).scroll(function () {
280        var yPos = -($(window).scrollTop() / 2);
281
282        // Put together our final background position
283        var coords = '50% ' + yPos + 'px';
284
285        // Move the background
286        //$('.page-title-wrapper').css({ backgroundPosition: coords });
287        $('.home-parallax, .home-parallax2, .home-parallax3, .home-parallax4').css({backgroundPosition: coords}
287);
288
289    });
290}
291
292home_parallax();
293
294
295/*----------------------------------------------------*/
296/* MOBILE DETECT FUNCTION
297 /*----------------------------------------------------*/
298
299var isMobile = {
300    Android: function () {
301        return navigator.userAgent.match(/Android/i);
302    },
303    BlackBerry: function () {
304        return navigator.userAgent.match(/BlackBerry/i);
305    },
306    iOS: function () {
307        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
308    },
309    Opera: function () {
310        return navigator.userAgent.match(/Opera Mini/i);
311    },
312    Windows: function () {
313        return navigator.userAgent.match(/IEMobile/i);
314    },
315    any: function () {
316        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
317    }
318};
319
320
321
322
323
324
325/*----------------------------------------------------
326// CONTACT FORM WIDGET
327
328
329$("#contact form").submit(function ()
330{
331    var form = $(this);
332    var formParams = form.serialize();
333    $.ajax(
334            {
335                url: 'contact.php',
336                type: 'POST',
337                traditional: true,
338                data: formParams,
339                success: function (data) {
340                    var response = jQuery.parseJSON(data);
341                    if (response.success)
342                    {
343                        $('#contact form').slideUp().height('0');
344                        $('#contact .result').append(mailSuccess);
345                    }
346                    else
347                    {
348                        for (i = 0; i < response.errors.length; i++) {
349                            if (response.errors[i].error == 'empty_name') {
350                                mailResult.append(nameError);
351                            }
352                            if (response.errors[i].error == 'empty_email') {
353                                mailResult.append(emailError);
354                            }
355                            if (response.errors[i].error == 'empty_subject') {
356                                mailResult.append(subjectError);
357                            }
358                            if (response.errors[i].error == 'empty_message') {
359                                mailResult.append(messageError);
360                            }
361                            if (response.errors[i].error == 'invalid') {
362                                mailResult.append(invalidEmailError);
363                            }
364                        }
365                    }
366                }
367            })
368    return false;
369});
370
371
372----------------------------------------------------*/
373
374/*----------------------------------------------------*/
375// LOAD PROJECT
376/*----------------------------------------------------*/
377
378
379
380function initializePortfolio() {
381
382
383    $(window).bind('hashchange', function () {
384
385
386        hash = $(window.location).attr('hash');
387        var root = '#!' + folderName + '/';
388
389
390        var rootLength = root.length;
391
392
393        if (hash.substr(0, rootLength) != root) {
394            return;
395        } else {
396
397            var correction = 50;
398            var headerH = $('nav').outerHeight() + correction;
399            hash = $(window.location).attr('hash');
400            url = hash.replace(/[#\!]/g, '');
401
402
403
404            portfolioGrid.find('div.portfolio-item.current').children().removeClass('active');
405            portfolioGrid.find('div.portfolio-item.current').removeClass('current');
406
407
408
409
410            /* IF URL IS PASTED IN ADDRESS BAR AND REFRESHED */
411            if (pageRefresh == true && hash.substr(0, rootLength) == root) {
412
413                $('html,body').stop().animate({scrollTop: (projectContainer.offset().top - 20) + 'px'}, 2000, 'easeOutExpo', function () {
414                    loadProject();
415                });
416
417                /* CLICKING ON PORTFOLIO GRID OR THROUGH PROJECT NAVIGATION */
418            } else if (pageRefresh == false && hash.substr(0, rootLength) == root) {
419
420                $('html,body').stop().animate({/*scrollTop: (projectContainer.offset().top-headerH)+'px'*/}, 2000, 'easeOutExpo', function () {
421
422                    if (content == false) {
423                        loadProject();
424                    } else {
425                        projectContainer.animate({opacity: 0, height: wrapperHeight}, function () {
426                            loadProject();
427                        });
428                    }
429
430                    projectNav.fadeOut('100');
431                    exitProject.fadeOut('100');
432
433                });
434
435                /* USING BROWSER BACK BUTTON WITHOUT REFRESHING */
436            } else if (hash == '' && pageRefresh == false || hash.substr(0, rootLength) != root && pageRefresh == false || hash.substr(0, rootLength) != root && pageRefresh == true) {
437                scrollPostition = hash;
438                $('html,body').stop().animate({scrollTop: scrollPostition + 'px'}, 3000, function () {
439
440                    deleteProject();
441
442                });
443
444                /* USING BROWSER BACK BUTTON WITHOUT REFRESHING */
445            }
446
447
448
449            /* ADD ACTIVE CLASS TO CURRENTLY CLICKED PROJECT */
450            portfolioGrid.find('div.portfolio-item .portfolio a[href="#!' + url + '"]').parent().parent().addClass('current');
451            portfolioGrid.find('div.portfolio-item.current').find('.portfolio').addClass('active');
452
453
454
455        }
456
457    });
458    /* LOAD PROJECT */
459    function loadProject() {
460        loader.fadeIn().removeClass('projectError').html('');
461        if (!ajaxLoading) 
462		{
463            //ajaxLoading=true;			
464            img=$('[href*="'+url+'"]').find('img');			
465			src=img.attr('data-original');
466			src=src.replace('-380x315','');
467			title=img.attr('alt');
468			
469			htm='<div class="gcontent" id="ajaxpage">'
470				+'<div class="gallery-pop-up">'
471				+'<img src="'+src+'" class="attachment-photo-gallery-pop-up wp-post-image" alt="'+title+'" />'
472				+'<h3>'+title+'</h3></div></div>';
473			projectContainer.html(htm);	
474			ajaxLoading = false;
475			page = $('div#ajaxpage');
476			$('.flexslider').flexslider({
477				animation: "fade",
478				slideDirection: "horizontal",
479				slideshow: true,
480				slideshowSpeed: 3500,
481				animationDuration: 500,
482				directionNav: true,
483				controlNav: true
484
485			});
486			jQuery('#ajaxpage').waitForImages(function () {
487				hideLoader();
488			});
489			$(".container").fitVids();
490        }
491
492    }
493
494
495
496    function hideLoader() {
497        loader.fadeOut('fast', function () {
498            showProject();
499        });
500    }
501
502
503    function showProject() {
504        if (content == false) {
505            wrapperHeight = projectContainer.children('div#ajaxpage').outerHeight() + 'px';
506            projectContainer.animate({opacity: 1, height: wrapperHeight}, function () {
507                $(".container").fitVids();
508                scrollPostition = $('html,body').scrollTop();
509                projectNav.fadeIn();
510                exitProject.fadeIn();
511                content = true;
512
513            });
514
515        } else {
516            wrapperHeight = projectContainer.children('div#ajaxpage').outerHeight() + 'px';
517            projectContainer.animate({opacity: 1, height: wrapperHeight}, function () {
518                $(".container").fitVids();
519                scrollPostition = $('html,body').scrollTop();
520               
521                projectNav.fadeIn();
522                exitProject.fadeIn();
523
524            });
525        }
526
527
528        projectIndex = portfolioGrid.find('div.portfolio-item.current').index();
529        projectLength = $('div.portfolio-item .portfolio').length - 1;
530
531
532        if (projectIndex == projectLength) {
533
534            $('ul li#nextProject a').addClass('disabled');
535            $('ul li#prevProject a').removeClass('disabled');
536
537        } else if (projectIndex == 0) {
538
539            $('ul li#prevProject a').addClass('disabled');
540            $('ul li#nextProject a').removeClass('disabled');
541
542        } else {
543
544            $('ul li#nextProject a,ul li#prevProject a').removeClass('disabled');
545
546        }
547
548    }
549
550
551
552    function deleteProject(closeURL) {
553        projectNav.fadeOut(100);
554        exitProject.fadeOut(100);
555        projectContainer.animate({opacity: 0, height: '0px'});
556        projectContainer.empty();
557
558        if (typeof closeURL != 'undefined' && closeURL != '') {
559            location = '#_';
560        }
561        portfolioGrid.find('div.portfolio-item.current').children().removeClass('active');
562        portfolioGrid.find('div.portfolio-item.current').removeClass('current');
563    }
564
565
566    /* LINKING TO PREIOUS AND NEXT PROJECT VIA PROJECT NAVIGATION */
567    $('#nextProject a').on('click', function () {
568
569        current = portfolioGrid.find('.portfolio-item.current');
570        next = current.next('.portfolio-item');
571        target = $(next).children('div').children('a').attr('href');
572        $(this).attr('href', target);
573
574
575        if (next.length === 0) {
576            return false;
577        }
578
579        current.removeClass('current');
580        current.children().removeClass('active');
581        next.addClass('current');
582        next.children().addClass('active');
583
584
585
586    });
587
588
589
590    $('#prevProject a').on('click', function () {
591
592        current = portfolioGrid.find('.portfolio-item.current');
593        prev = current.prev('.portfolio-item');
594        target = $(prev).children('div').children('a').attr('href');
595        $(this).attr('href', target);
596
597
598        if (prev.length === 0) {
599            return false;
600        }
601
602        current.removeClass('current');
603        current.children().removeClass('active');
604        prev.addClass('current');
605        prev.children().addClass('active');
606
607    });
608
609
610    /* CLOSE PROJECT */
611    $('#closeProject a').on('click', function () {
612
613        deleteProject($(this).attr('href'));
614        portfolioGrid.find('div.portfolio-item.current').children().removeClass('active');
615        loader.fadeOut();
616        return false;
617
618    });
619
620
621
622    pageRefresh = false;
623
624
625}
626;
627
628
629
630
631//BEGIN DOCUMENT.READY FUNCTION
632$(document).ready(function ()
633{
634    init();
635    initializePortfolio();
636    rnr_shortcodes();
637
638
639    /* ------------------------------------------------------------------------ */
640    /* BACK TO TOP 
641     /* ------------------------------------------------------------------------ */
642
643    $(window).scroll(function () {
644        if ($(window).scrollTop() > 200) {
645            $("#back-to-top").fadeIn(200);
646        } else {
647            $("#back-to-top").fadeOut(200);
648        }
649    });
650
651    $('#back-to-top, .back-to-top').click(function () {
652        $('html, body').animate({scrollTop: 0}, '800');
653        return false;
654    });
655
656
657
658    /*----------------------------------------------------*/
659// ADD PRETTYPHOTO
660    /*----------------------------------------------------*/
661  $("a[data-rel^='prettyPhoto']").prettyPhoto();
662
663
664    /*----------------------------------------------------*/
665// ADD VIDEOS TO FIT ANY SCREEN
666    /*----------------------------------------------------*/
667    $(".container").fitVids();
668
669
670    /*----------------------------------------------------*/
671// PRELOADER CALLING
672    /*----------------------------------------------------*/
673    $("body.onepage").queryLoader2({
674        barColor: "#111111",
675        backgroundColor: "#ffffff",
676        percentage: true,
677        barHeight: 3,
678        completeAnimation: "fade",
679        minimumTime: 200,
680	onComplete:function(){
681		//welcomepopup_init();
682	}
683    });
684
685
686
687
688    /*----------------------------------------------------*/
689// MENU SMOOTH SCROLLING
690    /*----------------------------------------------------*/
691    $(".main-menu a, .logo a, .home-logo-text a, .home-logo a, .scroll-to").bind('click', function (event) {
692
693        $(".main-menu a").removeClass('active');
694        $(this).addClass('active');
695        var headerH = $('.navigation').outerHeight();
696
697        $("html, body").animate({
698            scrollTop: $($(this).attr("href")).offset().top - headerH + 'px'
699        }, {
700            duration: 1200,
701            easing: "easeInOutExpo"
702        });
703
704        event.preventDefault();
705    });
706
707
708    /*----------------------------------------------------*/
709// PARALLAX CALLING
710    /*----------------------------------------------------*/
711
712    $(window).bind('load', function () {
713        parallaxInit();
714    });
715
716    function parallaxInit() {
717        testMobile = isMobile.any();
718
719        if (testMobile == null)
720        {
721            $('.parallax .bg1').parallax("50%", 0.6);
722            $('.parallax .bg2').parallax("50%", 0.6);
723            $('.parallax .bg3').parallax("50%", 0.6);
724            $('.parallax .bg4').parallax("50%", 0.6);
725            $('.parallax .bg5').parallax("50%", 0.6);
726            $('.parallax .bg6').parallax("50%", 0.6);
727            $('.parallax .bg7').parallax("50%", 0.6);
728            $('.parallax .bg8').parallax("50%", 0.6);
729            $('.parallax .bg9').parallax("50%", 0.6);
730        }
731    }
732
733
734   jQuery('.milestone-counter').appear(function () {
735        $('.milestone-counter').each(function () {
736            dataperc = $(this).attr('data-perc'),
737                    $(this).find('.milestone-count').delay(6000).countTo({
738                from: 0,
739                to: dataperc,
740                speed: 2000,
741                refreshInterval: 100
742            });
743        });
744    });
745    parallaxInit();
746
747    //img overlays
748    $('.team-thumb').on('mouseover', function ()
749    {
750        var overlay = $(this).find('.team-overlay');
751        var content = $(this).find('.overlay-content');
752
753        overlay.stop(true, true).fadeIn(600);
754        content.stop().animate({'top': "40%",
755            opacity: 1}, 600);
756
757    }).on('mouseleave', function ()
758    {
759        var overlay = $(this).find('.team-overlay');
760        var content = $(this).find('.overlay-content');
761
762        content.stop().animate({'top': "60%",
763            opacity: 0}, 300, function () {
764            content.css('top', "20%")
765        });
766
767        overlay.fadeOut(300);
768
769    });
770
771});
772//END DOCUMENT.READY FUNCTION
773
774
775
776// BEGIN WINDOW.LOAD FUNCTION		
777$(window).load(function () {
778
779    $('#load').fadeOut().remove();
780    $(window).trigger('hashchange');
781    $(window).trigger('resize');
782    $('[data-spy="scroll"]').each(function () {
783        var $spy = $(this).scrollspy('refresh');
784
785    });
786
787    /* ------------------------------------------------------------------------ */
788    /* FLEX SLIDER */
789    /* ------------------------------------------------------------------------ */
790
791    if ($.browser.safari) {
792        $('.flexslider').flexslider({
793            animation: "slide",
794            direction: "horizontal",
795            slideshow: false,
796            slideshowSpeed: 3500,
797            animationDuration: 500,
798            directionNav: true,
799            controlNav: false,
800            useCSS: false
801        });
802    }
803    $('.flexslider').flexslider({
804        animation: "slide",
805        direction: "horizontal",
806        slideshow: false,
807        slideshowSpeed: 3500,
808        animationDuration: 500,
809        directionNav: true,
810        controlNav: false
811
812    });
813
814    /* ------------------------------------------------------------------------ */
815    /* Skillbar */
816    /* ------------------------------------------------------------------------ */
817    jQuery('.skillbar').appear(function () {
818        $('.skillbar').each(function () {
819            dataperc = $(this).attr('data-perc'),
820                    $(this).find('.skill-percentage').animate({"width": dataperc + "%"}, dataperc * 10);
821        });
822    });
823
824    /* ------------------------------------------------------------------------ */
825    /* TEXT FITTING FOR HOME STYLING 2 */
826    /* ------------------------------------------------------------------------ */
827    $('.home-slide-content').fitText(1.2);
828    $('.fittext-content').fitText(2);
829
830    /* ------------------------------------------------------------------------ */
831    /* STICKY NAVIGATION */
832    /* ------------------------------------------------------------------------ */
833
834    $("nav.sticky-nav").sticky({topSpacing: 0, className: 'sticky', wrapperClassName: 'main-menu-wrapper'});
835
836
837    if ($(window).scrollTop() > $(window).height()) {
838        $('nav.transparent').addClass('scroll');
839    } else {
840        $('nav.transparent').removeClass('scroll');
841    }
842
843    $(window).on("scroll", function () {
844        var winHeight = $(window).height();
845        var windowWidth = $(window).width();
846        var windowScroll = $(window).scrollTop();
847        var home_height = $('#home').outerHeight();
848
849        if ($(window).scrollTop() > home_height) {
850            $('nav.transparent').addClass('scroll');
851        } else {
852            $('nav.transparent').removeClass('scroll');
853        }
854
855
856    });
857
858    /* ------------------------------------------------------------------------ */
859    /* SELECTNAV - A DROPDOWN NAVIGATION FOR SMALL SCREENS */
860    /* ------------------------------------------------------------------------ */
861    selectnav('nav', {
862        nested: true,
863        indent: '-'
864    });
865
866
867
868});
869// END OF WINDOW.LOAD FUNCTION
870
871
872$('#home-slider.flexslider').flexslider({
873    animation: "swing",
874    direction: "vertical",
875    slideshow: true,
876    slideshowSpeed: 3500,
877    animationDuration: 1000,
878    directionNav: false,
879    controlNav: true,
880    smootheHeight: true,
881    after: function (slider) {
882        slider.removeClass('loading');
883    }
884
885});
886
887(function ($) {
888    $.fn.countTo = function (options) {
889        // merge the default plugin settings with the custom options
890        options = $.extend({}, $.fn.countTo.defaults, options || {});
891
892        // how many times to update the value, and how much to increment the value on each update
893        var loops = Math.ceil(options.speed / options.refreshInterval),
894                increment = (options.to - options.from) / loops;
895
896        return $(this).delay(1000).each(function () {
897            var _this = this,
898                    loopCount = 0,
899                    value = options.from,
900                    interval = setInterval(updateTimer, options.refreshInterval);
901
902            function updateTimer() {
903                value += increment;
904                loopCount++;
905                $(_this).html(value.toFixed(options.decimals));
906
907                if (typeof (options.onUpdate) == 'function') {
908                    options.onUpdate.call(_this, value);
909                }
910
911                if (loopCount >= loops) {
912                    clearInterval(interval);
913                    value = options.to;
914
915                    if (typeof (options.onComplete) == 'function') {
916                        options.onComplete.call(_this, value);
917                    }
918                }
919            }
920        });
921    };
922
923    $.fn.countTo.defaults = {
924        from: 0, // the number the element should start at
925        to: 100, // the number the element should end at
926        speed: 1000, // how long it should take to count between the target numbers
927        refreshInterval: 100, // how often the element should be updated
928        decimals: 0, // the number of decimal places to show
929        onUpdate: null, // callback method for every time the element is updated,
930        onComplete: null, // callback method for when the element finishes updating
931    };
932})(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.