PageSourceSearch

https://tairseachcogg.ie/js/custom-alert.js

js tairseachcogg.ie collected 2026-10-03 00:18:47 UTC 2,812 bytes, 104 lines download raw bytes

1/*/*const { Button } = require("bootstrap");*/
2
3function showInfoMsg(aTitle, aMessage) {
4    swal({
5        icon: "info",
6        title: ReplaceIrshSpecialCharcter(aTitle),
7        text: ReplaceIrshSpecialCharcter(aMessage),
8        timer: 2500,
9        buttons:languageLableJson.ButtonOk,
10    });
11}
12
13function showErrorMsg(aMessage) {
14    swal({
15        text: ReplaceIrshSpecialCharcter(aMessage),
16        icon: "warning",  
17        buttonColor: "#bf1e2d",
18        buttons: languageLableJson.ButtonOk,
19      });
20}
21
22function showErrorMsgWithDelay(aMessage, time) {
23    swal({
24        text: ReplaceIrshSpecialCharcter(aMessage),
25        icon: "warning",
26        buttonColor: "#bf1e2d",
27        timer: time,
28        buttons:languageLableJson.ButtonOk,
29    });
30}
31
32
33function showErrorMsg_WithFocus(aMessage, focusField) {
34    swal({
35        text: ReplaceIrshSpecialCharcter(aMessage),
36        icon: "warning",  
37        buttons:languageLableJson.ButtonOk,
38    }).then(function () {
39      
40        if (focusField != null && focusField != undefined && focusField != '') {
41            focusField.focus();
42        }
43    });
44}
45function sessionShowErrorMsgWithTitle(aTitle, aMessage) {
46    swal({
47        icon: "warning",
48        title: ReplaceIrshSpecialCharcter(aTitle),
49        text: ReplaceIrshSpecialCharcter(aMessage),
50        buttons: languageLableJson.ButtonOk,
51        closeOnClickOutside: false,       
52    }).then(function () {
53        if (aTitle.includes("session") == true) {
54            location.href = '/login/logout';
55        }
56
57    });
58}
59function showErrorMsgWithTitle(aTitle, aMessage) {   
60    swal({
61        icon: "warning",
62        title: ReplaceIrshSpecialCharcter(aTitle),
63        text: ReplaceIrshSpecialCharcter(aMessage) ,
64          buttons: languageLableJson.ButtonOk,
65    });
66}
67
68function showSuccessMsg(aMessage) {   
69    swal({
70        icon: "success",
71        text: ReplaceIrshSpecialCharcter(aMessage),
72        timer: 2500,
73        buttons:languageLableJson.ButtonOk,
74    });
75}
76
77function showSuccessMsgWithTitle(aTitle, aMessage) {   
78    swal({
79        icon: "success",
80        title: ReplaceIrshSpecialCharcter(aTitle),
81        text: ReplaceIrshSpecialCharcter(aMessage),
82        timer: 2500,
83        buttons:languageLableJson.ButtonOk,
84    });
85}
86
87
88function ShowErrorContactSiteMessage() {
89    swal({
90        icon: "warning",
91        title: languageLableJson.ErrorOccured,
92        buttons: languageLableJson.ButtonOk,
93    });
94}
95
96
97
98function ReplaceIrshSpecialCharcter(str) {
99    if (str == null || str == undefined) {
100        return "";
101    }
102    let result = str.replace(/á/g, 'á').replace(/ú/g, 'ú').replace(/é/g, 'é').replace(/í/g, 'í');
103    return result;
104}

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.