1document.addEventListener('DOMContentLoaded', function() { 2 var blocchi_prezzi = document.querySelectorAll('.gestendo_prezzi'); 3 blocchi_prezzi.forEach(function(blocco) { 4 var pulsanti_periodo = blocco.querySelectorAll('.gestendo_toggle_button'); 5 var prezzi_mese = blocco.querySelectorAll('.gestendo_prezzo_mese, .gestendo_periodo_mese'); 6 var prezzi_anno = blocco.querySelectorAll('.gestendo_prezzo_anno, .gestendo_periodo_anno'); 7 pulsanti_periodo.forEach(function(pulsante) { 8 pulsante.addEventListener('click', function() { 9 var periodo = pulsante.getAttribute('data_periodo'); 10 pulsanti_periodo.forEach(function(elemento) { elemento.classList.remove('active'); }); 11 pulsante.classList.add('active'); 12 prezzi_mese.forEach(function(elemento) { elemento.hidden = periodo !== 'mese'; }); 13 prezzi_anno.forEach(function(elemento) { elemento.hidden = periodo !== 'anno'; }); 14 }); 15 }); 16 blocco.querySelectorAll('.gestendo_vai_confronto').forEach(function(pulsante) { 17 pulsante.addEventListener('click', function() { 18 var confronto = blocco.querySelector('#gestendo_confronto'); 19 if (confronto) { confronto.scrollIntoView({behavior: 'smooth', block: 'start'}); } 20 }); 21 }); 22 }); 23});
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.