1var App = function () { 2 //Bootstrap Tooltips and Popovers 3 function handleBootstrap() { 4 /*Bootstrap Carousel*/ 5 jQuery('.carousel').carousel({ 6 interval: 15000, 7 pause: 'hover' 8 }); 9 10 /*Tooltips*/ 11 jQuery('.tooltips').tooltip(); 12 jQuery('.tooltips-show').tooltip('show'); 13 jQuery('.tooltips-hide').tooltip('hide'); 14 jQuery('.tooltips-toggle').tooltip('toggle'); 15 jQuery('.tooltips-destroy').tooltip('destroy'); 16 17 /*Popovers*/ 18 jQuery('.popovers').popover(); 19 jQuery('.popovers-show').popover('show'); 20 jQuery('.popovers-hide').popover('hide'); 21 jQuery('.popovers-toggle').popover('toggle'); 22 jQuery('.popovers-destroy').popover('destroy'); 23 } 24 25 //Search Box (Header) 26 function handleSearch() { 27 jQuery('.search').click(function () { 28 if(jQuery('.search-btn').hasClass('fa-search')){ 29 jQuery('.search-open').fadeIn(500); 30 jQuery('.search-btn').removeClass('fa-search'); 31 jQuery('.search-btn').addClass('fa-times'); 32 } else { 33 jQuery('.search-open').fadeOut(500); 34 jQuery('.search-btn').addClass('fa-search'); 35 jQuery('.search-btn').removeClass('fa-times'); 36 } 37 }); 38 } 39 40 //Sidebar Navigation Toggle 41 function handleToggle() { 42 jQuery('.list-toggle').on('click', function() { 43 jQuery(this).toggleClass('active'); 44 }); 45 46 /* 47 jQuery('#serviceList').on('shown.bs.collapse'), function() { 48 jQuery(".servicedrop").addClass('glyphicon-chevron-up').removeClass('glyphicon-chevron-down'); 49 } 50 51 jQuery('#serviceList').on('hidden.bs.collapse'), function() { 52 jQuery(".servicedrop").addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up'); 53 } 54 */ 55 } 56 57 //Fixed Header 58 function handleHeader() { 59 jQuery(window).scroll(function() { 60 if (jQuery(window).scrollTop()>100){ 61 jQuery(".header-fixed .header-sticky").addClass("header-fixed-shrink"); 62 } 63 else { 64 jQuery(".header-fixed .header-sticky").removeClass("header-fixed-shrink"); 65 } 66 }); 67 } 68 69 //Header Mega Menu 70 function handleMegaMenu() { 71 jQuery(document).on('click', '.mega-menu .dropdown-menu', function(e) { 72 e.stopPropagation() 73 }) 74 } 75 76 return { 77 init: function () { 78 handleBootstrap(); 79 handleSearch(); 80 handleToggle(); 81 handleHeader(); 82 handleMegaMenu(); 83 }, 84 85 //Clients Logo 86 initSliders: function () { 87 jQuery('#clients-flexslider').flexslider({ 88 animation: "slide", 89 easing: "swing", 90 animationLoop: true, 91 itemWidth: 1, 92 itemMargin: 1, 93 minItems: 2, 94 maxItems: 9, 95 controlNav: false, 96 directionNav: false, 97 move: 2 98 }); 99 100 jQuery('#clients-flexslider1').flexslider({ 101 animation: "slide", 102 easing: "swing", 103 animationLoop: true, 104 itemWidth: 1, 105 itemMargin: 1, 106 minItems: 2, 107 maxItems: 5, 108 controlNav: false, 109 directionNav: false, 110 move: 2 111 }); 112 113 jQuery('#photo-flexslider').flexslider({ 114 animation: "slide", 115 controlNav: false, 116 animationLoop: false, 117 itemWidth: 80, 118 itemMargin: 0 119 }); 120 121 jQuery('#testimonal_carousel').collapse({ 122 toggle: false 123 }); 124 }, 125 126 //Counters 127 initCounter: function () { 128 jQuery('.counter').counterUp({ 129 delay: 10, 130 time: 1000 131 }); 132 }, 133
134 //Parallax Backgrounds 135 initParallaxBg: function () { 136 jQuery(window).load(function() { 137 jQuery('.parallaxBg').parallax("50%", 0.2); 138 jQuery('.parallaxBg1').parallax("50%", 0.4); 139 }); 140 }, 141 142 }; 143 144}();
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.