PageSourceSearch

https://www.gordes-village.com/js/volcanno.include.js

js gordes-village.com collected 2026-10-02 07:42:18 UTC 59,218 bytes, 3,002 lines download raw bytes

1"use strict";
2
3/*
4
5 * PIXEL INDUSTRY INCLUDE FILE
6
7 * 
8
9 * Includes functions necessary for proper theme work and some helper functions.
10
11 * 
12
13 */
14
15/**
16
17 * Funftion for converting to SVG
18
19 * @param void
20
21 * @return void
22
23 */
24
25
26
27function convertToSVG() {
28
29    jQuery(".svg-animate").each(function () {
30
31        var $img = jQuery(this);
32
33        var imgID = $img.attr("id");
34
35        var imgClass = $img.attr("class");
36
37        var imgURL = $img.attr("src");
38
39
40
41        jQuery.get(imgURL, function (data) {
42
43            // Get the SVG tag, ignore the rest
44
45            var $svg = jQuery(data).find("svg");
46
47
48
49            // Add replaced image's ID to the new SVG
50
51            if (typeof imgID !== "undefined") {
52
53                $svg = $svg.attr("id", imgID);
54
55            }
56
57            // Add replaced image's classes to the new SVG
58
59            if (typeof imgClass !== "undefined") {
60
61                $svg = $svg.attr("class", imgClass + " replaced-svg");
62
63            }
64
65
66
67            // Remove any invalid XML tags as per http://validator.w3.org
68
69            $svg = $svg.removeAttr("xmlns:a");
70
71
72
73            // Replace image with new SVG
74
75            $img.replaceWith($svg);
76
77
78
79        }, "xml");
80
81
82
83    });
84
85}
86
87
88
89
90
91$(window).on("load", function () {
92
93
94
95    convertToSVG();
96
97
98    $("#loading-status").delay(500).fadeOut();
99
100    $("#loader").delay(1000).fadeOut("slow");
101
102    setTimeout(function () {
103
104        VolcannoInclude.triggerAnimation();
105
106    }, 1000);
107
108});
109
110
111
112/**
113
114 * Runs on both load and resize
115
116 */
117
118
119
120jQuery(window).on("load resize", function () {
121
122
123
124    if (
125
126            (navigator.userAgent.match(/iPad/i)) && (navigator.userAgent.match(/iPad/i) !== null)
127
128            || (navigator.userAgent.match(/iPhone/i)) && (navigator.userAgent.match(/iPhone/i) !== null)
129
130            || (navigator.userAgent.match(/Android/i)) && (navigator.userAgent.match(/Android/i) !== null)
131
132            || (navigator.userAgent.match(/BlackBerry/i)) && (navigator.userAgent.match(/BlackBerry/i) !== null)
133
134            || (navigator.userAgent.match(/iemobile/i)) && (navigator.userAgent.match(/iemobile/i) !== null)
135
136            )
137
138    {
139
140        jQuery(".header-wrapper.header-transparent").css({"position": "relative", "padding-top": "15px"});
141
142        jQuery(".header-wrapper.header-style-02").css({"position": "relative"});
143
144    }
145
146
147
148    /**
149
150     * Navigation
151
152     */
153
154    var windowWidth = jQuery(window).width();
155
156
157
158    if (!VolcannoInclude.isTouchDevice() && (windowWidth >= 1200)) {
159
160        jQuery(".navbar-nav > li.dropdown").addClass("hover");
161
162    } else {
163
164        jQuery(".navbar-nav > li.dropdown").removeClass("hover");
165
166    }
167
168});
169
170
171
172(jQuery)(function ($) {
173
174    /**
175
176     * Search animation
177
178     */
179
180    if (!VolcannoInclude.isTouchDevice()) {
181
182        jQuery("#header").on("click", "#search", function (e) {
183
184            e.preventDefault();
185
186
187
188            jQuery(this).find("#m_search").slideDown(200).focus();
189
190        });
191
192
193
194        jQuery("#m_search").focusout(function (e) {
195
196            jQuery(e.target).slideUp();
197
198        });
199
200    }
201
202    /**
203
204     * Accordion
205
206     */
207
208    (function () {
209
210        "use strict";
211
212        jQuery(".accordion").on("click", ".title", function (event) {
213
214            event.preventDefault();
215
216            jQuery(this).siblings(".accordion .active").next().slideUp("normal");
217
218            jQuery(this).siblings(".accordion .title").removeClass("active");
219
220
221
222            if (jQuery(this).next().is(":hidden") === true) {
223
224                jQuery(this).next().slideDown("normal");
225
226                jQuery(this).addClass("active");
227
228            }
229
230        });
231
232        jQuery(".accordion .content").hide();
233
234        jQuery(".accordion .active").next().slideDown("normal");
235
236    })();
237
238
239
240
241
242
243
244    /**
245
246     * Content tabs
247
248     */
249
250    (function () {
251
252        jQuery(".tabs").each(function () {
253
254            var $tabLis = jQuery(this).find("li");
255
256            var $tabContent = jQuery(this).next(".tab-content-wrap").find(".tab-content");
257
258
259
260            $tabContent.hide();
261
262            $tabLis.first().addClass("active").show();
263
264            $tabContent.first().show();
265
266        });
267
268
269
270        jQuery(".tabs").on("click", "li", function (e) {
271
272            var $this = jQuery(this);
273
274            var parentUL = $this.parent();
275
276            var tabContent = parentUL.next(".tab-content-wrap");
277
278
279
280            parentUL.children().removeClass("active");
281
282            $this.addClass("active");
283
284
285
286            tabContent.find(".tab-content").hide();
287
288            var showById = jQuery($this.find("a").attr("href"));
289
290            tabContent.find(showById).fadeIn();
291
292
293
294            e.preventDefault();
295
296        });
297
298    })();
299
300
301
302    if (VolcannoInclude.isTouchDevice()) {
303
304        jQuery("ul.dropdown-menu [data-toggle=dropdown]").on("click", function (event) {
305
306            // Avoid following the href location when clicking
307
308            event.preventDefault();
309
310            // Avoid having the menu to close when clicking
311
312            event.stopPropagation();
313
314            // If a menu is already open we close it
315
316            jQuery(this).closest(".dropdown-submenu").toggleClass("open");
317
318        });
319
320    }
321
322
323
324    // Init scripts on page load
325
326    VolcannoInclude.init();
327
328}
328);
329
330
331
332
333
334var VolcannoInclude = {
335
336    /**
337
338     * Init function
339
340     * @param void
341
342     * @return void
343
344     */
345
346    init: function () {
347
348        VolcannoInclude.scrollToTop();
349
350        VolcannoInclude.smoothScroll();
351
352        VolcannoInclude.placeholderFix();
353
354
355
356        if (jQuery(".chart-container").length) {
357
358            VolcannoInclude.chartSize();
359
360        }
361
362
363
364        jQuery(window).on("resize", function () {
365
366            if (jQuery(".chart-container").length) {
367
368                VolcannoInclude.chartSize();
369
370            }
371
372        });
373
374
375
376        if (VolcannoInclude.isTouchDevice() || VolcannoInclude.isIOSDevice()) {
377
378            VolcannoInclude.wpmlDropdownShow();
379
380        }
381
382
383
384        if (!VolcannoInclude.isTouchDevice() || !VolcannoInclude.isIOSDevice()) {
385
386            jQuery(window).on("load resize", function () {
387
388                var window_y = jQuery(document).scrollTop();
389
390                if (window_y > 0) {
391
392                    VolcannoInclude.setStaticHeader(window_y);
393
394                }
395
396                var header_height_02 = jQuery(".header-wrapper.header-style-02").height();
397
398
399
400                jQuery(".header-wrapper.header-style-02").next().css("margin-top", header_height_02);
401
402                jQuery(".header-wrapper.header-style-02.header-negative-bottom").next().css("margin-top", header_height_02 - 26);
403
404            });
405
406
407
408            var header_height = jQuery(".header-wrapper.header-transparent").height();
409
410
411
412            if (jQuery(".header-wrapper.header-transparent").next().hasClass("page-title")) {
413
414                jQuery(".header-wrapper.header-transparent").next().css("padding-top", header_height + 60);
415
416            }
417
418
419
420            jQuery(window).on("scroll", function () {
421
422                var position = jQuery(this).scrollTop();
423
424                VolcannoInclude.setStaticHeader(position);
425
426            });
427
428        }
429
430
431
432
433
434    },
435
436    /**
437
438     * Set static header
439
440     * @param position
441
442     * @return void
443
444     */
445
446    setStaticHeader: function (position) {
447
448        var header_height = jQuery(".header-wrapper.header-transparent").height();
449
450        var header_height_02 = jQuery(".header-wrapper.header-style-02").height();
451
452        var top_bar_height = jQuery(".top-bar-wrapper").outerHeight();
453
454
455
456        if (position > header_height_02) {
457
458            jQuery(".header-wrapper.header-style-02").addClass("solid-color");
459
460        } else {
461
462            jQuery(".header-wrapper.header-style-02").removeClass("solid-color");
463
464        }
465
466
467
468        if (position > header_height) {
469
470            jQuery(".header-wrapper.header-transparent").addClass("solid-color");
471            jQuery("#header").removeClass("bgtop");
472
473        } else {
474
475            jQuery(".header-wrapper.header-transparent").removeClass("solid-color");
476            jQuery("#header").addClass("bgtop");
477
478        }
479
480
481
482        if (position > header_height) {
483
484
485
486            jQuery(".header-wrapper").stop().animate({
487
488                top: -top_bar_height
489
490            }, 50);
491
492        } else {
493
494            jQuery(".header-wrapper").stop().animate({
495
496                top: "0px"
497
498            }, 50);
499
500        }
501
502    },
503
504    /**
505
506     * Trigger animation function
507
508     */
509
510    triggerAnimation: function () {
511
512        if (!VolcannoInclude.isTouchDevice()) {
513
514
515
516            // ANIMATED CONTENT
517
518            if (jQuery(".animated")[0]) {
519
520                jQuery(".animated").css("opacity", "0");
521
522            }
523
524
525
526            var currentRow = -1;
527
528            var counter = 1;
529
530
531
532            jQuery(".triggerAnimation").waypoint(function () {
533
534                var $this = jQuery(this);
535
536                var rowIndex = jQuery(".row").index(jQuery(this).closest(".row"));
537
538                if (rowIndex !== currentRow) {
539
540                    currentRow = rowIndex;
541
542                    jQuery(".row").eq(rowIndex).find(".triggerAnimation").each(function (i, val) {
543
544                        var element = jQuery(this);
545
546                        setTimeout(function () {
547
548                            var animation = element.attr("data-animate");
549
550                            element.css("opacity", "1");
551
552                            element.addClass("animated " + animation);
553
554                        }, (i * 500));
555
556                    });
557
558
559
560                }
561
562
563
564                //counter++;
565
566
567
568            },
569
570                    {
571
572                        offset: "80%",
573
574                        triggerOnce: true
575
576                    }
577
578            );
579
580
581
582        }
583
584    },
585
586    /**
587
588     * Contact forms AJAX submit
589
590     * @param id
591
592     * @return data
593
594     */
595
596    contactFormAjax: function (id) {
597
598        // Show recaptcha on form click
599
600        $("form").on("click", function (event) {
601
602            $(".g-recaptcha", this).addClass("recaptcha-visible");
603
604        });
605
606        // Forms
607
608        switch (id) {
609
610            // Contact us form
611
612            case "contact-us":
613
614                $(".wpcf7.wpcf7-" + id + " .wpcf7-submit").on("click", function (event) {
615
616                    event.preventDefault();
617
618                    var name = $("#contact-name").val();
619
620                    var email = $("#contact-email").val();
621
622                    var phone = $("#contact-phone").val();
623
624                    var subject = $("#contact-subject").val();
625
626                    var message = $("#contact-message").val();
627
628                    var recaptcha = grecaptcha.getResponse($("recaptcha_response")[0]);
629
630                    var form_data = new Array({"Name": name, "Email": email, "Phone": phone, "Subject": subject, "Message": message, "Recaptcha": recaptcha});
631
632
633
634                    $.ajax({
635
636                        type: "POST",
637
638                        url: "contact.php",
639
640                        data: ({"action": id, "form_data": form_data})
641
642                    }).done(function (data) {
643
644                        if (data === "Message sent succesfully.") {
645
646                            $(".wpcf7.wpcf7-" + id + ' input:not([type="submit"])').each(function (index, el) {
647
648                                $(this).val("");
649
650                            });
651
652
653
654                            $(".wpcf7.wpcf7-" + id + ' textarea').each(function (index, el) {
655
656                                $(this).val("");
657
658                            });
659
660
661
662                            grecaptcha.reset();
663
664                        }
665
666                        alert(data);
667
668                    });
669
670                });
671
672                break;
673
674            case "contact-us-2":
675
676                $(".wpcf7.wpcf7-" + id + " .wpcf7-submit").on("click", function (event) {
677
678                    event.preventDefault();
679
680                    var name = $("#contact-name-2").val();
681
682                    var email = $("#contact-email-2").val();
683
684                    var phone = $("#contact-phone-2").val();
685
686                    var subject = $("#contact-subject-2").val();
687
688                    var message = $("#contact-message-2").val();
689
690                    var recaptcha = grecaptcha.getResponse($("recaptcha_response")[0]);
691
692                    var form_data = new Array({"Name": name, "Email": email, "Phone": phone, "Subject": subject, "Message": message, "Recaptcha": recaptcha});
693
694
695
696                    $.ajax({
697
698                        type: "POST",
699
700                        url: "contact.php",
701
702                        data: ({"action": id, "form_data": form_data})
703
704                    }).done(function (data) {
705
706                        if (data === "Message sent succesfully.") {
707
708                            $(".wpcf7.wpcf7-" + id + ' input:not([type="submit"])').each(function (index, el) {
709
710                                $(this).val("");
711
712                            });
713
714
715
716                            $(".wpcf7.wpcf7-" + id + ' textarea').each(function (index, el) {
717
718                                $(this).val("");
719
720                            });
721
722
723
724                            grecaptcha.reset();
725
726                        }
727
728                        alert(data);
729
730                    });
731
732                });
733
734                break;
735
736                // Job application form
737
738            case "job-application":
739
740                $(".wpcf7.wpcf7-" + id + " .wpcf7-submit").on("click", function (event) {
741
742                    event.preventDefault();
743
744                    var firstname = $("#job-listing-name").val();
745
746                    var lastname = $("#job-listing-last-name").val();
747
748                    var email = $("#job-listing-email").val();
749
750                    var address = $("#job-listing-address").val();
751
752                    var city = $("#job-listing-city").val();
753
754                    var zip = $("#job-listing-zip").val();
755
756                    var state = $("#job-listing-state").val();
757
758                    var country = $("#job-listing-country").val();
759
760                    var message = $("#job-listing-message").val();
761
762                    var recaptcha = grecaptcha.getResponse($("recaptcha_response")[0]);
763
764                    var form_data = new Array({
765
766                        "First Name": firstname,
767
768                        "Last Name": lastname,
769
770                        "Email": email,
771
772                        "Address": address,
773
774                        "City": city,
775
776                        "Zip": zip,
777
778                        "State": state,
779
780                        "Country": country,
781
782                        "Message": message,
783
784                        "Recaptcha": recaptcha
785
786                    });
787
788
789
790                    $.ajax({
791
792                        type: "POST",
793
794                        url: "contact.php",
795
796                        data: ({"action": id, "form_data": form_data})
797
798                    }).done(function (data) {
799
800                        if (data === "Message sent succesfully.") {
801
802                            $(".wpcf7.wpcf7-" + id + ' input:not([type="submit"])').each(function (index, el) {
803
804                                $(this).val("");
805
806                            });
807
808
809
810                            $(".wpcf7.wpcf7-" + id + ' textarea').each(function (index, el) {
811
812                                $(this).val("");
813
814                            });
815
816                            grecaptcha.reset();
817
818                        }
819
820                        alert(data);
821
822                    });
823
824                });
825
826                break;
827
828                // Request a quote form
829
830            case "request-quote":
831
832                $(".wpcf7.wpcf7-" + id + " .wpcf7-submit").on("click", function (event) {
833
834                    event.preventDefault();
835
836                    var firstname = $("#quote-name").val();
837
838                    var lastname = $("#quote-last-name").val();
839
840                    var phone = $("#quote-phone").val();
841
842                    var email = $("#quote-email").val();
843
844                    var recaptcha = grecaptcha.getResponse($("recaptcha_response")[0]);
845
846                    var form_data = new Array({"First Name": firstname, "Last Name": lastname, "Phone": phone, "Email": email, "Recaptcha": recaptcha});
847
848
849
850                    $.ajax({
851
852                        type: "POST",
853
854                        url: "contact.php",
855
856                        data: ({"action": id, "form_data": form_data})
857
858                    }).done(function (data) {
859
860                        if (data === "Message sent succesfully.") {
861
862                            $(".wpcf7.wpcf7-" + id + ' input:not([type="submit"])').each(function (index, el) {
863
864                                $(this).val("");
865
866                                grecaptcha.reset();
867
868                            });
869
870                        }
871
872                        alert(data);
873
874                    });
875
876                });
877
878                break;
879
880                // Newsletter form
881
882            case "newsletter":
883
884                $(".newsletter-widget .submit").on("click", function (event) {
885
886                    event.preventDefault();
887
888                    var email = $(".newsletter-widget .email").val();
889
890                    var form_data = new Array({"Email": email});
891
892
893
894                    $.ajax({
895
896                        type: "POST",
897
898                        url: "contact.php",
899
900                        data: ({"action": id, "form_data": form_data})
901
902                    }).done(function (data) {
903
904                        if (data === "Message sent succesfully.") {
905
906                            $('.newsletter-widget input:not([type="submit"])').each(function (index, el) {
907
908                                $(this).val("");
909
910                            });
911
912                        }
913
914                        alert(data);
915
916                    });
917
918                });
919
920                break;
921
922            case "comment-form":
923
924                $("." + id + " #comment-reply").on("click", function (event) {
925
926                    event.preventDefault();
927
928                    var name = $("#comment-name").val();
929
930                    var email = $("#comment-email").val();
931
932                    var message = $("#comment-message").val();
933
934                    var recaptcha = grecaptcha.getResponse($("recaptcha_response")[0]);
935
936                    var form_data = new Array({"Name": name, "Email": email, "Message": message, "Recaptcha": recaptcha});
937
938
939
940                    $.ajax({
941
942                        type: "POST",
943
944                        url: "contact.php",
945
946                        data: ({"action": id, "form_data": form_data})
947
948                    }).done(function (data) {
949
950                        if (data === "Message sent succesfully.") {
951
952                            $('.' + id + ' input:not([type="submit"])').each(function (index, el) {
953
954                                $(this).val("");
955
956                            });
957
958
959
960                            $("." + id + ' textarea').each(function (index, el) {
961
962                                $(this).val("");
963
964                            });
965
966
967
968                            grecaptcha.reset();
969
970                        }
971
972                        alert(data);
973
974                    });
975
976                });
977
978                break;
979
980            default:
981
982                // statements_def
983
984                break;
985
986        }
987
988    },
989
990    /**
991
992     * Function to check is user is on touch device
993
994     * @param void
995
996     * @return bool
997
998     */
999
1000    isTouchDevice: function () {
1001
1002        return Modernizr.touch;
1003
1004    },
1005
1006    /**
1007
1008     * Function to check is user is on iOS Device
1009
1010     * @param void
1011
1012     * @return bool
1013
1014     */
1015
1016    isIOSDevice: function () {
1017
1018        if (
1019
1020                (navigator.userAgent.match(/iPad/i)) && (navigator.userAgent.match(/iPad/i) !== null)
1021
1022                || (navigator.userAgent.match(/iPhone/i)) && (navigator.userAgent.match(/iPhone/i) !== null)
1023
1024                || (navigator.userAgent.match(/Android/i)) && (navigator.userAgent.match(/Android/i) !== null)
1025
1026                || (navigator.userAgent.match(/BlackBerry/i)) && (navigator.userAgent.match(/BlackBerry/i) !== null)
1027
1028                || (navigator.userAgent.match(/iemobile/i)) && (navigator.userAgent.match(/iemobile/i) !== null)
1029
1030                )
1031
1032        {
1033
1034            return true;
1035
1036        } else {
1037
1038            return false;
1039
1040        }
1041
1042    },
1043
1044    /**
1045
1046     * WPML Multilanguage Dropdown on Click on touch devices
1047
1048     * @param void
1049
1050     * @return void
1051
1052     */
1053
1054    wpmlDropdownShow: function () {
1055
1056        jQuery(".wpml-languages").on("click", function () {
1057
1058            if (!jQuery(this).hasClass("on-click-wpml-dropdown")) {
1059
1060                jQuery(this).removeClass("close-wpml-dropdown");
1061
1062                jQuery(this).addClass("on-click-wpml-dropdown");
1063
1064            } else {
1065
1066                jQuery(this).removeClass("on-click-wpml-dropdown").addClass("close-wpml-dropdown");
1067
1068            }
1069
1070        });
1071
1072    },
1073
1074    /**
1075
1076     * Function for scrool to top
1077
1078     * @param void
1079
1080     * @return void
1081
1082     */
1083
1084    scrollToTop: function () {
1085
1086        jQuery(window).on("scroll", function () {
1087
1088            if (jQuery(this).scrollTop() > 100) {
1089
1090                jQuery(".scroll-up").fadeIn();
1091
1092            } else {
1093
1094                jQuery(".scroll-up").fadeOut();
1095
1096            }
1097
1098        });
1099
1100
1101
1102        jQuery(".scroll-up").on("click", function () {
1103
1104            jQuery("html, body").animate({
1105
1106                scrollTop: 0
1107
1108            }, 600, jQuery.bez([1, 0, 0, 1]));
1109
1110            return false;
1111
1112        });
1113
1114    },
1115
1116    /**
1117
1118     * Function for smooth scroll
1119
1120     * @param void
1121
1122     * @return void
1123
1124     */
1125
1126    smoothScroll: function () {
1127
1128        var $window = jQuery(window);        //Window object
1129
1130        var scrollTime = 0.5;           //Scroll time
1131
1132        var scrollDistance = 380;       //Distance. Use smaller value for shorter scroll and greater value for longer scroll
1133
1134
1135
1136        $window.on("mousewheel DOMMouseScroll", function (event) {
1137
1138
1139
1140            event.preventDefault();
1141
1142
1143
1144            var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
1145
1146            var scrollTop = $window.scrollTop();
1147
1148            var finalScroll = scrollTop - parseInt(delta * scrollDistance);
1149
1150
1151
1152            TweenMax.to($window, scrollTime, {
1153
1154                scrollTo: {y: finalScroll, autoKill: true},
1155
1156                ease: Power1.easeOut, //For more easing functions see http://api.greensock.com/js/com/greensock/easing/package-detail.html
1157
1158                autoKill: true,
1159
1160                overwrite: 5
1161
1162            });
1163
1164
1165
1166        });
1167
1168    },
1169
1170    /**
1171
1172     * Function for old browsers placeholder fix
1173
1174     * @param void
1175
1176     * @return void
1177
1178     */
1179
1180    placeholderFix: function () {
1181
1182        jQuery("input, textarea").placeholder();
1183
1184    },
1185
1186    /**
1187
1188     * Function for social stream feed
1189
1190     * @param id
1191
1192     * @return void
1193
1194     */
1195
1196    socialstreamInit: function (id) {
1197
1198        switch (id) {
1199
1200            // DeviantArt Feed
1201
1202            case "deviant-feed":
1203
1204                jQuery(".deviant-feed").socialstream({
1205
1206                    socialnetwork: "deviantart",
1207
1208                    limit: 9,
1209
1210                    username: "pixel-industry"
1211
1212                });
1213
1214                break;
1215
1216                // Instagram Feed
1217
1218            case "instagram-feed":
1219
1220                jQuery(".instagram-feed").socialstream({
1221
1222                    socialnetwork: "instagram",
1223
1224                    limit: 9,
1225
1226                    username: "royaltyplate",
1227
1228                    accessToken: "3315219258.4b0afec.8788057cf36948e98d27353bee5a77d9" // required
1229
1230                });
1231
1232                break;
1233
1234                // Pinterest Feed
1235
1236            case "pinterest-feed":
1237
1238                jQuery(".pinterest-feed").socialstream({
1239
1240                    socialnetwork: "pinterest",
1241
1242                    limit: 9,
1243
1244                    username: "vmrkela"
1245
1246                });
1247
1248                break;
1249
1250                // Flickr Feed
1251
1252            case "flickr-feed":
1253
1254                jQuery(".flickr-feed").socialstream({
1255
1256                    socialnetwork: "flickr",
1257
1258                    limit: 9,
1259
1260                    username: "Mrky1"
1261
1262                });
1263
1264                break;
1265
1266                // Dribbble Feed
1267
1268            case "dribbble-feed":
1269
1270                jQuery(".dribbble-feed").socialstream({
1271
1272                    socialnetwork: "dribbble",
1273
1274                    limit: 9,
1275
1276                    username: "pixel_industry",
1277
1278                    accessToken: "a490d57b3dd90b244b5cc1884e12cad3533a25383031089c393124b5d0d1f008" // required
1279
1280                });
1281
1282                break;
1283
1284                // YouTube Feed
1285
1286            case "youtube-feed":
1287
1288                jQuery(".youtube-feed").socialstream({
1289
1290                    socialnetwork: "youtube",
1291
1292                    limit: 9,
1293
1294                    username: "UC3QSpZ0E8wVfD90cFwmhN_w",
1295
1296                    apikey: "AIzaSyAgNhb_1myuXlxLwmhhNigOVFr8ET4XSCA" // REQUIRED - enter your Youtube v3 API key
1297
1298                });
1299
1300                break;
1301
1302                // News Feed (RSS Feed)
1303
1304            case "newsfeed":
1305
1306                jQuery(".newsfeed").socialstream({
1307
1308                    socialnetwork: "newsfeed",
1309
1310                    limit: 9,
1311
1312                    username: " http://feeds.feedburner.com/webdesignerdepot?format=xml"
1313
1314                });
1315
1316                break;
1317
1318            default:
1319
1320                // statements_def
1321
1322                break;
1323
1324        }
1325
1326    },
1327
1328    /**
1329
1330     * Function for tweetscroll
1331
1332     * @param id
1333
1334     * @return void
1335
1336     */
1337
1338    tweetscrollInit: function (id) {
1339
1340        switch (id) {
1341
1342            // TweetScroll logo
1343
1344            case "tweet-logo":
1345
1346                jQuery(".tweet-logo").tweetscroll({
1347
1348                    username: "pixel_industry",
1349
1350                    limit: 20,
1351
1352                    replies: true,
1353
1354                    position: "append",
1355
1356                    animation: "fade",
1357
1358                    date_format: "style1",
1359
1360                    visible_tweets: 2,
1361
1362                    request_url: "tweetscroll/twitter/tweets.php",
1363
1364                    delay: 7000,
1365
1366                    logo: true,
1367
1368                    profile_image: false
1369
1370                }); // TWEETSCROLL END
1371
1372                break;
1373
1374                // TweetScroll profile Image
1375
1376            case "tweet-profile":
1377
1378                jQuery(".tweet-profile").tweetscroll({
1379
1380                    username: "pixel_industry",
1381
1382                    limit: 20,
1383
1384                    replies: true,
1385
1386                    position: "append",
1387
1388                    animation: "fade",
1389
1390                    date_format: "style1",
1391
1392                    visible_tweets: 2,
1393
1394                    request_url: "tweetscroll/twitter/tweets.php",
1395
1396                    delay: 7000,
1397
1398                    logo: false,
1399
1400                    profile_image: true
1401
1402                }); // TWEETSCROLL END  
1403
1404                break;
1405
1406            default:
1407
1408                // statements_def
1409
1410                break;
1411
1412        }
1413
1414    },
1415
1416    /**
1417
1418     * Function for number counter animation
1419
1420     * @param void
1421
1422     * @return void
1423
1424     */
1425
1426    odometerContainerInit: function () {
1427
1428        jQuery(".odometer-container").waypoint(function () {
1429
1430            jQuery(".odometer").each(function () {
1431
1432                var v = jQuery(this).data("to");
1433
1434                var o = new Odometer({
1435
1436                    el: this,
1437
1438                    value: 0,
1439
1440                    duration: 15000
1441
1442                });
1443
1444                o.render();
1445
1446                setInterval(function () {
1447
1448                    o.update(v);
1449
1450                });
1451
1452            });
1453
1454        },
1455
1456                {
1457
1458                    offset: "80%",
1459
1460                    triggerOnce: true
1461
1462                }
1463
1464        );
1465
1466    },
1467
1468    /**
1469
1470     * Function for Nivo Slider initialisation
1471
1472     * @param id
1473
1474     * @return void
1475
1476     */
1477
1478    nivoSliderInit: function (id) {
1479
1480        switch (id) {
1481
1482            case "nivo-slider-01":
1483
1484                jQuery(".nivo-slider").nivoSlider({
1485
1486                    effect: "slideInLeft",
1487
1488                    pauseTime: 5000,
1489
1490                    nextText: '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>',
1491
1492                    prevText: '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>',
1493
1494                    directionNav: true,
1495
1496                    controlNav: false
1497
1498                });
1499
1500                break;
1501
1502            case "nivo-slider-02":
1503
1504                jQuery(".nivo-slider").nivoSlider({
1505
1506                    effect: "slideInLeft",
1507
1508                    pauseTime: 5000,
1509
1510                    nextText: '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>',
1511
1512                    prevText: '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>',
1513
1514                    directionNav: false
1515
1516                });
1517
1518                break;
1519
1520            default:
1521
1522                // statements_def
1523
1524                break;
1525
1526        }
1527
1528    },
1529
1530    /**
1531
1532     * Function for Master Slider initialisation
1533
1534     * @param id
1535
1536     * @return void
1537
1538     */
1539
1540    masterSliderInit: function (id) {
1541
1542        switch (id) {
1543
1544            case "mastersliderFullArrows":
1545
1546                var slider = new MasterSlider();
1547
1548                slider.setup("mastersliderFullArrows", {
1549
1550                    width: 1140, // slider standard width
1551
1552                    height: 1000, // slider standard height
1553
1554                    space: 0,
1555
1556                    speed: 30,
1557
1558                    layout: "fullscreen",
1559
1560                    centerControls: true,
1561
1562                    loop: true,
1563
1564                    autoplay: false
1565
1566                            // more slider options goes here...
1567
1568                            // check slider options section in documentation for more options.
1569
1570                });
1571
1572                // adds Arrows navigation control to the slider.
1573
1574                slider.control("arrows", {autohide: false});
1575
1576                slider.api.addEventListener(MSSliderEvent.INIT, function () {
1577
1578                    jQuery(".ms-nav-next").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1579
1580                    jQuery(".ms-nav-prev").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1581
1582                    convertToSVG();
1583
1584                });
1585
1586                break;
1587
1588            case "mastersliderFullWidth":
1589
1590                var slider = new MasterSlider();
1591
1592                slider.setup("mastersliderFullWidth", {
1593
1594                    width: 1140, // slider standard width
1595
1596                    height: 1000, // slider standard height
1597
1598                    space: 0,
1599
1600                    speed: 30,
1601
1602                    layout: "fullwidth",
1603
1604                    centerControls: false,
1605
1606                    loop: false,
1607
1608                    autoplay: false
1609
1610                            // more slider options goes here...
1611
1612                            // check slider options section in documentation for more options.
1613
1614                });
1615
1616                break;
1617
1618            case "mastersliderFullWidth02":
1619
1620                var slider = new MasterSlider();
1621
1622                slider.setup("mastersliderFullWidth02", {
1623
1624                    width: 1140, // slider standard width
1625
1626                    height: 870, // slider standard height
1627
1628                    space: 1,
1629
1630                    speed: 30,
1631
1632                    layout: "fullwidth",
1633
1634                    loop: true,
1635
1636                    autoplay: false
1637
1638                            // more slider options goes here...
1639
1640                            // check slider options section in documentation for more options.
1641
1642                });
1643
1644                // adds Arrows navigation control to the slider.
1645
1646                slider.control("arrows", {autohide: false});
1647
1648                slider.api.addEventListener(MSSliderEvent.INIT, function () {
1649
1650                    jQuery(".ms-nav-next").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1651
1652                    jQuery(".ms-nav-prev").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1653
1654                    convertToSVG();
1655
1656                });
1657
1658                break;
1659
1660            case "mastersliderFullWidth03":
1661
1662                var slider = new MasterSlider();
1663
1664                slider.setup("mastersliderFullWidth03", {
1665
1666                    width: 1140, // slider standard width
1667
1668                    height: 800, // slider standard height
1669
1670                    space: 0,
1671
1672                    speed: 12,
1673					
1674					view: "fade",
1675
1676                    layout: "fullwidth",
1677
1678                    centerControls: false,
1679
1680                    loop: true,
1681
1682                    autoplay: true
1683
1684                            // more slider options goes here...
1685
1686                            // check slider options section in documentation for more options.
1687
1688                });
1689
1690                slider.control("arrows", {autohide: false});
1691
1692                slider.api.addEventListener(MSSliderEvent.INIT, function () {
1693
1694                    jQuery(".ms-nav-next").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1695
1696                    jQuery(".ms-nav-prev").append('<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>');
1697
1698                    convertToSVG();
1699
1700                });
1701
1702                break;
1703
1704            default:
1705
1706                // statements_def
1707
1708                break;
1709
1710
1711
1712        }
1713
1714    },
1715
1716    /**
1717
1718     * Function for positioning Call To Action On Home Page 01 - Negative Top
1719
1720     * @param void
1721
1722     * @return void
1723
1724     */
1725
1726    ctaNegativeTop: function () {
1727
1728        function ctaNegativeTop() {
1729
1730            var ctaHeight = jQuery(".cta-negative-top").outerHeight();
1731
1732            jQuery(".cta-negative-top").css("top", -ctaHeight);
1733
1734        }
1735
1736
1737
1738        jQuery(document).ready(ctaNegativeTop);
1739
1740        jQuery(window).on("resize", function(){
1741
1742            ctaNegativeTop();
1743
1744        })
1745
1746    },
1747
1748    /**
1749
1750     * Function for positioning Featured Pages Element - Negative Top
1751
1752     * Present on Management Index
1753
1754     * @param void
1755
1756     * @return void
1757
1758     */
1759    fpNegativeTop2: function () {
1760
1761        var fpNegativeTop = jQuery(".featured-pages-negative-top2 .media").height()+720;
1762		
1763		//alert (jQuery(".featured-pages-negative-top .media").height());
1764
1765        jQuery('.featured-pages-negative-top2 [class*="col-"]').css("margin-top", -fpNegativeTop);
1766
1767    },
1768	
1769	
1770    fpNegativeTop: function () {
1771
1772        var fpNegativeTop = jQuery(".featured-pages-negative-top .media").height()+320;
1773		
1774		//alert (jQuery(".featured-pages-negative-top .media").height());
1775
1776        jQuery('.featured-pages-negative-top [class*="col-"]').css("margin-top", -fpNegativeTop);
1777
1778    },
1779
1780    /**
1781
1782     * Function for Equal Height on Rows 
1783
1784     * Required for The Map on Home Page - It Gives Height to The Map
1785
1786     * @param void
1787
1788     * @return void
1789
1790     */
1791
1792    mapHeight: function () {
1793
1794        function equalHeight() {
1795
1796            jQuery('.row-equal-height *[class*="custom-col-padding"]').each(function () {
1797
1798                var maxHeight = jQuery(this).outerHeight();
1799
1800                jQuery('.row-equal-height *[class*="empty"] *[id*="map"]').height(maxHeight);
1801
1802            });
1803
1804        }
1805
1806
1807
1808        jQuery(document).ready(equalHeight);
1809
1810        jQuery(window).on("resize", function(){
1811
1812            equalHeight();
1813
1814        });        
1815
1816    },
1817
1818    /**
1819
1820     * Image Parallax Animation
1821
1822     * Present on Tourism Index Page
1823
1824     * @param void
1825
1826     * @return void
1827
1828     */
1829
1830
1831
1832    imgParallaxAnimation: function () {
1833
1834        jQuery(".img-animate-container").each(function () {
1835
1836            var attr_width = jQuery(this).attr("data-width");
1837
1838            var attr_top = jQuery(this).attr("data-top");
1839
1840            var attr_left = jQuery(this).attr("data-left");
1841
1842
1843
1844            jQuery(this).find(".img-animate").css({
1845
1846                "width": attr_width + "px",
1847
1848                "top": attr_top + "px",
1849
1850                "left": attr_left + "px"
1851
1852            });
1853
1854
1855
1856            var height = 0;
1857
1858
1859
1860            jQuery(this).children(".img-animate").each(function () {
1861
1862                height = Math.max(height, jQuery(this).height());
1863
1864            });
1865
1866
1867
1868            jQuery(this).parent().css("min-height", height);
1869
1870        });
1871
1872    },
1873
1874    /**
1875
1876     * Function for Message Boxes Element - Close Button
1877
1878     * @param void
1879
1880     * @return void
1881
1882     */
1883
1884    messageShowClose: function () {
1885
1886        jQuery(".message-boxes").on("click", function () {
1887
1888            jQuery(this).find(".message-close").css("opacity", "1");
1889
1890        });
1891
1892    },
1893
1894    messageClose: function () {
1895
1896        (function () {
1897
1898            // INFORMATION BOXES 
1899
1900            jQuery(".message-boxes .message-close").on("click", function () {
1901
1902                jQuery(this).parent().fadeOut(300);
1903
1904            });
1905
1906        })();
1907
1908    },
1909
1910    /**
1911
1912     * Function for passing chart values - width and height
1913
1914     * @param void
1915
1916     * @return void
1917
1918     */
1919
1920    chartSize: function () {
1921
1922        jQuery(".chart-container").each(function () {
1923
1924
1925
1926            var chartWidth = jQuery(this).data("width");
1927
1928            var chartHeight = jQuery(this).data("height");
1929
1930
1931
1932            var chartParentWidth = jQuery(this).parent().width();
1933
1934
1935
1936            if (chartWidth >= chartParentWidth) {
1937
1938                jQuery(this).width(chartParentWidth);
1939
1940            } else {
1941
1942                jQuery(this).width(chartWidth);
1943
1944            }
1945
1946            jQuery(this).height(chartHeight);
1947
1948        });
1949
1950    },
1951
1952    /**
1953
1954     * Function for pie chart initialisation
1955
1956     * @param id
1957
1958     * @return void
1959
1960     */
1961
1962    pieChartInit: function (id) {
1963
1964        switch (id) {
1965
1966            case "pieChart":
1967
1968                jQuery(".pieChart").waypoint(function () {
1969
1970                    var ctx = document.getElementsByClassName("pieChart");
1971
1972                    var myChart = new Chart(ctx, {
1973
1974                        type: "pie",
1975
1976                        data: {
1977
1978                            labels: ["Label One", "Label Two"],
1979
1980                            datasets: [{
1981
1982                                    data: [75, 25],
1983
1984                                    backgroundColor: [
1985
1986                                        "#061640",
1987
1988                                        "#0bb4ce"
1989
1990                                    ]
1991
1992                                }]
1993
1994                        }
1995
1996                    });
1997
1998                },
1999
2000                        {
2001
2002                            offset: "80%",
2003
2004                            triggerOnce: true
2005
2006                        }
2007
2008
2009
2010                );
2011
2012                break;
2013
2014            case "pieChart-2":
2015
2016                jQuery(".pieChart-2").waypoint(function () {
2017
2018                    var ctx = document.getElementsByClassName("pieChart-2");
2019
2020                    var myChart2 = new Chart(ctx, {
2021
2022                        type: "pie",
2023
2024                        data: {
2025
2026                            labels: ["Label One", "Label Two"],
2027
2028                            datasets: [{
2029
2030                                    data: [35, 65],
2031
2032                                    backgroundColor: [
2033
2034                                        "#b2dfa8",
2035
2036                                        "#97c98c"
2037
2038                                    ]
2039
2040                                }]
2041
2042                        }
2043
2044                    });
2045
2046                },
2047
2048                        {
2049
2050                            offset: "80%",
2051
2052                            triggerOnce: true
2053
2054                        }
2055
2056
2057
2058                );
2059
2060                break;
2061
2062            case "pieChart-3":
2063
2064                jQuery(".pieChart").waypoint(function () {
2065
2066                    var ctx = document.getElementsByClassName("pieChart");
2067
2068                    var myChart = new Chart(ctx, {
2069
2070                        type: "pie",
2071
2072                        data: {
2073
2074                            labels: ["In-house IT Security Cost", "IT Security Cost with ConsultingPress"],
2075
2076                            datasets: [{
2077
2078                                    data: [75, 25],
2079
2080                                    backgroundColor: [
2081
2082                                        "#061640",
2083
2084                                        "#0bb4ce"
2085
2086                                    ],
2087
2088                                    hoverBackgroundColor: [
2089
2090                                        "#081b4f",
2091
2092                                        "#0fc1dc"
2093
2094                                    ]
2095
2096                                }]
2097
2098                        }
2099
2100                    });
2101
2102                },
2103
2104                        {
2105
2106                            offset: "80%",
2107
2108                            triggerOnce: true
2109
2110                        }
2111
2112
2113
2114                );
2115
2116                break;
2117
2118            default:
2119
2120                // statements_def
2121
2122                break;
2123
2124        }
2125
2126    },
2127
2128    /**
2129
2130     * Function for bar chart initialisation
2131
2132     * @param id
2133
2134     * @return void
2135
2136     */
2137
2138    barChartInit: function (id) {
2139
2140        switch (id) {
2141
2142            case "barChart":
2143
2144                jQuery(".barChart").waypoint(function () {
2145
2146                    var ctx = document.getElementsByClassName("barChart");
2147
2148                    var barChart = new Chart(ctx, {
2149
2150                        type: "bar",
2151
2152                        data: {
2153
2154                            labels: ["A", "B", "C", "D", "E", "F", "G"],
2155
2156                            datasets: [{
2157
2158                                    label: "Dataset 1",
2159
2160                                    backgroundColor: "#6ec25b",
2161
2162                                    data: [25, 85, 24, 32, 76, 58, 49]
2163
2164                                }, {
2165
2166                                    label: "Dataset 2",
2167
2168                                    backgroundColor: "#071740",
2169
2170                                    data: [15, 28, 47, 89, 22, 65, 28]
2171
2172                                }]
2173
2174                        },
2175
2176                        options: {
2177
2178                            // Elements options apply to all of the options unless overridden in a dataset
2179
2180                            // In this case, we are setting the border of each bar to be 2px wide and green
2181
2182                            elements: {
2183
2184                                rectangle: {
2185
2186                                    borderWidth: 2,
2187
2188                                    borderColor: "#eee",
2189
2190                                    borderSkipped: "bottom"
2191
2192                                }
2193
2194                            },
2195
2196                            responsive: true,
2197
2198                            legend: {
2199
2200                                position: "top"
2201
2202                            },
2203
2204                            title: {
2205
2206                                display: true,
2207
2208                                text: "Bar Chart Multiple Data Sets"
2209
2210                            }
2211
2212                        }
2213
2214                    });
2215
2216                },
2217
2218                        {
2219
2220                            offset: "80%",
2221
2222                            triggerOnce: true
2223
2224                        }
2225
2226                );
2227
2228                break;
2229
2230            case "barChart-2":
2231
2232                jQuery(".barChart-2").waypoint(function () {
2233
2234                    var ctx = document.getElementsByClassName("barChart-2");
2235
2236                    var barChart = new Chart(ctx, {
2237
2238                        type: "bar",
2239
2240                        data: {
2241
2242                            labels: ["A", "B", "C", "D", "E", "F", "G"],
2243
2244                            datasets: [{
2245
2246                                    label: "Dataset 1",
2247
2248                                    backgroundColor: "#6ec25b",
2249
2250                                    data: [25, 85, 24, 32, 76, 58, 49]
2251
2252                                }]
2253
2254                        },
2255
2256                        options: {
2257
2258                            // Elements options apply to all of the options unless overridden in a dataset
2259
2260                            // In this case, we are setting the border of each bar to be 2px wide and green
2261
2262                            elements: {
2263
2264                                rectangle: {
2265
2266                                    borderWidth: 2,
2267
2268                                    borderColor: "#eee",
2269
2270                                    borderSkipped: "bottom"
2271
2272                                }
2273
2274                            },
2275
2276                            responsive: true,
2277
2278                            legend: {
2279
2280                                position: "top"
2281
2282                            },
2283
2284                            title: {
2285
2286                                display: true,
2287
2288                                text: "Bar Chart Single Data Set"
2289
2290                            }
2291
2292                        }
2293
2294                    });
2295
2296                },
2297
2298                        {
2299
2300                            offset: "80%",
2301
2302                            triggerOnce: true
2303
2304                        }
2305
2306                );
2307
2308                break;
2309
2310            default:
2311
2312                // statements_def
2313
2314                break;
2315
2316        }
2317
2318    },
2319
2320    /**
2321
2322     * Function for line chart initialisation
2323
2324     * @param id
2325
2326     * @return void
2327
2328     */
2329
2330    lineChartInit: function (id) {
2331
2332        switch (id) {
2333
2334            case "lineChart":
2335
2336                jQuery(".lineChart").waypoint(function () {
2337
2338                    var ctx = document.getElementsByClassName("lineChart");
2339
2340                    var myChart = new Chart(ctx, {
2341
2342                        type: "line",
2343
2344                        data: {
2345
2346                            labels: ["January", "February", "March", "April", "May", "June", "July"],
2347
2348                            datasets: [{
2349
2350                                    label: "Line Dataset",
2351
2352                                    fill: false,
2353
2354                                    backgroundColor: "#071740",
2355
2356                                    borderColor: "#071740",
2357
2358                                    pointBorderColor: "#44d1bb",
2359
2360                                    pointBackgroundColor: "#44d1bb",
2361
2362                                    pointBorderWidth: 3,
2363
2364                                    data: [65, 59, 80, 81, 56, 55, 40]
2365
2366                                }]
2367
2368                        }
2369
2370                    });
2371
2372                },
2373
2374                        {
2375
2376                            offset: "80%",
2377
2378                            triggerOnce: true
2379
2380                        }
2381
2382
2383
2384                );
2385
2386                break;
2387
2388            case "lineChart-2":
2389
2390                jQuery(".lineChart-2").waypoint(function () {
2391
2392                    var ctx = document.getElementsByClassName("lineChart-2");
2393
2394                    var myChart = new Chart(ctx, {
2395
2396                        type: "line",
2397
2398                        data: {
2399
2400                            labels: ["January", "February", "March", "April", "May", "June", "July"],
2401
2402                            datasets: [{
2403
2404                                    label: "Line Dataset 01",
2405
2406                                    fill: false,
2407
2408                                    backgroundColor: "#6ec25b",
2409
2410                                    borderColor: "#8be077",
2411
2412                                    pointBorderColor: "#8be077",
2413
2414                                    pointBackgroundColor: "#8be077",
2415
2416                                    pointBorderWidth: 3,
2417
2418                                    data: [65, 30, 45, 9, 56, 55, 40]
2419
2420                                },
2421
2422                                {
2423
2424                                    label: "Line Dataset 02",
2425
2426                                    fill: false,
2427
2428                                    borderColor: "#071740",
2429
2430                                    pointBorderColor: "#44d1bb",
2431
2432                                    pointBackgroundColor: "#44d1bb",
2433
2434                                    pointBorderWidth: 3,
2435
2436                                    data: [15, 24, 38, 90, 24, 77, 0]
2437
2438                                }]
2439
2440                        }
2441
2442                    });
2443
2444                },
2445
2446                        {
2447
2448                            offset: "80%",
2449
2450                            triggerOnce: true
2451
2452                        }
2453
2454
2455
2456                );
2457
2458                break;
2459
2460            default:
2461
2462                // statements_def
2463
2464                break;
2465
2466        }
2467
2468    },
2469
2470    /**
2471
2472     * Function for owl carousel initialisation
2473
2474     * @param id
2475
2476     * @return void
2477
2478     */
2479
2480    owlCarouselInit: function (id) {
2481
2482        switch (id) {
2483
2484            // Services carousel
2485
2486            case "services-carousel":
2487
2488                jQuery("#services-carousel").owlCarousel({
2489
2490                    items: 3,
2491
2492                    dots: false,
2493
2494                    nav: true,
2495
2496                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2497
2498                    loop: true,
2499
2500                    autoplay: false,
2501
2502                    autoplayTimeout: 3000,
2503
2504                    autoplayHoverPause: true,
2505
2506                    margin: 0,
2507
2508                    responsiveClass: true,
2509
2510                    mouseDrag: true,
2511
2512                    responsive: {
2513
2514                        0: {
2515
2516                            items: 1,
2517
2518                            autoHeight: true
2519
2520                        },
2521
2522                        600: {
2523
2524                            items: 2
2525
2526                        },
2527
2528                        1000: {
2529
2530                            items: 3
2531
2532                        }
2533
2534                    }
2535
2536                });
2537
2538                break;
2539
2540                // Services carousel 02
2541
2542            case "services-carousel-02":
2543
2544                jQuery("#services-carousel-02").owlCarousel({
2545
2546                    items: 3,
2547
2548                    dots: false,
2549
2550                    nav: true,
2551
2552                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2553
2554                    loop: true,
2555
2556                    autoplay: false,
2557
2558                    autoHeight: false,
2559
2560                    autoplayTimeout: 3000,
2561
2562                    autoplayHoverPause: true,
2563
2564                    margin: 30,
2565
2566                    responsiveClass: true,
2567
2568                    mouseDrag: true,
2569
2570                    responsive: {
2571
2572                        0: {
2573
2574                            items: 1
2575
2576                        },
2577
2578                        600: {
2579
2580                            items: 2
2581
2582                        },
2583
2584                        1000: {
2585
2586                            items: 3
2587
2588                        }
2589
2590                    }
2591
2592                });
2593
2594                break;
2595
2596                // Testimonial carousel
2597
2598            case "testimonial-carousel":
2599
2600                jQuery("#testimonial-carousel").owlCarousel({
2601
2602                    items: 1,
2603
2604                    dots: false,
2605
2606                    nav: true,
2607
2608                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2609
2610                    loop: true,
2611
2612                    autoplay: true,
2613
2614                    autoHeight: true,
2615
2616                    autoplayTimeout: 3000,
2617
2618                    autoplayHoverPause: true,
2619
2620                    margin: 0,
2621
2622                    responsiveClass: true,
2623
2624                    mouseDrag: true,
2625
2626                    responsive: {
2627
2628                        0: {
2629
2630                            items: 1
2631
2632                        },
2633
2634                        600: {
2635
2636                            items: 1
2637
2638                        },
2639
2640                        1000: {
2641
2642                            items: 1
2643
2644                        }
2645
2646                    }
2647
2648                });
2649
2650                break;
2651
2652                // Testimonial carousel 02
2653
2654            case "testimonial-carousel-02":
2655
2656                jQuery("#testimonial-carousel-02").owlCarousel({
2657
2658                    items: 2,
2659
2660                    dots: false,
2661
2662                    nav: true,
2663
2664                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2665
2666                    loop: true,
2667
2668                    autoplay: false,
2669
2670                    autoHeight: false,
2671
2672                    autoplayTimeout: 3000,
2673
2674                    autoplayHoverPause: true,
2675
2676                    margin: 30,
2677
2678                    responsiveClass: true,
2679
2680                    mouseDrag: true,
2681
2682                    responsive: {
2683
2684                        0: {
2685
2686                            items: 1
2687
2688                        },
2689
2690                        600: {
2691
2692                            items: 1
2693
2694                        },
2695
2696                        1000: {
2697
2698                            items: 2
2699
2700                        }
2701
2702                    }
2703
2704                });
2705
2706                break;
2707
2708                // Testimonial carousel 03
2709
2710            case "testimonial-carousel-03":
2711
2712                jQuery("#testimonial-carousel-03").owlCarousel({
2713
2714                    items: 1,
2715
2716                    dots: false,
2717
2718                    nav: false,
2719
2720                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2721
2722                    loop: true,
2723
2724                    autoplay: true,
2725
2726                    autoHeight: false,
2727
2728                    autoplayTimeout: 3000,
2729
2730                    autoplayHoverPause: true,
2731
2732                    margin: 30,
2733
2734                    responsiveClass: true,
2735
2736                    mouseDrag: true,
2737
2738                    responsive: {
2739
2740                        0: {
2741
2742                            items: 1
2743
2744                        },
2745
2746                        600: {
2747
2748                            items: 1
2749
2750                        },
2751
2752                        1000: {
2753
2754                            items: 1
2755
2756                        }
2757
2758                    }
2759
2760                });
2761
2762                break;
2763
2764                // Clients carousel
2765
2766            case "client-carousel":
2767
2768                jQuery("#client-carousel").owlCarousel({
2769
2770                    items: 6,
2771
2772                    dots: false,
2773
2774                    nav: false,
2775
2776                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2777
2778                    loop: true,
2779
2780                    autoplay: true,
2781
2782                    autoHeight: false,
2783
2784                    autoplayTimeout: 3000,
2785
2786                    autoplayHoverPause: true,
2787
2788                    margin: 30,
2789
2790                    responsiveClass: true,
2791
2792                    mouseDrag: true,
2793
2794                    responsive: {
2795
2796                        0: {
2797
2798                            items: 2
2799
2800                        },
2801
2802                        600: {
2803
2804                            items: 3
2805
2806                        },
2807
2808                        1000: {
2809
2810                            items: 6
2811
2812                        }
2813
2814                    }
2815
2816                });
2817
2818                break;
2819
2820                // Featured Pages Carousel
2821
2822            case "featured-pages-carousel":
2823
2824                jQuery("#featured-pages-carousel").owlCarousel({
2825
2826                    items: 3,
2827
2828                    dots: true                                                                 ,
2829
2830                    nav: false,
2831
2832                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2833
2834                    loop: true,
2835
2836                    autoplay: false,
2837
2838                    autoHeight: false,
2839
2840                    autoplayTimeout: 3000,
2841
2842                    autoplayHoverPause: true,
2843
2844                    margin: 10,
2845
2846                    responsiveClass: true,
2847
2848                    mouseDrag: true,
2849
2850                    responsive: {
2851
2852                        0: {
2853
2854                            items: 1
2855
2856                        },
2857
2858                        600: {
2859
2860                            items: 2
2861
2862                        },
2863
2864                        1000: {
2865
2866                            items: 3
2867
2868                        }
2869
2870                    }
2871
2872                });
2873
2874		 break;
2875
2876
2877            case "featured-pages-carousel2":
2878
2879                jQuery("#featured-pages-carousel2").owlCarousel({
2880
2881                    items: 4,
2882
2883                    dots: true                                                                 ,
2884
2885                    nav: false,
2886
2887                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2888
2889                    loop: true,
2890
2891                    autoplay: false,
2892
2893                    autoHeight: false,
2894
2895                    autoplayTimeout: 3000,
2896
2897                    autoplayHoverPause: true,
2898
2899                    margin: 10,
2900
2901                    responsiveClass: true,
2902
2903                    mouseDrag: true,
2904
2905                    responsive: {
2906
2907                        0: {
2908
2909                            items: 1
2910
2911                        },
2912
2913                        600: {
2914
2915                            items: 2
2916
2917                        },
2918
2919                        1000: {
2920
2921                            items: 4
2922
2923                        }
2924
2925                    }
2926
2927                });
2928
2929			                break;
2930	
2931                // Latest posts carousel
2932
2933            case "latest-posts-carousel":
2934
2935                jQuery("#latest-posts-carousel").owlCarousel({
2936
2937                    items: 3,
2938
2939                    dots: false,
2940
2941                    nav: true,
2942
2943                    navText: ['<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>', '<img class="svg-animate" src="img/svg/circle-icon.svg" alt="circle icon"/>'],
2944
2945                    loop: true,
2946
2947                    autoplay: false,
2948
2949                    autoHeight: true,
2950
2951                    autoplayTimeout: 3000,
2952
2953                    autoplayHoverPause: true,
2954
2955                    margin: 30,
2956
2957                    responsiveClass: true,
2958
2959                    mouseDrag: true,
2960
2961                    responsive: {
2962
2963                        0: {
2964
2965                            items: 1
2966
2967                        },
2968
2969                        600: {
2970
2971                            items: 2
2972
2973                        },
2974
2975                        1000: {
2976
2977                            items: 3
2978
2979                        }
2980
2981                    }
2982
2983                });
2984
2985                break;
2986
2987            default:
2988
2989                // statements_def
2990
2991                break;
2992
2993        }
2994
2995    }
2996
2997};
2998
2999
3000
3001
3002

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.