pasu/index.ejs

43 lines
1.3 KiB
Plaintext

<!DOCTYPE html>
<html translate="no">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<meta name="google" content="notranslate" />
<meta name="robots" content="noindex, nofollow" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>Authenticator</title>
<link rel="manifest" href="/manifest.json" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="apple-touch-icon" href="/favicon.png" />
<link rel="stylesheet" href="/style.css" />
<% list.forEach(function(e){ %>
<div class="item" id="<%= e.name %>">
<div class="title"><%= e.name %></div>
<div class="body">
<div class="otp"><%= e.otp %></div>
<span class="delete material-icons">delete</span>
</div>
</div>
<% }); %>
<form method="post" action="/" enctype="application/x-www-form-urlencoded">
<label>
Name
<input name="name" type="text" required />
</label>
<label>
Secret
<input name="otp" type="text" required minlength="16" />
</label>
<input type="submit" />
</form>
<script src="client.js" defer></script>
</html>