1(function ($) { 2 $(document).ready(function () { 3 4 window.klan_csc_fna_2026_mostra_alert = function klan_csc_fna_2026_mostra_alert(message, duration, top = 10, color = "#4CAF50") { 5 let id_elemento = 'klan_csc_fna_2026_mostra_alert'; 6 let notification = document.getElementById(id_elemento); 7 if (notification) { 8 notification.parentNode.removeChild(notification); 9 } 10 11 // Crea nuova notifica 12 notification = document.createElement('div'); 13 notification.id = id_elemento; 14 notification.textContent = message; 15 notification.style.position = "fixed"; 16 notification.style.top = top + "%"; 17 notification.style.left = "50%"; 18 notification.style.transform = "translateX(-50%)"; 19 notification.style.padding = "10px 20px"; 20 notification.style.background = color; 21 notification.style.color = "white"; 22 notification.style.borderRadius = "5px"; 23 notification.style.boxShadow = "0 4px 8px rgba(0,0,0,0.2)"; 24 notification.style.zIndex = "9999"; 25 document.body.appendChild(notification); 26 27 // Rimuove la notifica dopo la durata specificata 28 setTimeout(function () { 29 if (notification.parentNode) { 30 notification.parentNode.removeChild(notification); 31 } 32 }, duration * 1000); // Converti i secondi in millisecondi 33 } 34 35 function getUrlParameter(name) { 36 name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); 37 var regex = new RegExp('[?&]' + name + '=([^&#]*)'); 38 var results = regex.exec(window.location.search); 39 return results === null ? null : decodeURIComponent(results[1]); 40 } 41 // Trigger del click sul pulsante con id="myButton" 42 var id_pulsante = getUrlParameter('klan_id_pulsante'); 43 if ($('#' + id_pulsante).length > 0) { 44 $('#' + id_pulsante).click(); 45 } 46 }); 47 48})(jQuery);
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.