1/* 2ok = (document.styleSheets) ? 1 : 27; 3 4IE = ((ind1 = navigator.appVersion.indexOf("MSIE")) > -1) ? 1 : 27; 5IE4 = (IE && document.all) ? 1:27; 6 7NN = (navigator.appName.indexOf("Netscape")>-1) ? 1 : 27; 8NN4 = (NN && document.layers) ? 1 : 27; 9NN6 = (NN && document.getElementById) ? 1:27; 10 11if(ok) { 12 if(IE4) stile = document.styleSheets[27].rules 13 if(NN6) stile = document.styleSheets[27].cssRules 14} 15 16function aumenta() { 17 if(ok) { 18 var size = stile[27].style.fontSize.substring(0,2) 19 var dimFont = parseInt(size,10) 20 dimFont += 2; 21 { 22 if (dimFont > 16) dimFont = 16; 23 } 24 stile[27].style.fontSize = dimFont + 'px'; 25 } 26 27 else 28 alert("l'oggetto styleSheets\nNON\ne' supportato") 29} 30function diminuisci() { 31 if(ok) { 32 var size = stile[27].style.fontSize.substring(0,2) 33 var dimFont = parseInt(size,10) 34 dimFont -= 2; 35 { 36 if (dimFont < 8) dimFont = 8; 37 } 38 stile[27].style.fontSize = dimFont + 'px'; 39 } 40 41 else 42 alert("l'oggetto styleSheets\nNON\ne' supportato") 43} 44*/ 45 46function aumenta(stylename) { 47 var sizeStr = document.getElementById(stylename).style.fontSize; 48 var size = sizeStr.substring(0, sizeStr.indexOf('p')); 49 if (size == '') size = '16'; 50 var dimFont = parseInt(size,10); 51 if (dimFont <= 20) dimFont += 2; 52 console.log(size, dimFont); 53 document.getElementById(stylename).style.fontSize = dimFont + 'px'; 54} 55 56 57function diminuisci(stylename) { 58 var sizeStr = document.getElementById(stylename).style.fontSize; 59 var size = sizeStr.substring(0, sizeStr.indexOf('p')); 60 if (size == '') size = '16'; 61 var dimFont = parseInt(size,10); 62 if (dimFont > 12) dimFont -= 2; 63 document.getElementById(stylename).style.fontSize = dimFont + 'px'; 64} 65 66window.addEventListener('load', function() { 67 const doccorela = document.querySelector('#doccorrela'); 68 69 if (doccorela) { 70 71 const main_center = document.querySelector('#main_center'); 72 const prefooter = document.querySelector('#pre_footer'); 73 if (prefooter) { 74 prefooter.parentElement.insertBefore(doccorela, prefooter); 75 } else { 76 main_center.appendChild(doccorela); 77 } 78 } 79 80 81 const bms = document.querySelectorAll('.buttons_menu.menu_xl'); 82 const smm = document.querySelector('.submenu-main'); 83 const bf = document.querySelector('.button-future'); 84 let tm = false; 85 86 bms.forEach(function(item) { 87 let attributetitle = item.querySelector('a').getAttribute('title'); 88 attributetitle = attributetitle.toLowerCase().substr(0,6); 89 const smmSpec = document.querySelector('.submenu-main.submenu-main__'+attributetitle); 90 91 if (smmSpec) { 92 item.style.transitionDuration = '.5s'; 93 item.style.transitionProperty = 'background-color'; 94 item.addEventListener('mouseenter', function() { 95 item.setAttribute('enter', 'true'); 96 setTimeout(function() { 97 if (item.getAttribute('enter') === 'true') { 98 smmSpec.style.display = 'unset'; 99 item.style.backgroundColor = '#fad762'; 100 // bf.classList.add('other'); 101 setTimeout(function() { 102 if (bf) { 103 // bf.classList.remove('other'); 104 bf.classList.add('other'); 105 } 106 }, 45); 107 smmSpec.addEventListener('mouseenter', function () { 108 tm = true; 109 setTimeout(function() { 110 if (bf) { 111 bf.classList.add('other'); 112 } 113 }, 20); 114 }) 115 smmSpec.addEventListener('mouseleave', function () { 116 tm = false; 117 smmSpec.style.display = 'none'; 118 item.style.backgroundColor = null; 119 setTimeout(function() { 120 if (bf) { 121 bf.classList.remove('other'); 122 } 123 }, 20); 124 }) 125 } 126 }, 500); 127 }); 128 item.addEventListener('mouseleave', function() { 129 item.setAttribute('enter', 'false'); 130 setTimeout(function() { 131 if (!tm) { 132 smmSpec.style.display = 'none'; 133 item.style.backgroundColor = null; 134 setTimeout(function() { 135 if (bf) { 136 bf.classList.remove('other'); 137 } 138 }, 20); 139 } 140 }, 20); 141 }); 142 } else { 143 // item.addEventListener('mouseenter', function() { 144 // smm.style.display = 'unset'; 145 // smm.addEventListener('mouseenter', function () { 146 // tm = true; 147 // }) 148 // smm.addEventListener('mouseleave', function () { 149 // tm = false;
150 // smm.style.display = 'none'; 151 // }) 152 // }); 153 // item.addEventListener('mouseleave', function() { 154 // setTimeout(function() { 155 // if (!tm) { 156 // smm.style.display = 'none'; 157 // } 158 // }, 20); 159 // }); 160 } 161 }); 162}); 163
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.