Initial commit

This commit is contained in:
Reimar 2025-03-15 13:12:38 +01:00
commit 755ba9dee5
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

76
index.html Normal file
View File

@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Start a new WhatsApp Chat</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
function submit() {
var phone = document.getElementById("phone").value.replace(/\D/g, "");
location.href = "whatsapp://send/?phone=" + phone + "&type=phone_number";
}
</script>
<style>
body {
background-color: #EFE9DD;
text-align: center;
font-family: sans-serif;
}
h1 {
margin-bottom: 0;
opacity: 0.7;
}
p {
opacity: 0.5;
font-size: 0.85rem;
max-width: 400px;
margin: 1rem auto;
}
#desc {
margin-top: 2rem;
font-size: 0.75rem;
}
input {
padding: 0.5rem 1rem;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.5);
transition: all 150ms;
font-size: 1rem;
}
input:focus {
outline: none;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
button {
background-color: #1DAA61;
color: white;
border: none;
padding: 0.5rem 2rem;
margin: 1rem 0;
border-radius: 4px;
transition: all 150ms;
}
button:active {
background-color: #18864D;
}
button:focus {
outline: none;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<h1>Start a new WhatsApp chat</h1>
<p>Type a phone number, including country code</p>
<input id="phone" type="tel" placeholder="+1 (123) 456-7890" />
<br>
<button id="send" onclick="submit()">Submit</button>
<br>
<p id="desc">
By default, WhatsApp does not allow you to message
users who are not in your contacts list. This website
allows you to message any phone number through WhatsApp.
</small>
</body>
</html>