1function toggleRowState(row){row.classList.toggle('socialshare__row--disabled');row.classList.toggle('socialshare__row--enabled');const shareTexts=row.querySelectorAll('.socialshare__text');const shareIcon=row.querySelector('.mdi-share');const socialIcons=row.querySelector('.socialshare__list');shareTexts.forEach((text)=>text.classList.toggle('hidden'));if(shareIcon){shareIcon.classList.toggle('hidden')} 2if(socialIcons){socialIcons.classList.toggle('hidden')}} 3function handleSocialEvent(event){const socialRow=event.target.closest('.socialshare__row');if(!socialRow){return} 4if(event.type==='keydown'&&!['Enter',' '].includes(event.key)){return} 5const activeRows=document.querySelectorAll('.socialshare__row--enabled');if(activeRows){activeRows.forEach(row=>{if(row!==socialRow){toggleRowState(row)}})} 6toggleRowState(socialRow)} 7function initializeSocialShare(){setupAccessibility();document.addEventListener('click',(event)=>{const socialRow=event.target.closest('.socialshare__row');if(socialRow){handleSocialEvent(event);return} 8closeAllActiveRows()});document.addEventListener('keydown',(event)=>{if(event.key==='Escape'){closeAllActiveRows();return} 9const socialRow=event.target.closest('.socialshare__row');if(!socialRow){return} 10handleSocialEvent(event)})} 11function setupAccessibility(){document.querySelectorAll('.socialshare__row').forEach(setSocialComponentAttributes);const container=document.querySelector('#main-content');if(!container){return} 12const observer=new MutationObserver((mutationsList)=>{mutationsList.forEach((mutation)=>{mutation.addedNodes.forEach((node)=>{if(node.nodeType===1){[node,...node.querySelectorAll('.socialshare__row')].filter(el=>el.classList&&el.classList.contains('socialshare__row')).forEach(setSocialComponentAttributes)}})})});observer.observe(container,{childList:!0,subtree:!0})} 13function setSocialComponentAttributes(row){row.setAttribute('tabindex','0');row.setAttribute('role','button');row.setAttribute('aria-label','Apri menu condivisione social')} 14function closeAllActiveRows(){const activeRows=document.querySelectorAll('.socialshare__row--enabled');activeRows.forEach(row=>toggleRowState(row))} 15if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initializeSocialShare)}else{initializeSocialShare()}
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.