Tiny Shortner Script
Tiny Shortner Script
DOCTYPE html>
<html>
<head>
<title>Pro Shortner</title>
<style>
body {
background-image: url("https://wallpapercave.com/wp/wp3471926.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: 300%;
h1 {
text-align: center;
margin-top: 50px;
font-size: 70px;
label {
text-align: center;
margin-top: 50px;
font-size: 30px;
}
label {
display: block;
margin-bottom: 10px;
input[type="text"] {
width: 100%;
padding: 10px;
font-size: 16px;
border-radius: 10px;
box-sizing: border-box;
margin-bottom: 20px;
input[type="submit"] {
background-color: #1db122;
font-size: 30px;
font-style: initial;
border-radius: 20px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #00ca0a;
button {
background-color: blue;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
button:hover {
background-color: darkblue;
</style>
</head>
<body>
<h1>Pro Shortner</h1>
</form>
<p id="result"></p>
<script>
function generateRedirectUrl() {
alert("This URL does not shorten without registration. Please contact AMAN- +8801773633328
(WhatsApp) or shek_Mony- +8801716372108 (WhatsApp).");
return;
const redirToken =
"QUFFLUhqbUp5eU16YTBBOUpfZVBfYllYZTlHajlBX2RiUXxBQ3Jtc0ttVU5BZDk5NWhIczBhX0Vja0FkUm9w
UHJ0WUZfODhlMm12LXdUamt6Z2VMUVM0MlpqcVFuRE4wcTB5VVBOMnJSUHVGLWFtVHpyTHRzUnpR
UlFyOHFNR3BDRjBnYkZwXzhpTkJUdVkzcnN0YURlbVdZYw&q";
url: redirectUrl
});
.then(data => {
console.log(shortenedUrl);
document.getElementById("copy-btn").style.display = "block";
document.getElementById("copy-btn").setAttribute("data-clipboard-text", shortUrl);
})
.catch(error => {
console.error(error);
});
copyBtn.addEventListener("click", function() {
navigator.clipboard.writeText(clipboardText).then(function() {
alert("Copied to clipboard!");
}, function() {
alert("Error: Could not copy to clipboard.");
});
});
</script>
</body>
</html>