1// This function returns Internet Explorer's major version number, 2// or 0 for others. It works by finding the "MSIE " string and 3// extracting the version number following the space, up to the decimal 4// point, ignoring the minor version number 5function msieversion() 6{ 7 var ua = window.navigator.userAgent 8 var msie = ua.indexOf ( "MSIE " ) 9 10 if ( msie > 0 ) // If Internet Explorer, return version number 11 return parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) 12 else // If another browser, return 0 13 return 0 14} 15 16function testMsiVersion() 17{ 18 var versioneIE; 19 20 versioneIE = msieversion(); 21 22 if (versioneIE > 0 && versioneIE < 9) 23 window.location = "./browsernonsupportato.html"; 24} 25 26$(document).ready(function(){ 27 28 $(document).on('click', '.dropdown-toggle-submenu', function(e) { 29 30 e.stopPropagation(); 31 e.preventDefault(); // Prevent navigation for parent item 32 33 var submenu = $(this).next('.dropdown-menu'); 34 35 submenu.toggle(); 36 37 }); 38 39}); 40 41/* 42 Funzione necessaria se il testo caricato dal database contiene i div che vengono resi visibili al click. 43 Invece di fare altre pagine (come Download, Amministrazione Trasparente, ecc...) possiamo creare una pagina come fatto con il testo 183 (un test creato solo per provare questa funzione). 44 Ogni div deve essere contenuto in un faq-c e deve contenere un faq-a ed un faq-t come nella pagina download. Solo che si chiama l'onclick sul div (passando this) anziché assegnare l'evento con jquery (cosa che spesso non funziona se si ricarica la pagina, come se gli oggetti faq-q non fossero ancora stati caricati. 45*/ 46function faq_click(div) { 47 48 var container = $(div).parents(".faq-c"); 49 var answer = container.find(".faq-a"); 50 var trigger = container.find(".faq-t"); 51 52 answer.slideToggle(200); 53 54 if (trigger.hasClass("faq-o")) { 55 trigger.removeClass("faq-o"); 56 } 57 else { 58 trigger.addClass("faq-o"); 59 } 60}
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.