Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<body>

<div class="center">
<h1 align="center"> URL Shortener</h1>
<h1 text-align="center"> Wanna make your URL short? <br>TRY THIS !</h1>
</div>
<input id="url" type="text" placeholder="Enter URL" name="url">
<br>
<div id="sk">
<input id="url" type="text" placeholder="Enter URL" name="url"><br>
<input id="submit" type="submit" class="btn">
<div id="shortcode" class="mydiv"></div>

</div>
</body>
</html>
2 changes: 1 addition & 1 deletion static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(function () {
$.post('/api/v1/shorten', {
url:url
},function (data) {
$('#shortcode').html("Chotta URL: " + '<a href="/' + data + '">'+window.location.href+data + '</a>');
$('#shortcode').html("Finally short URL: " + '<a href="/' + data + '">'+window.location.href+data + '</a>');
})
})
})
9 changes: 6 additions & 3 deletions static/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*{
align: center;
text-align: center;
}
#url{
align: center;
text-align: center;
size: 100px;
height: 50px;
width: 600px;
Expand Down Expand Up @@ -37,7 +37,10 @@
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}

#sk{
background: #5aaae0;
align-items: center;
}
.mydiv{
align-self: center;
align-items: center;
Expand Down