mirror-chhoto-url/src/main/resources/public/index.html

64 lines
1.8 KiB
HTML
Raw Normal View History

2020-02-14 18:52:14 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Url</title>
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
<script src="js/main.js"></script>
<style>
.container {
max-width: 950px;
margin: 20px auto auto;
}
table {
width: 100%;
}
</style>
</head>
<body>
<div class="container">
<form class="pure-form pure-form-aligned" name="new-url-form">
<fieldset>
<legend>Add new URL</legend>
<div class="pure-control-group">
<label for="longUrl">Long URL</label>
<input type="url" name="longUrl" id="longUrl" placeholder="Long URL" required/>
2020-02-14 18:52:14 +00:00
</div>
<div class="pure-control-group">
<label for="shortUrl">Short URL (Optional). Only letters, number dashes and underscores
permitted</label>
<input type="text" name="shortUrl" id="shortUrl" placeholder="Short URL (optional)"
pattern="[a-z0-9_-]+"/>
2020-02-14 18:52:14 +00:00
</div>
<div class="pure-controls">
<button class="pure-button pure-button-primary">Submit</button>
</div>
</fieldset>
</form>
<table class="pure-table">
<thead>
<tr>
<td>Long URL</td>
<td>Short url</td>
2020-02-16 15:52:54 +00:00
<td></td>
2020-02-14 18:52:14 +00:00
</tr>
</thead>
<tbody id="url-table">
</tbody>
</table>
</div>
</body>
2020-02-16 13:37:52 +00:00
</html>