1// show toast message 2function show_toast( type, message, heading = true ) { 3 if( type == 'error' ) { 4 heading_data = ''; 5 if( heading ) { 6 heading_data = eventprime_toast.error; 7 } 8 jQuery.toast({ 9 heading: heading_data, 10 text: message, 11 position: 'top-right', 12 stack: false, 13 hideAfter: 5000, 14 bgColor: '#dc3545', 15 textColor: 'white' 16 }); 17 } 18 if( type == 'success' ) { 19 heading_data = ''; 20 if( heading ) { 21 heading_data = eventprime_toast.success; 22 } 23 jQuery.toast({ 24 heading: heading_data, 25 text: message, 26 position: 'top-right', 27 stack: false, 28 hideAfter: 5000, 29 bgColor: '#218838', 30 textColor: 'white' 31 }); 32 } 33 if( type == 'warning' ) { 34 heading_data = ''; 35 if( heading ) { 36 heading_data = eventprime_toast.warning; 37 } 38 jQuery.toast({ 39 heading: heading_data, 40 text: message, 41 position: 'top-right', 42 stack: false, 43 hideAfter: 5000, 44 bgColor: '#d39e00', 45 textColor: '#212529' 46 }); 47 } 48} 49 50// show toast message 51function show_admin_toast( type, message, heading = true ) { 52 if( type == 'error' ) { 53 heading_data = ''; 54 if( heading ) { 55 heading_data = eventprime_toast.error; 56 } 57 jQuery.toast({ 58 heading: heading_data, 59 text: message, 60 position: 'bottom-left', 61 stack: false, 62 hideAfter: 5000, 63 bgColor: '#dc3545', 64 textColor: 'white' 65 }); 66 } 67 if( type == 'success' ) { 68 heading_data = ''; 69 if( heading ) { 70 heading_data = eventprime_toast.success; 71 } 72 jQuery.toast({ 73 heading: heading_data, 74 text: message, 75 position: 'bottom-left', 76 stack: false, 77 hideAfter: 5000, 78 bgColor: '#218838', 79 textColor: 'white' 80 }); 81 } 82 if( type == 'warning' ) { 83 heading_data = ''; 84 if( heading ) { 85 heading_data = eventprime_toast.warning; 86 } 87 jQuery.toast({ 88 heading: heading_data, 89 text: message, 90 position: 'bottom-left', 91 stack: false, 92 hideAfter: 5000, 93 bgColor: '#d39e00', 94 textColor: '#212529' 95 }); 96 } 97}
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.