-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (44 loc) · 1.9 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
<html>
<head>
<title>Go to shortened URL</title>
<script>
var goToUrl = function(base, hashId){
var hash = document.getElementById(hashId).value;
window.location.href = base + hash;
};
</script>
</head>
<body>
<h1>Go to shortend URL easily.</h1>
<ul>
<li>
<form onsubmit="goToUrl('https://bit.ly/', 'bitly');return false;">
<a href="http://bit.ly/" target="_blank">http://bit.ly/</a>
<input type="text" id="bitly"/>
<input type="submit" value="go"/>
</form>
</li>
<li>
<form onsubmit="goToUrl('http://shrinkr.herokuapp.com/', 'shrinkr');return false;">
<a href="http://shrinkr.herokuapp.com/" target="_blank">http://shrinkr.herokuapp.com/</a>
<input type="text" id="shrinkr"/>
<input type="submit" value="go"/>
</form>
</li>
<li>
<form onsubmit="goToUrl('https://git.io/', 'gitio');return false;">
<a href="https://git.io/" target="_blank">https://git.io/</a>
<input type="text" id="gitio">
<input type="submit" value="go">
</form>
<ul>
<li>
<code><pre>curl -i https://git.io -F "url=https://github.com/peccu" -F "code=peccu" | grep Location | cut -d' ' -f2</pre></code>
> <a href="https://git.io/peccu" target="_blank">https://git.io/peccu</a>
</li>
</ul>
</li>
</ul>
<a href="https://github.com/peccu/go-to-shorten"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
</body>
</html>