PageSourceSearch

https://wongkarnpat.com/includes/alert/script.js

js wongkarnpat.com collected 2026-10-02 19:38:55 UTC 890 bytes, 30 lines download raw bytes

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.