1jQuery(document).ready(function ($) { 2 3 $.toastMessage = function(message, type = 'success') { 4 5 let customClasses = 'bg-bg-success-tonal border-bg-success-a'; 6 7 if (type === 'warning') { 8 customClasses = 'bg-bg-warning-tonal border-bg-warning-a'; 9 } else if (type === 'error') { 10 customClasses = 'bg-bg-error-tonal border-bg-error-a'; 11 } 12 13 const toast = ` 14 <div id="toastMessage" class="fixed z-[99999999] top-6 left-1/2 -translate-x-1/2 ${customClasses} text-t-primary border rounded-[32px] px-4 py-2 flex items-center gap-2 shadow-lg"> 15 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 16 <circle cx="12" cy="12.0005" r="9" fill="#157446" stroke="#157446" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> 17 <path d="M8.44531 12.3395L10.6123 14.5065L10.5983 14.4925L15.4873 9.60352" stroke="#F8F9FC" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> 18 </svg> 19 <span class="text-button3">${message}</span> 20 </div> 21 `; 22 23 $('body').append(toast); 24 setTimeout(function() { 25 $('#toastMessage').remove(); 26 }, 3000); 27 } 28 29});
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.