1(function($) { 2 3 "use strict"; 4 5 function artgallery_init_loading_effects() { 6 7 $('#header-logo').addClass("animations-hidden").viewportChecker({ 8 classToAdd: 'animated bounce', 9 offset: 1 10 }); 11 12 13 14 $('#page-header').addClass("animations-hidden").viewportChecker({ 15 classToAdd: 'animated bounceInUp', 16 offset: 1 17 }); 18 19 $('#main-content-wrapper h2, #main-content-wrapper h3') 20 .addClass("animations-hidden").viewportChecker({ 21 classToAdd: 'animated bounceInUp', 22 offset: 1 23 }); 24 25 $('img').addClass("animations-hidden").viewportChecker({ 26 classToAdd: 'animated zoomIn', 27 offset: 1 28 }); 29 30 $('#sidebar').addClass("animations-hidden").viewportChecker({ 31 classToAdd: 'animated zoomIn', 32 offset: 1 33 }); 34 35 $('.before-content, .after-content').addClass("animations-hidden").viewportChecker({ 36 classToAdd: 'animated bounce', 37 offset: 1 38 }); 39 40 $('.header-social-widget') 41 .addClass("animations-hidden").viewportChecker({ 42 classToAdd: 'animated bounceInLeft', 43 offset: 1 44 }); 45 46 $('article, article p, article li') 47 .addClass("animations-hidden").viewportChecker({ 48 classToAdd: 'animated zoomIn', 49 offset: 1 50 }); 51 52 $('#footer-main h1, #footer-main h2, #footer-main h3') 53 .addClass("animations-hidden").viewportChecker({ 54 classToAdd: 'animated bounceInUp', 55 offset: 1 56 }); 57 58 $('#footer-main p, #footer-main ul, #footer-main li, .footer-title, .col3a, .col3b, .col3c') 59 .addClass("animations-hidden").viewportChecker({ 60 classToAdd: 'animated zoomIn', 61 offset: 1 62 }); 63 64 $('.footer-social-widget') 65 .addClass("animations-hidden").viewportChecker({ 66 classToAdd: 'animated rubberBand', 67 offset: 1 68 }); 69 70 $('#footer-menu') 71 .addClass("animations-hidden").viewportChecker({ 72 classToAdd: 'animated bounceInDown', 73 offset: 1 74 }); 75 } 76 77 $( document ).ready(function() { 78 79 $('#header-spacer').height($('#header-main-fixed').height()); 80 81 if (artgallery_options && artgallery_options.loading_effect) { 82 artgallery_init_loading_effects(); 83 } 84 85 // add submenu icons class in main menu (only for large resolution) 86 if ( $(window).width() >= 800 ) { 87 88 $('#navmain > div > ul > li').has('ul').addClass('level-one-sub-menu'); 89 $('#navmain > div > ul li ul li').has('ul').addClass('level-two-sub-menu'); 90 91 // add support of browsers which don't support focus-within 92 $('#navmain > div > ul > li > a:not(.search-form-icon), #navmain > div > ul > li > ul > li > a, #navmain > div > ul > li > ul > li > ul > li > a, .mega-menu-sub-menu') 93 .on('mouseenter focus', function() { 94 $(this).closest('li.level-one-sub-menu').addClass('menu-item-focused'); 95 $(this).closest('li.level-two-sub-menu').addClass('menu-item-focused'); 96 97 if (!$(this).parent().find('#cart-popup-content').length && $('#cart-popup-content').css('right') != '-99999px') 98 $('#cart-popup-content').css('right', '-99999px'); 99 }).on('mouseleave blur', function() { 100 $(this).closest('li.level-one-sub-menu').removeClass('menu-item-focused'); 101 $(this).closest('li.level-two-sub-menu').removeClass('menu-item-focused'); 102 }); 103 104 } else { 105 106 $('#navmain > div > ul > li').each( 107 function() { 108 if ($(this).find('> ul.sub-menu').length > 0) { 109 110 $(this).prepend('<span class="sub-menu-item-toggle"></span>'); 111 } 112 } 113 ); 114 115 $('#navmain').on('focusin', function(){ 116 117 if ($('#navmain > div > ul').css('right') == '-99999px') { 118 119 $('#navmain > div > ul').css({'right': 'auto'}); 120 $('#navmain ul ul').css({'right': 'auto'}).css({'position': 'relative'}); 121
122 $('.sub-menu-item-toggle').addClass('sub-menu-item-toggle-expanded'); 123 } 124 }); 125 126 $('#main-content-wrapper, #home-content-wrapper').on('focusin', function(){ 127 128 if ($('#navmain > div > ul').css('right') != '-99999px') { 129 $('#navmain > div > ul').css({'right': ''}); 130 } 131 132 }); 133 134 $('.sub-menu-item-toggle').on('click', function(e) { 135 136 e.stopPropagation(); 137 138 var subMenu = $(this).parent().find('> ul.sub-menu'); 139 140 $('#navmain ul ul.sub-menu').not(subMenu).css('right', '-99999px').css('position', 'absolute'); 141 $(this).toggleClass('sub-menu-item-toggle-expanded'); 142 if (subMenu.css('right') == '-99999px') { 143 144 subMenu.css({'right': 'auto'}).css({'position': 'relative'}); 145 subMenu.find('ul.sub-menu').css({'right': 'auto'}).css({'position': 'relative'}); 146 147 } else { 148 149 subMenu.css({'right': '-99999px'}).css({'position': 'absolute'}); 150 subMenu.find('ul.sub-menu').css({'right': '-99999px'}).css({'position': 'absolute'}); 151 } 152 }); 153 } 154 155 $('#navmain > div').on('click', function(e) { 156 157 e.stopPropagation(); 158 159 // toggle main menu 160 if ( $(window).width() < 800 ) { 161 162 var parentOffset = $(this).parent().offset(); 163 164 var relY = e.pageY - parentOffset.top; 165 166 var firstChild = $('ul:first-child', this); 167 168 if (firstChild.css('right') == '-99999px') 169 firstChild.css({'right': 'auto'}); 170 else 171 firstChild.css({'right': '-99999px'}); 172 173 firstChild.parent().toggleClass('mobile-menu-expanded'); 174 } 175 }); 176 177 $(window).on('scroll', function () { 178 179 if ($(this).scrollTop() > 100) { 180 181 $('.scrollup').fadeIn(); 182 183 } else { 184 185 $('.scrollup').fadeOut(); 186 187 } 188 }); 189 190 $('.scrollup').on('click', function () { 191 192 $("html, body").animate({ 193 scrollTop: 0 194 }, 600); 195 196 return false; 197 }); 198 199 200 $(function(){ 201 $('#camera_wrap').camera({ 202 navigationHover : false, 203 height: '450px', 204 loader: 'bar', 205 pagination: true, 206 thumbnails: false, 207 time: 4500 208 }); 209 }); 210 211 }); 212 213})(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.