mirror of
https://git.ikl.sh/132ikl/liteshort.git
synced 2023-08-10 21:13:04 +03:00
Add POST form to shorten link, shortened links to database, configuration file
This commit is contained in:
20
static/main.html
Normal file
20
static/main.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>liteshort</title>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
Long URL:
|
||||
<br>
|
||||
<input name="long" type="url">
|
||||
<br>
|
||||
Short URL:
|
||||
<br>
|
||||
<input name="short" type="text">
|
||||
<br> <!-- TODO: Use CSS to do linebreaks -->
|
||||
<input type="submit" value="Shorten" formmethod="post">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user