-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
40 lines (38 loc) · 909 Bytes
/
Copy pathapp.js
File metadata and controls
40 lines (38 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//Q: no 1
function greet(username) {
Swal.fire({
title: 'Thank You!',
text: 'Welcome ' + username + ' to our website 😊',
icon: 'success',
confirmButtonText: 'OK'
});
}
//Q: no 2
function add() {
Swal.fire({
title: 'Thank You!',
text: 'Thanks for purchasing this mobile set 😊',
icon: 'success',
confirmButtonText: 'OK'
});
}
function remove() {
Swal.fire({
title: 'Thank You!',
text: 'Are u sure you want to remove this item from cart?',
icon: 'success',
confirmButtonText: 'OK'
});
}
//Q: no 3
function deleteBtn(e) {
var row = e.parentNode.parentNode;
row.remove()
}
//Q: no 4
function beforeImg(e) {
e.src = "https://data.textstudio.com/output/sample/animated/6/5/9/4/copy-1-14956.gif"
}
function afterImg(e) {
e.src = "img/Screenshot 2026-02-22 205013.png"
}