1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/*------------------------------------------------------------------------- 11 12 Theme Name: CARTEL - html - v.1 13 14 For any questions concerning this theme please refer to documention or 15 our forum at support.udfrance.com. 16 17/*------------------------------------------------------------------------ 18 19//GENERAL FUNCTONS /////////////////////////////////////////////////////// 20 21-------------------------------------------------------------------------*/ 22 23$(document).ready(function(){ 24 25 26 /*vars used throughout*/ 27 var toggleMenu =$('.mobileMenuToggle'), //Mobile menu ref. 28 menuLink=$('ul.navigation li'), 29 lightboxTransition = 'fade', //Fancybox transition type 30 overlayOpacity =0.8, //Fancybox overlay opacity 31 overlayColor = '#000', //Fancybox overlay color 32 videoWidth = 663, //Fancybox video width 33 videoHeight = 374; //Fancybox video height 34 lazyload = true; //Whether to use lazy load or not 35 36 37 38 //MOBILE MENU ---------------------------------------------------------------------------/ 39 40 /* Clone navigation for mobile */ 41 42 $('#header-inner header nav').clone().addClass('mobile-nav').appendTo('#header-inner header').find('.navigation').addClass('mobile-navigation'); 43 44 /* Use mobile navigation on iPad Landscape */ 45 46 if(navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)){ 47 $('#header-inner').addClass('is_tablet'); 48 $('#header-inner .mobile-nav').css('display','block'); 49 $('#header-inner ul.navigation, #header-inner ul.mobile-navigation').css('display','none'); 50 $('#header-inner .mobileMenuToggle').css('display','block'); 51 } 52 53 $('.mobileMenuToggle').on('click', function() { 54 if($(this).hasClass('open')) {
55 $('ul.mobile-navigation').slideUp('normal','easeInOutQuint'); 56 $(this).removeClass('open'); 57 } else { 58 $('ul.mobile-navigation').slideDown('normal','easeInOutQuint'); 59 $(this).addClass('open'); 60 } 61 return false; 62 }); 63 64 65 //SUB MENU ------------------------------------------------------------------------------/ 66 67 68 69 menuLink.on({ 70 71 mouseenter: function () { 72 73 if($(this).children('ul').length && $(window).width() > 767){ 74 75 $(this).children('ul').css({display:'block',opacity:0,top:'43px'}).stop().animate({opacity:1,top:'45px'},400); 76 77 } 78 79 }, 80 81 mouseleave: function () { 82 83 if($(this).children('ul').length && $(window).width() > 767){ 84 85 $(this).children('ul').stop().animate({opacity:0,top:'43px'},400,function(){ 86 87 88 $(this).hide(); 89 90 91 }); 92 93 } 94 } 95 96 }); 97 98 99 //LIGHTBOX SPECIFIC ---------------------------------------------------------------------/ 100 101 /*lightbox-img 102 -------------------------------*/ 103 104 $('a.lightbox').fancybox({ 105 106 'transitionIn' : lightboxTransition, 107 'transitionOut' : lightboxTransition, 108 'titlePosition' : 'over', 109 'padding' : '0', 110 'overlayOpacity' : overlayOpacity, 111 'overlayColor' : overlayColor, 112 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { 113 114 115 var obj = currentArray[ currentIndex ] //get current image 116 var target = $(obj).parent(); //get its container 117 118 119 //CASE 1: thumb has associated html content 120 if($(target).next().hasClass('fancybox-html')){ 121 122 123 //check if stack order should be displayed 124 125 if ($(target).next().length && $(obj).attr('rel')){ 126 127 return '<span id="fancybox-title-over">' + '<div class="fancybox-num"> Image:'+(currentIndex + 1) + ' / ' + currentArray.length+'</div>'+($(target).next().html()) + '</span>'; 128 129 }else { 130 131 return '<span id="fancybox-title-over">' + ($(target).next().html()) + '</span>'; 132 133 } 134 135 136 //CASE 2: thumb is a part of a group and has a title only 137 } else if($(obj).attr('rel') && $(obj).attr('title')){ 138 139 return '<span id="fancybox-title-over">' + '<div class="fancybox-num"> Image:'+ (currentIndex + 1) + ' / ' + currentArray.length + '</div> '+ (title.length?''+title:'') + '</span>'; 140 141 142 //CASE 3: thumb has no info but belongs to group 143 } else if($(obj).attr('rel')) { 144 145 return '<span id="fancybox-title-over">' + '<div class="fancybox-num" style="margin-bottom:0px"> Image:'+(currentIndex + 1) + ' / ' + currentArray.length+'</div>'+'</span>'; 146 147 148 //CASE 4: thumb has a title only 149 } else if($(obj).attr('title')) { 150 151 //if image is not associated with group, hide image numbering 152 return '<span id="fancybox-title-over">' +(title.length ?''+title :'') + '</span>'; 153 154 155 //CASE 5: no info & does not belong to group 156 }else{ 157 158 // hide title overlay 159 $('#fancybox-title-over').hide(); 160 161 } 162 163 }, 164 165 166 //animate image info on complete 167 'onComplete':function(){ 168 169 //check for smallest breakpoints 170 if($(window).width()<=767){ 171 172 173 $('.fancybox-title-over').css({display:'none'}); 174 175 }else{ 176 177 $('.fancybox-title-over').hide().fadeIn('slow'); 178 179 } 180 181 } 182 183 }); 184 185 186 /*lightbox-media 187 -------------------------------*/ 188 189 $('a.media').fancybox({ 190 191 'transitionIn' : lightboxTransition, 192 'transitionOut' : lightboxTransition, 193 'padding' : '0', 194 'titlePosition' : 'outside', 195 'width' : videoWidth, 196 'height' : videoHeight, 197 'overlayOpacity' : overlayOpacity, 198 'overlayColor' : overlayColor, 199 'autoscale' : false, 200 'type' : 'iframe', 201 'swf' : { 202 'wmode' : 'transparent', 203 'allowfullscreen' : 'true'}, 204 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { 205 206 207 var obj = currentArray[ currentIndex ] //get current image 208 var target = $(obj).parent(); //get its container 209 210 if($(target).next().hasClass('fancybox-html')){ 211 212 213 return '<span>' + ($(target).next().html()) + '</span>'; 214 215 216 }; 217 }, 218 219 //animate image info on complete 220 'onComplete':function(){ 221 222 //check for smallest breakpoints
223 if($(window).width()<=767){ 224 225 $('.fancybox-title-outside').css({display:'none'}); 226 227 }else{ 228 229 $('.fancybox-title-outside').hide().fadeIn('slow'); 230 231 } 232 233 } 234 235 }); 236 237}); 238}
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.