2018-05-05 11:34:13 -04:00
|
|
|
<!doctype html>
|
2017-08-03 12:32:30 -04:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2018-05-05 11:34:13 -04:00
|
|
|
<!-- Required meta tags -->
|
2017-08-03 12:32:30 -04:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-05-05 11:34:13 -04:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2017-08-03 12:32:30 -04:00
|
|
|
|
2018-05-05 12:09:37 -04:00
|
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css" />
|
|
|
|
<link rel="stylesheet" href="/css/bootswatch.min.css" />
|
|
|
|
<link rel="stylesheet" href="/css/fontawesome-all.min.css" />
|
2018-05-05 11:34:13 -04:00
|
|
|
|
|
|
|
<title>OTS - One Time Secrets</title>
|
2017-08-03 12:32:30 -04:00
|
|
|
|
|
|
|
<style>
|
2018-05-05 11:34:13 -04:00
|
|
|
#somethingwrong, #notfound, #cardReadSecret, #cardSecretURL, #cardReadSecretPre { display: none; }
|
|
|
|
.footer { color: #2f2f2f; font-size: 0.9em; text-align: center; }
|
2017-08-03 12:32:30 -04:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2018-05-05 11:34:13 -04:00
|
|
|
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
|
|
|
<a class="navbar-brand" href="#"><i class="fas fa-user-secret"></i> OTS - One Time Secrets</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<li class="nav-item"></li>
|
|
|
|
<li class="nav-item"><a href="#" id="newSecret"><i class="fas fa-plus"></i> {{T "btn-new-secret"}}</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="container mt-4">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-8">
|
2017-08-03 12:32:30 -04:00
|
|
|
<div class="alert alert-danger" role="alert" id="notfound">
|
2018-05-05 11:34:13 -04:00
|
|
|
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
2017-08-04 15:16:00 -04:00
|
|
|
{{T "alert-secret-not-found"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
<div class="alert alert-danger" role="alert" id="somethingwrong">
|
2018-05-05 11:34:13 -04:00
|
|
|
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
2017-08-04 15:16:00 -04:00
|
|
|
{{T "alert-something-went-wrong"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card border-primary" id="cardNewSecret">
|
|
|
|
<div class="card-header bg-primary text-white">
|
|
|
|
{{T "title-new-secret"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card-body">
|
2017-08-03 12:32:30 -04:00
|
|
|
<form id="formCreateSecret">
|
|
|
|
<div class="form-group">
|
2017-08-04 15:16:00 -04:00
|
|
|
<label for="secret">{{T "label-secret-data"}}</label>
|
2017-08-03 12:32:30 -04:00
|
|
|
<textarea class="form-control" rows="5" id="secret"></textarea>
|
|
|
|
</div>
|
2017-08-04 15:16:00 -04:00
|
|
|
<input class="btn btn-success" type="submit" value="{{T "btn-create-secret"}}">
|
2017-08-03 12:32:30 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card border-success" id="cardSecretURL">
|
|
|
|
<div class="card-header bg-success text-white">
|
|
|
|
{{T "title-secret-created"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card-body">
|
2017-08-03 12:32:30 -04:00
|
|
|
<p>
|
2017-08-04 15:16:00 -04:00
|
|
|
{{T "text-pre-url"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</p>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" readonly>
|
|
|
|
</div>
|
|
|
|
<p>
|
2017-08-04 15:16:00 -04:00
|
|
|
{{T "text-burn-hint"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card border-primary" id="cardReadSecretPre">
|
|
|
|
<div class="card-header bg-primary text-white">
|
|
|
|
{{T "title-reading-secret"}}
|
2017-08-19 09:49:15 -04:00
|
|
|
</div>
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card-body">
|
2017-08-19 09:49:15 -04:00
|
|
|
<p>
|
|
|
|
{{T "text-pre-reveal-hint"}}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<button class="btn btn-success" id="revealSecret">{{T "btn-reveal-secret"}}</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card border-primary" id="cardReadSecret">
|
|
|
|
<div class="card-header bg-primary text-white">
|
|
|
|
{{T "title-reading-secret"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="card-body">
|
2017-08-03 12:32:30 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<textarea class="form-control" rows="5" readonly></textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2017-08-04 15:16:00 -04:00
|
|
|
{{T "text-hint-burned"}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-03 14:50:11 -04:00
|
|
|
</div> <!-- /.col-md-12 -->
|
|
|
|
</div> <!-- /.row -->
|
|
|
|
|
2018-05-05 11:34:13 -04:00
|
|
|
<div class="row mt-5">
|
2017-08-03 14:50:11 -04:00
|
|
|
<div class="col-md-12 footer">
|
2018-05-05 11:34:13 -04:00
|
|
|
{{T "text-powered-by"}} <a href="https://github.com/Luzifer/ots"><i class="fab fa-github"></i> Luzifer/OTS</a> {{.version}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-05 12:09:37 -04:00
|
|
|
<script src="/js/jquery.min.js"></script>
|
|
|
|
<script src="/js/popper.min.js"></script>
|
|
|
|
<script src="/js/bootstrap.min.js"></script>
|
|
|
|
<script src="/js/gibberish-aes.min.js"></script>
|
2017-08-03 12:32:30 -04:00
|
|
|
<script src="application.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|