2020-02-14 18:52:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-11-02 08:09:36 +00:00
|
|
|
|
2020-02-14 18:52:14 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport"
|
2022-11-02 08:09:36 +00:00
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
2020-02-14 18:52:14 +00:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2020-04-18 20:53:01 +00:00
|
|
|
<title>Simply Shorten</title>
|
2022-11-09 08:16:12 +00:00
|
|
|
<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">
|
2020-02-14 18:52:14 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
|
2022-11-02 08:09:36 +00:00
|
|
|
integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
|
2020-02-14 18:52:14 +00:00
|
|
|
<script src="js/main.js"></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
max-width: 950px;
|
|
|
|
margin: 20px auto auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-11-02 23:56:58 +00:00
|
|
|
|
2022-11-03 20:19:22 +00:00
|
|
|
table tr td div {
|
|
|
|
max-height: 75px;
|
|
|
|
line-height: 25px;
|
2022-11-09 04:32:32 +00:00
|
|
|
word-wrap: break-word;
|
|
|
|
max-width: 575px;
|
|
|
|
overflow: auto;
|
2022-11-03 20:19:22 +00:00
|
|
|
}
|
2022-11-07 04:36:53 +00:00
|
|
|
|
2022-11-10 00:55:50 +00:00
|
|
|
td[name="deleteBtn"] {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2022-11-10 03:49:33 +00:00
|
|
|
|
|
|
|
td[name="deleteBtn"] button {
|
|
|
|
border-radius: 50%;
|
|
|
|
border-style: solid;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2022-11-10 05:44:30 +00:00
|
|
|
|
|
|
|
input {
|
|
|
|
width: 65%;
|
|
|
|
}
|
|
|
|
|
|
|
|
form input[name="shortUrl"] {
|
|
|
|
text-transform: lowercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
form input[name="shortUrl"]::placeholder {
|
|
|
|
text-transform: none;
|
|
|
|
}
|
2020-02-14 18:52:14 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
2022-11-02 08:09:36 +00:00
|
|
|
|
2020-02-14 18:52:14 +00:00
|
|
|
<body>
|
|
|
|
|
2022-11-02 08:09:36 +00:00
|
|
|
<div class="container">
|
|
|
|
<form class="pure-form pure-form-aligned" name="new-url-form">
|
|
|
|
<fieldset>
|
2022-11-10 00:55:50 +00:00
|
|
|
<legend style="font-size: 32px;"><img src="assets/favicon-32.png" width="26px" alt="logo"> Simply
|
2022-11-09 23:46:54 +00:00
|
|
|
Shorten</legend>
|
2022-11-02 08:09:36 +00:00
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="longUrl">Long URL</label>
|
2022-11-02 23:56:58 +00:00
|
|
|
<input type="url" name="longUrl" id="longUrl" placeholder="Please enter a valid URL" required />
|
2022-11-02 08:09:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
2022-11-09 23:46:54 +00:00
|
|
|
<label for="shortUrl">Short URL (optional)</label>
|
2022-11-02 23:56:58 +00:00
|
|
|
<input type="text" name="shortUrl" id="shortUrl" placeholder="Only a-z, 0-9, - and _ are allowed"
|
2022-11-07 04:36:53 +00:00
|
|
|
pattern="[A-Za-z0-9_-]+" />
|
2022-11-02 08:09:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="pure-controls">
|
2022-11-10 01:26:17 +00:00
|
|
|
<button class="pure-button pure-button-primary">Shorten!</button>
|
2022-11-02 08:09:36 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
2022-11-10 00:55:50 +00:00
|
|
|
<table class="pure-table" style="visibility: hidden;">
|
2022-11-10 04:05:11 +00:00
|
|
|
<caption style="font-size: 22px; text-align: left; font-style: normal;">Active links</caption>
|
2022-11-10 00:55:50 +00:00
|
|
|
<br>
|
2022-11-02 08:09:36 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-11-11 23:33:31 +00:00
|
|
|
<td>Short URL (click to copy)</td>
|
2022-11-03 19:47:38 +00:00
|
|
|
<td>Long URL</td>
|
2022-11-03 21:53:04 +00:00
|
|
|
<td>Hits</td>
|
2022-11-10 00:55:50 +00:00
|
|
|
<td name="deleteBtn">×</td>
|
2022-11-02 08:09:36 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="url-table">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-02-14 18:52:14 +00:00
|
|
|
|
|
|
|
</body>
|
2022-11-02 08:09:36 +00:00
|
|
|
|
2022-11-02 23:56:58 +00:00
|
|
|
</html>
|