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:58:08 +00:00
|
|
|
<script src="/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">
|
2024-06-14 16:32:51 +00:00
|
|
|
<h2>Receive File</h2>
|
2024-06-14 14:57:55 +00:00
|
|
|
<input type="text" id="mnemonicInput" placeholder="Enter mnemonic" />
|
2024-06-14 16:32:51 +00:00
|
|
|
<button onclick="downloadFile()">Receive</button>
|
2024-06-14 14:57:55 +00:00
|
|
|
<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 16:35:25 +00:00
|
|
|
<script>const trackerUrl = "<%= trackerUrl %>";</script>
|
2024-06-14 15:53:35 +00:00
|
|
|
<script src="/js/index.js"></script>
|
2024-06-14 14:57:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|