Kumi
a8019c01a4
Moved inline CSS from index.ejs to a new style.css file for cleaner structure and maintainability. Extracted embedded JavaScript to index.js to streamline HTML and enhance script manageability. Benefits: - Improved readability and organization of HTML - Easier maintenance and updates for CSS and JS - Potential for CSS and JS caching, improving load times No functional changes were made. Refactors existing code for better practices.
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Transfer.coffee</title>
|
|
<link rel="stylesheet" href="/css/style.css" />
|
|
<script src="/dist/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>
|