リファクタリングと再設計

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/marisa/trunk@67 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
yakumo.izuru
2024-02-11 02:08:18 +00:00
parent 0f18a4e48e
commit c83cad8164
19 changed files with 431 additions and 530 deletions

View File

@@ -1,42 +1,47 @@
<!DOCTYPE HTML>
<!DOCTYPE HTML PUBLIC "//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="z3bra, Izuru Yakumo">
<meta name="robots" content="noindex,nofollow" >
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/marisa.css">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="author" content="Izuru Yakumo">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/marisa_98.css" >
<link rel="icon" href="/marisa.png">
<title>Marisa</title>
</head>
<body>
<header>
<img id="logo" src="/marisa.png" >
<h1>marisa</h1>
</header>
<form enctype="multipart/form-data" method="post">
<div id="dropzone"></div>
<div id="fallbackform" class="dropzone">
<input id="filebox" name="file" type="file" multiple>
<input id="output" name="output" type="hidden" value='html' >
<input type="submit" value="Upload">
</div>
<section id="formsettings">
<label for="expiry"> Destroy after </label>
<select id="expiry" name="expiry">
<option value="900"> 15 minutes </option>
<option value="3600"> 1 hour </option>
<option value="28800"> 8 hours </option>
<option value="86400" selected> 1 day </option>
<option value="604800"> 1 week </option>
</select>
</section>
</form>
<p>File size limited to {{.Maxsize}}.</p>
<div id="uploads">{{if .Links}}
<ul>
{{range .Links}}<li><a href="{{.}}">{{.}}</a></li>{{end}}
</ul>
{{end}}</div>
<table border="1" align="center">
<thead>
<img class="logo" src="/marisa.png">
<br>
<h1>Marisa</h1>
</thead>
<tbody>
<form enctype="multipart/form-data" method="POST">
<input class="file" name="file" type="file"><br>
<input name="output" type="hidden" value="html"><br>
<input type="submit"><br>
<label for="expiry">Destroy after</label>
<select name="expiry">
<option value="900">15 minutes</option>
<option value="3600">1 hour</option>
<option value="28800">8 hours</option>
<option value="86400">1 day</option>
<option value="604800">1 week</option>
</select>
</form>
<p>
File size limited to {{.Maxsize}}.
</p>
</tbody>
<tfoot>
{{if .Links}}
<tr>
{{range .Links}}<td><a href="{{.}}">{{.}}</a></td>{{end}}
</tr>
{{end}}
<br><hr>
<p>&copy; 2024 Izuru Yakumo</p>
</tfoot>
</table>
</body>
</html>