Browse Source

Improved API help and style

sqozz 3 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 {
101 101
 	display: none;
102 102
 	opacity: 0;
103 103
 	text-align: left;
104
-	margin-left: -100px;
104
+	margin-left: -6%;
105 105
 	max-width: 300px;
106 106
 	margin-top: 10px;
107 107
 	padding: 3px;
108 108
 	box-shadow: 3px 3px 10px gray;
109
-	max-height: 33%;
109
+	max-height: 35%;
110 110
 	overflow-y: auto;
111 111
 }
112 112
 

+ 10
- 5
templates/index.html View File

@@ -21,11 +21,16 @@
21 21
 					<a href="">
22 22
 						<div class="link">API</div>
23 23
 						<div class="description">
24
-							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.
25
-							<br/><br/>
26
-							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.
27
-							<br/><br/>
28
-							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.
24
+							<ul>
25
+								<li>API</li>
26
+								<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>
27
+								<br/>
28
+								<li>Creation of new links</li>
29
+								<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>
30
+								<br/>
31
+								<li>Resolving links</li>
32
+								<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>
33
+							</ul>
29 34
 						</div>
30 35
 					</a>
31 36
 				</span>

Loading…
Cancel
Save