transfer.coffee/views/index.ejs
2024-06-14 17:58:08 +02:00

33 lines
1 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title>Transfer.coffee</title>
<link rel="stylesheet" href="/css/style.css" />
<script src="/js/webtorrent.min.js"></script>
</head>
<body>
<div class="container">
<h1>Transfer.coffee</h1>
<div class="section">
<h2>Share File</h2>
<input type="file" id="fileInput" />
<button onclick="uploadFile()">Share</button>
<div class="progress" id="uploadProgress">
<div class="progress-bar" id="uploadProgressBar">0%</div>
</div>
<div class="result" id="uploadResult"></div>
</div>
<div class="section">
<h2>Download File</h2>
<input type="text" id="mnemonicInput" placeholder="Enter mnemonic" />
<button onclick="downloadFile()">Download</button>
<div class="progress" id="downloadProgress">
<div class="progress-bar" id="downloadProgressBar">0%</div>
</div>
<div class="result" id="downloadResult"></div>
</div>
</div>
<script src="/js/index.js"></script>
</body>
</html>