1jQuery.noConflict(); 2 3jQuery( document ).ready(function( $ ) { 4 "use strict"; 5 6 var windowWidth = window.innerWidth; 7 var windowHeight = window.innerHeight; 8 9 /*-- HEADER MENU --*/ 10 var siteMenu = function() { 11 if ( windowWidth > 1199 ) { 12 13 // Remove Mobile Menu Events 14 $(".header-menu *").unbind(); 15 16 // Actions Desktop 17 $(".header-menu .sub").hoverIntent({ 18 timeout: 100, // milliseconds delay before onMouseOut 19 over: function(){ 20 $(this).addClass("active"); 21 $(this).children("ul").slideDown("fast"); 22 }, 23 out: function(){ 24 $(this).removeClass("active"); 25 $(this).children("ul").slideUp("fast"); 26 } 27 }); 28 } 29 else { 30 31 // Remove Desktop Menu Events 32 $(".header-menu *").unbind(); 33 34 // Actions Mobile 35 $(".header-menu .sub > a").click(function(e){ 36 e.preventDefault(); 37 38 $(".header-menu li ul").slideUp("normal"); 39 $(".header-menu li").removeClass("active"); 40 41 var element = $(this).siblings("ul"); 42 43 if ( element.is(":visible") ) { 44 element.slideUp("normal"); 45 $(this).parent().removeClass("active"); 46 } 47 else { 48 element.slideDown("normal"); 49 $(this).parent().addClass("active"); 50 } 51 }); 52 } 53 }; 54 /*-- HEADER MENU END --*/ 55 56 /*-- HEADER TOGGLE --*/ 57 $(".site-toggle").click(function(e){ 58 e.preventDefault(); 59 60 var menu = $(".site-header"); 61 var button = $(".site-toggle"); 62 63 if( $(menu).is(":visible") ) { 64 $(menu).animate({ "left": "-200px" }, 200, function(){ 65 $(menu).hide(); 66 $("body").removeClass("sidebar-on"); 67 }); 68 $(button).animate({ "left": "0px" }, 200); 69 } 70 else { 71 $("body").addClass("sidebar-on"); 72 $(menu).show(); 73 $(menu).animate({"left": "0px"}, {duration: 200, queue: false}); 74 $(button).animate({"left": "200px"}, {duration: 200, queue: false}); 75 } 76 }); 77 78 var siteToggle = function() { 79 if ( windowWidth > 1199 ) { 80 81 // Remove Styles 82 $(".site-toggle, .site-header, .header-menu ul").removeAttr("style"); 83 84 // Remove Classes 85 $(".header-menu li").removeClass("active"); 86 $("body").removeClass("sidebar-on"); 87 88 } 89 }; 90 /*-- HEADER TOGGLE END--*/ 91 92 /*-- TEAM CAROUSEL --*/ 93 var owl1 = $("#owl-team"); 94 owl1.owlCarousel({ 95 items : 3, 96 itemsDesktop : [1400,3], 97 itemsDesktopSmall : [1100,2], 98 itemsTablet: [600,2], 99 itemsMobile : [400,1], 100 pagination : true, 101 navigation : false 102 }); 103 /*-- TEAM CAROUSEL END --*/ 104 105 /*-- TESTIMONIALS CAROUSEL --*/ 106 var owl2 = $("#owl-testimonials"); 107 owl2.owlCarousel({ 108 items : 1, 109 itemsDesktop : [1400,1], 110 itemsDesktopSmall : [1100,1], 111 itemsTablet: [600,1], 112 itemsMobile : [400,1], 113 pagination : true, 114 navigation : false 115 }); 116 /*-- TESTIMONIALS CAROUSEL END --*/ 117 118 /*-- DEFAULT CAROUSEL --*/ 119 var owlDefault = $(".owl-gallery"); 120 owlDefault.owlCarousel({ 121 items : 1, 122 itemsDesktop : [1400,1], 123 itemsDesktopSmall : [1100,1], 124 itemsTablet: [600,1], 125 itemsMobile : [400,1], 126 pagination : true, 127 navigation : false, 128 navigationText: false 129 }); 130 /*-- DEFAULT CAROUSEL END --*/ 131 132 /*-- MASONRY --*/ 133 var siteMasonry = function() { 134 if ( windowWidth > 991 ) { 135 var getMasonry = $(".masonry-list"); 136 getMasonry.imagesLoaded(function () { 137 getMasonry.masonry({ 138 itemSelector: ".item", 139 columnWidth: ".grid-sizer", 140 isAnimated: true 141 }); 142 }); 143 } 144 else { 145 $(".masonry-list").masonry('destroy'); 146 } 147 }; 148 /*-- MASONRY END --*/ 149 150 /*-- FIT VIDEO --*/ 151 $(".video-full").fitVids(); 152 /*-- FIT VIDEO END --*/ 153 154 /*-- PRETTY PHOTO --*/ 155 $("a[data-rel^='prettyPhoto']").prettyPhoto({ 156 theme: "light_square", 157 social_tools: false, 158 deeplinking:false 159 }); 160 /*-- PRETTY PHOTO END --*/ 161 162 /*-- SCROLL COMMENT FORM --*/ 163 $(".leave-new").click(function(e){ 164 e.preventDefault(); 165 var form = $(".comment-form").offset(); 166 $("html, body").animate({scrollTop: form.top}, 800); 167 }); 168 /*-- SCROLL COMMENT FORM END --*/ 169 170 /*-- BACK TOP --*/ 171 $(".site-back-top").click(function(e){
172 e.preventDefault(); 173 $("body,html").animate({scrollTop: 0}, 800); 174 }); 175 176 function backTop() { 177 if ( $(window).scrollTop() > 40 && windowWidth > 480 ) { 178 $(".site-back-top").fadeIn(); 179 } 180 else{ 181 $(".site-back-top").fadeOut(); 182 } 183 } 184 /*-- BACK TOP END --*/ 185 186 187 188 /*-- SLIDESHOW --*/ 189 var getGalleria = $(".galleria"); 190 191 if( getGalleria.length ==! 0 ) { 192 193 194 Galleria.run('.galleria', { 195 imageCrop: true, 196 transition: 'fade', 197 autoplay: 7000, 198 idleMode:false, 199 showInfo: true, 200 _toggleInfo: false, 201 height: windowHeight 202 }) 203 } 204 /*-- SLIDESHOW END --*/ 205 206 /*-- WINDOW SCROLL --*/ 207 $(window).scroll(function () { 208 backTop(); 209 }); 210 /*-- WINDOW SCROLL END --*/ 211 212 /*-- WINDOW LOAD --*/ 213 $(window).load(function() { 214 $(".site-loader").delay(100).fadeOut("slow"); 215 siteMenu(); 216 siteMasonry(); 217 backTop(); 218 }); 219 /*-- WINDOW LOAD END --*/ 220 221 /*-- WINDOW RESIZE --*/ 222 $(window).resize(function() { 223 windowWidth = window.innerWidth; 224 windowHeight = window.innerHeight; 225 226 siteMenu(); 227 siteToggle(); 228 siteMasonry(); 229 backTop(); 230 }); 231 /*-- WINDOW RESIZE END --*/ 232});
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.