mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-23 12:07:59 +00:00
102 lines
3.2 KiB
HTML
102 lines
3.2 KiB
HTML
<!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>Simply Shorten</title>
|
|
<link rel="icon" type="image/png" href="assets/favicon-32.png" sizes="32x32">
|
|
<link rel="shortcut icon" type="image/png" href="assets/favicon-196.png" sizes="196x196">
|
|
<link rel="shortcut icon" type="image/x-icon" href="assets/favicon.ico">
|
|
|
|
<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%;
|
|
}
|
|
|
|
table tr td div {
|
|
max-height: 75px;
|
|
line-height: 25px;
|
|
word-wrap: break-word;
|
|
max-width: 575px;
|
|
overflow: auto;
|
|
}
|
|
|
|
td[name="deleteBtn"] {
|
|
text-align: center;
|
|
}
|
|
|
|
td[name="deleteBtn"] button {
|
|
border-radius: 50%;
|
|
border-style: solid;
|
|
cursor: pointer;
|
|
background-color: transparent;
|
|
}
|
|
|
|
input {
|
|
width: 65%;
|
|
}
|
|
|
|
form input[name="shortUrl"] {
|
|
text-transform: lowercase;
|
|
}
|
|
|
|
form input[name="shortUrl"]::placeholder {
|
|
text-transform: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
<form class="pure-form pure-form-aligned" name="new-url-form">
|
|
<fieldset>
|
|
<legend style="font-size: 32px;"><img src="assets/favicon-32.png" width="26px" alt="logo"> Simply
|
|
Shorten</legend>
|
|
<div class="pure-control-group">
|
|
<label for="longUrl">Long URL</label>
|
|
<input type="url" name="longUrl" id="longUrl" placeholder="Please enter a valid URL" required />
|
|
</div>
|
|
<div class="pure-control-group">
|
|
<label for="shortUrl">Short URL (optional)</label>
|
|
<input type="text" name="shortUrl" id="shortUrl" placeholder="Only a-z, 0-9, - and _ are allowed"
|
|
pattern="[A-Za-z0-9_-]+" />
|
|
</div>
|
|
<div class="pure-controls">
|
|
<button class="pure-button pure-button-primary">Shorten!</button>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<table class="pure-table" style="visibility: hidden;">
|
|
<caption style="font-size: 22px; text-align: left; font-style: normal;">Active links</caption>
|
|
<br>
|
|
<thead>
|
|
<tr>
|
|
<td>Short URL (click to copy)</td>
|
|
<td>Long URL</td>
|
|
<td>Hits</td>
|
|
<td name="deleteBtn">×</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="url-table">
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |