1$(function() { 2 $('a#block-img-link').each(function(){ 3 if($(this).data("external-link")=="" && $(this).data("section-link")==""){ 4 $(this).addClass("nohover"); 5 }else{ 6 if($(this).data("external-link")!=""){ 7 $(this).attr('href', $(this).data("external-link")); 8 } 9 if($(this).data("section-link")!=""){ 10 $(this).attr('href', $(this).data("section-link")) 11 } 12 } 13 }); 14 $('a#block-img-link').click(function(event){ 15 if(!$(event.target).parent().attr('href')){ 16 return false; 17 } 18 }); 19 $('a[href*=#]:not([href=#])').click(function() { 20 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 21 var target = $(this.hash); 22 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 23 if (target.length) { 24 $('html,body').animate({ 25 scrollTop: target.offset().top 26 }, 1000); 27 return false; 28 } 29 } 30 }); 31 $('#home-slider .item').eq(0).addClass('active'); 32 33 $('#custom-social-icon-link img').attr('title', $('#custom-social-icon-link').data('hover-text')); 34 35 $('.degradeVert, .degradeOrange, .degradeViolet, .degradeGris, .degradeBleu').each(function() { 36 var spanCount = $(this).find('span').length; 37 if(spanCount > 0) { 38 var percent = ($(this).find('span').width() / $(this).width() * 100) + 5; 39 var css = $(this).css('border-image'); 40 css = css.replace('0%', percent+'%'); 41 $(this).css('border-image', css); 42 } 43 }); 44 45 fixMenuLinks(); 46 47}); 48 49function fixMenuLinks() { 50 var initial_padding = 15; 51 $('#main-menu ul li a').each(function() { 52 if ($(this).parent().parent().hasClass('nav')) { 53 if ($(window).width() > 767) { 54 var padding = $(this).css('padding-bottom'); 55 if (!$.isNumeric(padding)) { 56 padding = parseInt(padding); 57 } 58 if ($(this).outerHeight() < $(this).parent().outerHeight()) { 59 var height_diff = $(this).parent().outerHeight() - $(this).outerHeight(); 60 $(this).css('padding-bottom', padding+height_diff); 61 } 62 } else { 63 $(this).css('padding-bottom', initial_padding); 64 } 65 } 66 }); 67} 68 69$(window).resize(fixMenuLinks);
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.