PageSourceSearch

https://matexmotors.com/Scripts/js/sweet-alert.js

js matexmotors.com collected 2026-10-02 00:53:20 UTC 2,519 bytes, 114 lines download raw bytes

1$(document).ready(function() {
2	// Message
3	$("#but1").click(function() {
4		var message = $("#message").val();
5		if (message == "") {
6			message = "Your message";
7		}
8		swal(message);
9	});
10	// With message and title
11	$("#but2").click(function() {
12		var message = $("#message").val();
13		var title = $("#title").val();
14		if (message == "") {
15			message = "Your message";
16		}
17		if (title == "") {
18			title = "Your message";
19		}
20		swal(title, message);
21	});
22	// Show image
23	$("#but3").click(function() {
24		var message = $("#message").val();
25		var title = $("#title").val();
26		if (message == "") {
27			message = "Your message";
28		}
29		if (title == "") {
30			title = "Your message";
31		}
32		swal({
33			title: title,
34			text: message,
35			imageUrl: '../assets/images/brand/logo.png'
36		});
37	});
38	// Timer
39	$("#but4").click(function() {
40		var message = $("#message").val();
41		var title = $("#title").val();
42		if (message == "") {
43			message = "Your message";
44		}
45		if (title == "") {
46			title = "Your message";
47		}
48		message += "(close after 2 seconds)";
49		swal({
50			title: title,
51			text: message,
52			timer: 2000,
53			showConfirmButton: false
54		});
55	});
56	//
57	$("#click").click(function() {
58		var type = $("#type").val();
59		swal({
60			title: "Title",
61			text: "Your message",
62			type: type
63		});
64	});
65	// Prompt
66	$("#prompt").click(function() {
67		swal({
68			title: "Add",
69			text: "Enter your message",
70			type: "input",
71			showCancelButton: true,
72			closeOnConfirm: false,
73			inputPlaceholder: "Your message"
74		}, function(inputValue) {
75			if (inputValue != "") {
76				swal("Input", "You have entered : " + inputValue);
77			}
78		});
79	});
80	// Confirm
81	$("#confirm").click(function() {
82		swal({
83			title: "Alert",
84			text: "Are you really want to exit",
85			type: "warning",
86			showCancelButton: true,
87			confirmButtonText: 'Exit',
88			cancelButtonText: 'Stay on the page'
89		});
90	});
91	$("#click").click(function() {
92		swal('Congratulations!', 'Your message has been succesfully sent', 'success');
93	});
94	$("#click1").click(function() {
95		swal({
96			title: "Alert",
97			text: "Waring alert",
98			type: "warning",
99			showCancelButton: true,
100			confirmButtonText: 'Exit',
101			cancelButtonText: 'Stay on the page'
102		});
103	});
104	$("#click2").click(function() {
105		swal({
106			title: "Alert",
107			text: "Danger alert",
108			type: "error",
109			showCancelButton: true,
110			confirmButtonText: 'Exit',
111			cancelButtonText: 'Stay on the page'
112		});
113	});
114});

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.