-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path22-Multiple-Contact.html
More file actions
112 lines (100 loc) · 2.56 KB
/
22-Multiple-Contact.html
File metadata and controls
112 lines (100 loc) · 2.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Numbers</title>
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(to right, #667eea, #764ba2);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
background-color: rgba(255, 255, 255, 0.9);
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
max-width: 600px;
width: 90%;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.contact-list {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.contact-item {
background-color: rgba(255, 255, 255, 0.8);
padding: 15px;
margin-bottom: 20px;
border-radius: 10px;
width: 90%;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.contact-item span {
color: #333;
}
.serial {
font-weight: bold;
margin-right: 10px;
color: #007bff;
}
.contact-button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
margin-top: 20px;
font-size: 16px;
}
.contact-button:hover {
background-color: #0056b3;
}
@media screen and (max-width: 600px) {
.contact-item {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Contact Numbers</h1>
<ul class="contact-list">
<li class="contact-item"><span class="serial">1.</span> Sakil: <span id="sakil"></span></li>
<li class="contact-item"><span class="serial">2.</span> RAKIB: <span id="rakib"></span></li>
<li class="contact-item"><span class="serial">3.</span> Rajib: <span id="rajib"></span></li>
</ul>
<button class="contact-button" onclick="displayNumbers()">Show Numbers</button>
</div>
<script>
function displayNumbers() {
var sakilNumbers = ["123456789", "987654321", "555555555"];
var rakibNumbers = ["111111111", "222222222", "333333333"];
var rajibNumbers = ["444444444", "555555555", "666666666"];
document.getElementById("sakil").textContent = sakilNumbers.join(", ");
document.getElementById("rakib").textContent = rakibNumbers.join(", ");
document.getElementById("rajib").textContent = rajibNumbers.join(", ");
}
</script>
</body>
</html>