1// JavaScript Document 2//$(function() { 3 4 function Toast(type, css, msg) { 5 this.type = type; 6 this.css = css; 7 this.msg = msg; 8 } 9 10 var toasts = [ 11 new Toast('error', 'toast-top-center', 'à¸à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸! à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸ªà¹à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¹'), 12 new Toast('success', 'toast-top-center', 'สà¹à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸ªà¸³à¹à¸£à¹à¸') 13 ]; 14 15 toastr.options.positionClass = 'toast-top-full-width'; 16 toastr.options.extendedTimeOut = 0; //1000; 17 toastr.options.timeOut = 1000; 18 toastr.options.fadeOut = 250; 19 toastr.options.fadeIn = 250; 20 21 function delayToasts(i) { 22 window.setTimeout(function () { showToast(i); }, 500); 23 } 24 25 function showToast(i) { 26 var t = toasts[i]; 27 toastr.options.positionClass = t.css; 28 toastr[t.type](t.msg); 29 } 30//})
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.