1$(document).ready(function(){ 2 if (deviceMobile) { 3 $("#footer .column-menu .sub p.title-menu").click(function(){ 4 if ($(this).parents(".sub").hasClass("active")) { 5 $(this).parents(".sub").removeClass("active"); 6 }else{ 7 $(".sub").removeClass("active"); 8 $(this).parents(".sub").addClass("active"); 9 } 10 }); 11 }else{ 12 var id; 13 id = $("#footer .wrapper-footer .column-menu .wrapper-top-menu > ul > li.sub").first().attr("menu-id"); 14 $("#footer .wrapper-footer .column-menu .wrapper-top-menu > ul > li.sub").first().addClass("active"); 15 $("#footer .wrapper-childs-menu ul[submenu-id='"+id+"']").show(); 16 17 $("#footer .column-menu .sub p.title-menu").click(function(){ 18 var id = $(this).parents(".sub").attr("menu-id"); 19 20 if (!$(this).parents(".sub").hasClass("active")) { 21 $("#footer .wrapper-top-menu .sub.active").removeClass("active"); 22 $("#footer .wrapper-childs-menu ul").hide(); 23 $("#footer .wrapper-childs-menu ul[submenu-id='"+id+"']").show(); 24 $(this).parents(".sub").addClass("active"); 25 }else{ 26 $("#footer .wrapper-top-menu .sub.active").removeClass("active"); 27 $("#footer .wrapper-childs-menu ul").hide(); 28 } 29 }); 30 } 31 $('#scrollTop').on('click', function(){ 32 $('html, body').animate({scrollTop: 0}, 'fast'); 33 }); 34 35 if (!deviceMobile) $(".home .container-home .wrapper-slider").append('<span id="scrollSlider"></span>'); 36 37 $('body').on('click', '#scrollSlider', function(){ 38 $('html, body').animate({scrollTop: $("#main.home .wrapper-blocks").offset().top - $("#header").outerHeight()}, 'fast'); 39 }); 40 41 if ($(".wrapper-blocks .structuredTextTable .contentTitles_subtitle").length > 0){ 42 var parents = $(".wrapper-blocks .structuredTextTable .contentTitles_subtitle").parents(".structuredText"); 43 var objTMP; 44 $.each(parents, function(k, v){ 45 objTMP = getStyles($(v).attr("style")); 46 if (objTMP['text-align'] == "center" || objTMP['text-align'].match(/center/)) $(v).addClass("alignCenter"); 47 if (objTMP['text-align'] == "right" || objTMP['text-align'].match(/right/)) $(v).addClass("alignRight"); 48 }); 49 } 50 51 var style = ''; 52 $(".contentTitles_subtitle").each(function(k, v){ 53 $(this).attr("id", "contentTitles_subtitle_" + k); 54 var bgColor = $(this).css("color"); 55 if (rgb2hex(bgColor) != "#222222") style += '#contentTitles_subtitle_' + k + "::after {background-color: "+rgb2hex(bgColor)+" !important}"; 56 }); 57 $("body").append('<style>'+style+'</style>'); 58 59}); 60 61var hexDigits = new Array ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"); 62 63//Function to convert rgb color to hex format 64function rgb2hex(rgb) { 65 rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); 66 return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]); 67} 68 69function hex(x) { 70 return isNaN(x) ? "00" : hexDigits[(x - x % 16) / 16] + hexDigits[x % 16]; 71} 72 73function getStyles(css) { 74 var styles = {}; 75 if (!css) return styles; 76 if (css instanceof CSSStyleDeclaration) { 77 for (var i in css) { 78 if ((css[i]).toLowerCase) styles[(css[i]).toLowerCase()] = (css[css[i]]); 79 } 80 } else if (typeof css == "string") { 81 css = css.split("; "); 82 for (var i in css) { 83 var l = css[i].split(": "); 84 styles[l[0].toLowerCase()] = (l[1]); 85 } 86 } 87 return styles; 88} 89 90 91$(window).scroll(function(){ 92 scrollButton(); 93}); 94 95function scrollButton(){ 96 var footerVal = $(document).height() - $(window).height() - $('footer').outerHeight(); 97 98 if($(window).width() >= 1140) 99 if( $(window).scrollTop() >= footerVal ) $('#scrollTop').addClass('sticky'); else $('#scrollTop').removeClass('sticky'); 100}
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.