initial done

This commit is contained in:
2017-08-29 16:11:45 +02:00
parent 6f98b217ac
commit 27461dd3f5
10 changed files with 101 additions and 68 deletions

View File

View File

@@ -4,9 +4,9 @@ var link = document.getElementById('link');
var shrBox = document.getElementById('shortened');
function displayShortenedUrl(response) {
link.textContent = response.data.shortUrl;
link.textContent = response.data.url;
link.setAttribute(
'href', response.data.shortUrl
'href', response.data.url
);
shrBox.style.opacity = '1';
urlBox.value = '';

View File

@@ -1,5 +0,0 @@
#shorten-form {
width: 300px;
margin: auto;
margin-top: 10vh;
}