-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (59 loc) · 2.48 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="/javascripts/shorten.js"></script>
<title>URL Shortener</title>
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link href="/css/style.css" rel="stylesheet">
</head>
<body>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="main-container">
<div class="inner cover">
<h1>URL Shortener</h1>
<h4>by kire73</h4>
<h5>FreeCodeCamp API Basejump: URL Shortener Microservice</h5>
<p>
<strong>User stories:</strong><br>
I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
When I visit that shortened URL, it will redirect me to my original link.<br>
<strong>Example creation usage:</strong><br>
https://shortyourl.herokuapp.com/new/https://www.google.com<br>
https://shortyourl.herokuapp.com/new/http://foo.com:80<br>
<strong>Example creation output</strong><br>
{ "original_url":"http://foo.com:80", "short_url":"https://shortyourl.herokuapp.com/a1d" }<br>
<strong>Usage:</strong><br>
https://shortyourl.herokuapp.com/2<br>
<strong>Will redirect to:</strong><br>
https://www.google.com/</p><br><br>
<h4>OR:<br>Paste your url here and get the short link below!</h4>
<div class="row">
<div class="col-lg-12">
<div class="input-group input-group-lg">
<input id="url-field" type="text" class="form-control" placeholder="Enter url">
<span class="input-group-btn">
<button class="btn btn-shorten" type="button">SHORTEN</button>
</span>
</div>
</div>
<div class="col-lg-12">
<div id="link"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="/javascripts/shorten.js"></script>
<script src="/javascripts/address.js"></script>
</body>
</html>