-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (135 loc) · 3.57 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Make a WhatsApp Call</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/css/intlTelInput.css">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f1f1f1;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.app-container {
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
animation: fade-in 0.6s ease;
}
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
animation: fade-in 0.6s ease;
}
#message {
text-align: center;
color: #ff0000;
margin-bottom: 10px;
animation: fade-in 0.6s ease;
}
#form {
display: flex;
flex-direction: column;
animation: fade-in 0.6s ease;
}
#phone-container {
display: flex;
align-items: center;
margin-bottom: 20px;
animation: fade-in 0.6s ease;
}
#phone {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
text-align: center; /* Set text alignment to center */
animation: fade-in 0.6s ease;
}
button[type="submit"] {
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
animation: fade-in 0.6s ease;
}
button[type="submit"]:hover {
background-color: #45a049;
}
p {
color: #555;
margin-bottom: 10px;
animation: fade-in 0.6s ease;
}
ol {
padding-left: 20px;
margin-bottom: 20px;
}
li {
margin-bottom: 10px;
}
li:last-child {
margin-bottom: 0;
}
</style>
</head>
<body>
<div class="app-container">
<h1>WhatsApp Call App</h1>
<p id="message"></p>
<form id="form" onsubmit="makeCall(); return false;">
<div id="phone-container">
<input id="phone" type="tel" name="phone" placeholder="(+880)1966644457" style="padding: 10px;" />
</div>
<p>Follow these steps:</p>
<ol>
<li>Select your country flag.</li>
<li><b>Enter your phone number without the country code and zero.</b></li>
<li>Click on the 'Make WhatsApp Call' button.</li>
<li>Wait for a few seconds.</li>
<li>Be redirected to WhatsApp.</li>
<li>Click on the call button.</li>
<li>Be redirected to WhatsApp call.</li>
<li>Talk with your friends. 😍😎🤩🤗</li>
</ol>
<p>Example: 1966644457</p>
<button type="submit">Make WhatsApp Call</button>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/intlTelInput.min.js"></script>
<script>
var input = document.querySelector("#phone");
window.intlTelInput(input, {
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js",
});
function makeCall() {
var phoneNumber = input.value;
var url = "https://wa.me/" + phoneNumber;
// Open the WhatsApp call URL
window.open(url);
}
</script>
</body>
</html>