-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (70 loc) · 1.59 KB
/
index.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html lang="id">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Percabangan if else</title>
<style>
* {
color: white;
text-decoration: none;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
body {
margin: 0;
padding: 0;
}
h2,
h3 {
color: black;
font-size: 34px;
text-align: center;
margin-top: 100px;
}
footer {
background-color: black;
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 70px;
text-align: center;
}
footer p {
font-size: 20px;
line-height: 70px;
}
</style>
</head>
<body>
<script>
const a = confirm(`Tolong Diisi Ya!😁`);
if (a) {
const b = prompt("Tolong Diisi Ya!");
if (b) {
if (b == Number(b)) {
document.writeln(`<h3>Njirr, kenapa angka \(${b}\)</h3>`);
} else if (b) {
document.writeln(`<h2>Aku Cinta Kamu, ${b}😘❤️</h2>`);
} else {
alert(`Kenapa malah gak diisi? :\(`);
}
} else {
alert("Kenapa malah gak diisi?");
}
} else {
alert(`Kenapa malah gak pencet ok? :\(`);
}
</script>
<footer>
<p>
Copyright by
<a href="https://www.facebook.com/SaputraSanZs" target="_blank"
><b>@Randy</b></a
>
</p>
</footer>
</body>
</html>