2017-08-03 12:32:30 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
|
|
|
<title>OTS - One Time Secrets</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/flatly/bootstrap.min.css"
|
|
|
|
integrity="sha256-r1WijW/SNMgOwk5LDk7QRHr6oVYYbYWMw/1kOXfYJfg=" crossorigin="anonymous" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
|
|
|
integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
|
|
|
|
|
|
|
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"
|
|
|
|
integrity="sha256-3Jy/GbSLrg0o9y5Z5n1uw0qxZECH7C6OQpVBgNFYa0g=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"
|
|
|
|
integrity="sha256-g6iAfvZp+nDQ2TdTR/VVKJf3bGro4ub5fvWSWVRi2NE=" crossorigin="anonymous"></script>
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
<style>
|
2017-08-19 09:49:15 -04:00
|
|
|
#somethingwrong, #notfound, #panelReadSecret, #panelSecretURL, #panelReadSecretPre {
|
2017-08-03 12:32:30 -04:00
|
|
|
display: none;
|
|
|
|
}
|
2017-08-03 14:50:11 -04:00
|
|
|
.footer {
|
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: center;
|
|
|
|
color: #2f2f2f;
|
|
|
|
}
|
2017-08-03 12:32:30 -04:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="#">OTS - One Time Secrets</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2017-08-04 15:16:00 -04:00
|
|
|
<li><a href="#" id="newSecret"><i class="fa fa-plus"></i> {{T "btn-new-secret"}}</a></li>
|
2017-08-03 12:32:30 -04:00
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8 col-md-push-2">
|
|
|
|
<div class="alert alert-danger" role="alert" id="notfound">
|
|
|
|
<i class="fa 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">
|
|
|
|
<i class="fa 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">
|
|
|
|
|
|
|
|
<div class="panel panel-primary" id="panelNewSecret">
|
|
|
|
<div class="panel-heading">
|
2017-08-04 15:16:00 -04:00
|
|
|
<h3 class="panel-title">{{T "title-new-secret"}}</h3>
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="panel panel-success" id="panelSecretURL">
|
|
|
|
<div class="panel-heading">
|
2017-08-04 15:16:00 -04:00
|
|
|
<h3 class="panel-title">{{T "title-secret-created"}}</h3>
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<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>
|
|
|
|
|
2017-08-19 09:49:15 -04:00
|
|
|
<div class="panel panel-primary" id="panelReadSecretPre">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{T "title-reading-secret"}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>
|
|
|
|
{{T "text-pre-reveal-hint"}}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<button class="btn btn-success" id="revealSecret">{{T "btn-reveal-secret"}}</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-03 12:32:30 -04:00
|
|
|
<div class="panel panel-primary" id="panelReadSecret">
|
|
|
|
<div class="panel-heading">
|
2017-08-04 15:16:00 -04:00
|
|
|
<h3 class="panel-title">{{T "title-reading-secret"}}</h3>
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<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 -->
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 footer">
|
2017-08-04 15:21:47 -04:00
|
|
|
{{T "text-powered-by"}} <a href="https://github.com/Luzifer/ots"><i class="fa fa-github"></i> Luzifer/OTS</a> {{.version}}
|
2017-08-03 12:32:30 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"
|
|
|
|
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
|
|
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"
|
|
|
|
integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>
|
|
|
|
<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>
|
|
|
|
|