Browse Source

Improved API help and style

head_fix
sqozz 4 years ago
parent
commit
681157d4ec
2 changed files with 12 additions and 7 deletions
  1. +2
    -2
      static/css/index.css
  2. +10
    -5
      templates/index.html

+ 2
- 2
static/css/index.css View File

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


+ 10
- 5
templates/index.html View File

@@ -21,11 +21,16 @@
<a href="">
<div class="link">API</div>
<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.
<br/><br/>
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.
<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.
<ul>
<li>API</li>
<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/>
<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>
</a>
</span>

Loading…
Cancel
Save