-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
56 lines (51 loc) · 3.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<link rel="icon" href="knot.png">
<title>Knot - URL Shortner Made By Using Google Form & Spreadsheet</title>
</head>
<body class="bg-gray-900">
<section class="text-gray-400 bg-gray-900 body-font">
<div class="container px-8 py-20 mx-auto flex flex-wrap items-center">
<div class="lg:w-3/5 md:w-1/2 md:pr-16 lg:pr-0 pr-0">
<h1 class="title-font font-medium text-3xl text-white">Knot</h1>
<p class="leading-relaxed mt-4 mb-10">A very simple URL shortner made by Ct tricks AKA Tanish by using Google Form & Spreadsheet as a backend to store and get url and data. Knot never logs the number of times a url get request or anything. It simply short the long URL and store data in spreadsheet using google form. It is made just for experimental and educational perpopse.</p>
</div>
<form class="lg:w-2/6 md:w-1/2 bg-gray-800 bg-opacity-50 rounded-lg p-8 flex flex-col md:ml-auto w-full mt-10 md:mt-0" action="https://docs.google.com/forms/u/0/d/e/1FAIpQLSfbrWX7mDo_xcRFBt7CjVHlYOFpwDnd_TqsyIz0tT9u-yDs7g/formResponse" method="post" target="hidden_iframe" onsubmit="submitted=true; document.getElementById('submitbutton').innerHTML='Please Wait'">
<h2 class="text-white text-lg font-medium title-font mb-5">Create Knot</h2>
<div class="relative mb-4">
<label for="fullname" class="leading-7 text-sm text-gray-400">Alias</label>
<input type="text" id="fullname" name="entry.245036132" class="w-full bg-gray-600 bg-opacity-20 focus:bg-transparent focus:ring-2 focus:ring-blue-900 rounded border border-gray-600 focus:border-blue-500 text-base outline-none text-gray-100 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" required>
</div>
<div class="relative mb-4">
<label for="email" class="leading-7 text-sm text-gray-400">Long URL</label>
<input type="text" id="email" name="entry.1539729328" class="w-full bg-gray-600 bg-opacity-20 focus:bg-transparent focus:ring-2 focus:ring-blue-900 rounded border border-gray-600 focus:border-blue-500 text-base outline-none text-gray-100 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" required>
</div>
<button class="text-white bg-blue-500 border-0 py-2 px-8 focus:outline-none hover:bg-blue-600 rounded text-lg" type="submit" id="submitbutton">Continue</button>
<p class="text-xs mt-3">By clicking Continue, I agree to the Terms of Service, Privacy Policy and Use of Cookies of Knot URL shortner.</p>
</form>
</div>
</section>
<footer class="text-gray-400 bg-gray-900 body-font">
<div class="bg-gray-900 bg-opacity-90">
<div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">
<p class="text-gray-400 text-sm text-center sm:text-left">© 2021 KNOT —
<a href="https://twitter.com/ct_tricks" class="text-gray-500 ml-1" target="_blank" rel="noopener noreferrer">@ct_tricks</a>
</p>
<span class="sm:ml-auto sm:mt-0 mt-2 sm:w-auto w-full sm:text-left text-center text-gray-400 text-sm">Easy to use | Customized URLs | No Logs or History</span>
</div>
</div>
</footer>
<script>
document.getElementById("fullname").addEventListener("keyup", (e)=>{
localStorage.setItem("alias", e.target.value);
})
var submitted = false;
</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display: none" onload="if(submitted){window.location='/knot/shorted.html';}"></iframe>
</body>
</html>