2024-06-14 14:57:55 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Transfer.coffee</title>
|
2024-06-14 15:53:35 +00:00
|
|
|
<link rel="stylesheet" href="/css/style.css" />
|
2024-06-14 15:43:31 +00:00
|
|
|
<script src="/dist/js/webtorrent.min.js"></script>
|
2024-06-14 14:57:55 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Transfer.coffee</h1>
|
|
|
|
<div class="section">
|
2024-06-14 15:34:36 +00:00
|
|
|
<h2>Share File</h2>
|
2024-06-14 14:57:55 +00:00
|
|
|
<input type="file" id="fileInput" />
|
2024-06-14 15:34:36 +00:00
|
|
|
<button onclick="uploadFile()">Share</button>
|
2024-06-14 14:57:55 +00:00
|
|
|
<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>
|
2024-06-14 15:53:35 +00:00
|
|
|
<script src="/js/index.js"></script>
|
2024-06-14 14:57:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|