2019-02-12 08:11:03 -05:00
|
|
|
{{#> layout }}
|
2019-05-17 16:31:04 -04:00
|
|
|
<div class="ui">
|
2019-06-05 05:02:55 -04:00
|
|
|
<center><h2>Upload your key</h2></center>
|
2019-02-22 08:14:29 -05:00
|
|
|
|
2019-05-23 19:01:24 -04:00
|
|
|
<form action="/upload/submit" method="POST" enctype="multipart/form-data">
|
2019-04-26 09:15:54 -04:00
|
|
|
<div class="upload">
|
|
|
|
<input type="file" id="keytext" name="keytext" autofocus class="fileUpload" placeholder="Your public key"/>
|
2019-06-06 07:20:18 -04:00
|
|
|
<button type="submit" class="uploadButton button">
|
|
|
|
<img src="/assets/upload.svg" style="width: 1em;"> Upload
|
2019-04-26 09:15:54 -04:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-02-22 08:14:29 -05:00
|
|
|
|
2019-04-26 09:15:54 -04:00
|
|
|
<p>
|
2019-06-05 05:02:55 -04:00
|
|
|
Need more info? Check our <a target="_blank" href="/about">intro</a> and <a target="_blank" href="/about/usage">usage guide</a>!
|
2019-04-26 09:15:54 -04:00
|
|
|
</p>
|
2019-02-22 09:47:07 -05:00
|
|
|
|
|
|
|
<script>
|
|
|
|
var body = document.getElementsByTagName("body")[0];
|
|
|
|
|
|
|
|
body.addEventListener('dragover', function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
body.addEventListener('drop', function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
if (e.dataTransfer) {
|
|
|
|
document.getElementById('keytext').files = e.dataTransfer.files;
|
|
|
|
}
|
|
|
|
}, false);
|
|
|
|
</script>
|
2019-05-17 16:31:04 -04:00
|
|
|
</div>
|
2019-02-12 08:11:03 -05:00
|
|
|
{{/layout}}
|