1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00
chhoto-url/actix/resources/index.html

71 lines
3 KiB
HTML
Raw Normal View History

2020-02-14 12:52:14 -06:00
<!DOCTYPE html>
<html lang="en">
2022-11-02 03:09:36 -05:00
2020-02-14 12:52:14 -06:00
<head>
<meta charset="UTF-8">
<meta name="viewport"
2022-11-02 03:09:36 -05:00
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
2020-02-14 12:52:14 -06:00
<meta http-equiv="X-UA-Compatible" content="ie=edge">
2022-11-16 00:05:31 -06:00
2020-04-18 15:53:01 -05:00
<title>Simply Shorten</title>
2022-11-16 00:05:31 -06:00
<meta name="description" content="A simple selfhosted URL shortener with no unnecessary features.">
<meta name="keywords" content="url shortener, link shortener, self hosted, open source">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" sizes="any">
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
2022-11-09 02:16:12 -06:00
<link rel="icon" type="image/png" href="assets/favicon-32.png" sizes="32x32">
2022-11-16 00:05:31 -06:00
<link rel="icon" type="image/png" href="assets/favicon-196.png" sizes="196x196">
2020-02-14 12:52:14 -06:00
<script src="static/script.js"></script>
2020-02-14 12:52:14 -06:00
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
2022-11-02 03:09:36 -05:00
integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" target="_blank" href="static/styles.css">
2020-02-14 12:52:14 -06:00
</head>
2022-11-02 03:09:36 -05:00
2020-02-14 12:52:14 -06:00
<body>
2022-11-02 03:09:36 -05:00
<div class="container">
<form class="pure-form pure-form-aligned" name="new-url-form">
<fieldset>
2022-11-09 18:55:50 -06:00
<legend style="font-size: 32px;"><img src="assets/favicon-32.png" width="26px" alt="logo"> Simply
2022-11-09 17:46:54 -06:00
Shorten</legend>
2022-11-02 03:09:36 -05:00
<div class="pure-control-group">
<label for="longUrl">Long URL</label>
<input type="url" name="longUrl" id="longUrl" placeholder="Please enter a valid URL"
onblur="addProtocol(this)" required />
2022-11-02 03:09:36 -05:00
</div>
<div class=" pure-control-group">
2022-11-09 17:46:54 -06:00
<label for="shortUrl">Short URL (optional)</label>
<input type="text" name="shortUrl" id="shortUrl" placeholder="Only a-z, 0-9, - and _ are allowed"
2022-11-06 22:36:53 -06:00
pattern="[A-Za-z0-9_-]+" />
2022-11-02 03:09:36 -05:00
</div>
<div class="pure-controls">
2022-11-09 19:26:17 -06:00
<button class="pure-button pure-button-primary">Shorten!</button>
<p id="alert-box">&nbsp;</p>
2022-11-02 03:09:36 -05:00
</div>
</fieldset>
</form>
2022-11-09 18:55:50 -06:00
<table class="pure-table" style="visibility: hidden;">
2022-11-09 22:05:11 -06:00
<caption style="font-size: 22px; text-align: left; font-style: normal;">Active links</caption>
2022-11-09 18:55:50 -06:00
<br>
2022-11-02 03:09:36 -05:00
<thead>
<tr>
<td id="short-url-header">Short URL<br>(click to copy)</td>
<td>Long URL</td>
2022-11-03 16:53:04 -05:00
<td>Hits</td>
2022-11-09 18:55:50 -06:00
<td name="deleteBtn">&times;</td>
2022-11-02 03:09:36 -05:00
</tr>
</thead>
<tbody id="url-table">
</tbody>
</table>
</div>
2020-02-14 12:52:14 -06:00
2023-01-13 01:53:48 -06:00
<div name="gitlab">
<a href="https://gitlab.com/SinTan1729/simply-shorten" target="_blank" rel="noopener noreferrer">Source Code</a>
</div>
2020-02-14 12:52:14 -06:00
</body>
2022-11-02 03:09:36 -05:00
</html>