-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshortner.html
71 lines (70 loc) · 2.46 KB
/
shortner.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
70
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>URL Shortner</title>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/js/materialize.min.js"></script>
<script type="text/javascript">
$(function(){
$('#btn').click(function(){
window.loaction.href = "http://127.0.0.1:5000/sho.rt/this";
});
});
</script>
<style media="screen">
body{
background-color:#fff;
color:#26a69a;
text-align:center;
}
#footer{
color: #26a69a;
text-align: center;
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 0;
background-color: #efefef;
text-align: center;
}
</style>
</head>
<body>
<div style="background-color:#efefef; top:0; right:0;left:0;padding:0.2rem" class="col s12">
<h1>Shorten your URL</h1>
</div>
<div class="container">
<div class="rows">
<div class="col s3">
</div>
<div class="col s6">
<pre>Using sho.rt for shortening service</pre>
</div>
<div class="col s3">
</div>
</div>
</div>
<div class="container">
<form class="col s12" method="post" action="/short/url">
<div class="rows">
<div class="input-field col s12" style="margin:100px;">
<input placeholder="Enter the URL here!" id="url" name="mainurl" type="text" class="validate" required>
<input id="btn" class="btn waves-effect waves-light" type="submit" name="action" value="Shorten"/>
</button>
</div>
</div>
</form>
<div class="rows">
<div class="col s12" id="footer">
<p style="font-size:15px">With <i style="font-size:15px" class="material-icons">favorite</i> by <a target="_blank" style="text-decoration:none; text-decoration-color:#26a69a" href="https://github.com/gabru-md">Manish Devgan</a></p>
</div>
</div>
</div>
</body>
</html>