1document.addEventListener("DOMContentLoaded", () => { 2 const rowItems = document.querySelector(".logosPatrocinadoresV2__ul"), 3 skills = document.querySelectorAll(".logosPatrocinadoresV2__ul li "), 4 arrowleft = document.querySelector(".logosPatrocinadoresV2__button--left"), 5 arrowRight = document.querySelector(".logosPatrocinadoresV2__button--right"); 6 7 arrowRight.addEventListener("click", () => { 8 rowItems.scrollLeft += rowItems.offsetWidth; 9 }); 10 11 arrowleft.addEventListener("click", () => { 12 rowItems.scrollLeft -= rowItems.offsetWidth; 13 }); 14 15 let windowUrl = location.href; 16 17 if ( 18 windowUrl === `${location.protocol}//${location.host}/Paginas/inicio.aspx` || 19 windowUrl === `${location.protocol}//${location.host}/Paginas/Inicio.aspx` || 20 windowUrl === `${location.protocol}//${location.host}/paginas/Inicio.aspx` 21 ) { 22 const calendarHome = document.querySelector(".calendarHome"); 23 24 setTimeout(() => { 25 calendarHome.classList.remove("calendarHome--hide"); 26 }, 4200); 27 } 28 29 SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () { 30 var context = SP.ClientContext.get_current(); 31 var user = context.get_web().get_currentUser(); 32 context.load(user); 33 context.executeQueryAsync( 34 function () { 35 var userName = user.get_title(); 36 if (userName) { 37 document.getElementById('suiteBar').style.display = 'block'; 38 document.getElementById('s4-ribbonrow').style.display = 'block'; 39 document.getElementById('zz6_Menu').innerText = userName; 40 } 41 }, 42 function (sender, args) { 43 console.log('Error: ' + args.get_message()); 44 } 45 ); 46 }); 47});
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.