From 681157d4ec108b3f7b360933158cc63bbb8e5abf Mon Sep 17 00:00:00 2001 From: sqozz Date: Sat, 13 Feb 2016 07:01:42 +0100 Subject: [PATCH] Improved API help and style --- static/css/index.css | 4 ++-- templates/index.html | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index fa68e3b..54f60f9 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -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; } diff --git a/templates/index.html b/templates/index.html index 2af3b56..6004d31 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,11 +21,16 @@
- 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. -

- 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. -

- 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. +
    +
  • API
  • +
    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.
    +
    +
  • Creation of new links
  • +
    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.
    +
    +
  • Resolving links
  • +
    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.
    +