Improved API help and style

This commit is contained in:
sqozz 2016-02-13 07:01:42 +01:00
parent 98fe49a761
commit 681157d4ec
2 changed files with 12 additions and 7 deletions

View file

@ -101,12 +101,12 @@ span .description {
display: none; display: none;
opacity: 0; opacity: 0;
text-align: left; text-align: left;
margin-left: -100px; margin-left: -6%;
max-width: 300px; max-width: 300px;
margin-top: 10px; margin-top: 10px;
padding: 3px; padding: 3px;
box-shadow: 3px 3px 10px gray; box-shadow: 3px 3px 10px gray;
max-height: 33%; max-height: 35%;
overflow-y: auto; overflow-y: auto;
} }

View file

@ -21,11 +21,16 @@
<a href=""> <a href="">
<div class="link">API</div> <div class="link">API</div>
<div class="description"> <div class="description">
There is no dedicated API for schort. Just make a POST-request to / with the parameter "url" set to your desired destination. Schort will generate an id for your and gives back the short link in plain text. <ul>
<br/><br/> <li>API</li>
If you wish to create a custom URL with your script, you can also set the parameter "wishId". If the requested id is free, schort will print out the short link with your requested id. If not, schort will just generate one and print that one out. <div>There is no dedicated API for schort. Just make a POST-request to / with the parameter "url" set to your desired destination. Schort will generate an id for your and gives back the short link in plain text.</div>
<br/><br/> <br/>
To resolve a link you just have to call the short url appendet by an plus sign ("+"). This makes schort to print out a plain text string of the original URL. <li>Creation of new links</li>
<div>If you wish to create a custom URL with your script, you can also set the parameter "wishId". If the requested id is free, schort will print out the short link with your requested id. If not, schort will just generate one and print that one out.</div>
<br/>
<li>Resolving links</li>
<div>To resolve a link you just have to make a GET-request and add the "resolve" parameter. The value of this parameter doesn't matter and gets ignored. This makes schort to print out a plain text string of the original URL.</div>
</ul>
</div> </div>
</a> </a>
</span> </span>