-
Notifications
You must be signed in to change notification settings - Fork 6
/
script.js
33 lines (26 loc) · 918 Bytes
/
script.js
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
function rating() {
var review1 = document.getElementById("review1").value;
document.getElementById("systemResponse").innerHTML = review1;
const a = Number(review1);
switch (a) {
case 1:
reply = "Sorry for the inconvenience. Plz mail us at [email protected] for queries";
break;
case 2:
reply = "Sorry for the inconvenience. Plz mail us at [email protected] for queries";
break;
case 3:
reply = "Thank you for reviewing our site. We will work harder to make your experience better";
break;
case 4:
reply = "Thank you for giving us a 4 star rating. We'll work harder to give you a better experience";
break;
case 5:
reply = "Thank you for giving us a 5 star rating. Have a good day!";
break;
default:
reply = "Enter a number between 1 and 5";
break;
}
document.getElementById("systemResponse").innerHTML = reply;
}