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
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
2018-05-05 11:34:13 -04:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"
|
|
|
|
integrity="sha256-LA89z+k9fjgMKQ/kq4OO2Mrf8VltYml/VES+Rg0fh20=" crossorigin="anonymous" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.1.1/flatly/bootstrap.min.css"
|
|
|
|
integrity="sha256-Aq7aBPqZwiUM2fHchlRaVD7RFsEBto+K77fvREGjnHU=" crossorigin="anonymous" />
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.12/css/all.css"
|
|
|
|
integrity="sha384-G0fIWCsCzJIMAVNQPfjH08cyYaUtMwjJwqiRKxxE/rx96Uroj1BtIQ6MLJuheaO9" crossorigin="anonymous">
|
|
|
|
|
|
|
|
<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 11:34:13 -04:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"
|
|
|
|
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.1/popper.min.js"
|
|
|
|
integrity="sha256-ST2MecrXrJaAsqmfpk9XRQITlDoyMmUtgKBEndDisSc=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"
|
|
|
|
integrity="sha256-5+02zu5UULQkO7w1GIr6vftCgMfFdZcAHeDtFnKZsBs=" crossorigin="anonymous"></script>
|
|
|
|
|
2017-08-03 12:32:30 -04:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/gibberish-aes/1.0.0/gibberish-aes.min.js"
|
|
|
|
integrity="sha256-H9B/XRDijNiF3agVjtiz1ILVi3csEdGz9YBg5TjWouM=" crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
<script src="application.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|