-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSwitch.html
More file actions
54 lines (47 loc) · 1.53 KB
/
Switch.html
File metadata and controls
54 lines (47 loc) · 1.53 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Month</title>
<script>
function getmonth(){
let MonthNo = document.getElementById("MonthNo").value;
MonthNo1 = parseInt(MonthNo);
switch(MonthNo1){
case 1 : document.getElementById("result").innerHTML = "Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot."
break;
case 2 : alert("jan1");
break;
case 3 : alert("jan2");
break;
case 4 : alert("jan3");
break;
case 5 : alert("ja4n");
break;
case 6 : alert("jan5");
break;
case 7 : alert("jan6");
break;
case 8 : alert("jan7");
break;
case 9 : alert("jan8");
break;
case 10 : alert("jan23");
break;
case 11 : alert("jan9");
break;
case 12 : alert("jan99");
break;
default : alert("Enter only 1 - 12 Number");
}
}
</script>
</head>
<body>
<label>Enter Month Number </label>
<input type="text" id="MonthNo">
<button onclick="getmonth()">Get Result</button>
<h1 id="result"></h1>
</body>
</html>