1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/SiaDrive/SiaDrive.htm
2017-02-25 23:21:11 -06:00

342 lines
11 KiB
HTML

<html>
<head>
<title>SiaDrive</title>
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<style>
body {
width: auto;
height: 100%;
background: url('res://jpg/#1') no-repeat;
background-size: cover;
color: #c2c2c2;
margin: 0;
padding: 0;
}
html, body {
transition: background-color .5s;
background-color: #2b2b2b;
}
label {
margin: 0;
padding: 0;
border: 0;
}
h3 {
margin: 0;
padding: 0 0 8px 0;
border: 0;
color: #6fb78f;
}
p {
padding: 0;
margin: 0;
}
div {
margin: 0;
padding: 0;
width: auto;
}
div.box {
padding-top: 10px;
padding-right: 15px;
padding-left: 15px;
padding-bottom: 10px;
background-color: rgba(48, 46, 46, 0.7);
margin-bottom: 10px;
margin-top: 10px;
border: 1px solid #484745;
}
div.footer {
margin: 0 auto;
position: absolute;
bottom: 10px;
width: 97%;
}
div.popup {
position: fixed;
color: whitesmoke;
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.7);
margin: 0 auto;
padding-top: 0;
top: 0;
left: 25%;
width: 50%;
padding-right: 15px;
padding-bottom: 30px;
padding-left: 15px;
border: 1px solid #112311;
z-index: 100;
display: table;
}
table {
padding: 0;
margin: 0;
border: 0;
}
button {
padding: 0;
margin: 0;
}
.fill {
margin: 0 auto;
width: 98%;
}
.disabled_overlay {
display: none;
margin: 0;
padding: 0;
position: fixed; /* Stay in place */
z-index: 50; /* Sit on top */
height: 100%;
width: 100%; /* Full width */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.5);
}
.padded {
padding-top: 15px;
padding-right: 15px;
padding-left: 15px;
padding-bottom: 15px;
}
button {
background-color: #515151;
border: 1px solid #506b58;
color: white;
padding: 5px 5px;
text-align: center;
text-decoration: none;
display: inline-block;
cursor: pointer;
margin: 0 4px 0 0;
}
button:hover {
background-color: #858595;
}
.tooltip {
position: relative;
width: 99%;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 1s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
</style>
</head>
<body id="CSiaDriveDlg" class="padded">
<div id="ID_DisabledOverlay" class="disabled_overlay" style="top: 0;left: 0;"></div>
<div id="ID_Body">
<div class="box">
<h3>Sia Information</h3>
<div style="float: right;">
<table>
<tr>
<td style="text-align: right">Client Version:</td>
<td id="ID_ClientVersion"></td>
</tr>
<tr>
<td style="text-align: right">Server Version:</td>
<td id="ID_ServerVersion"></td>
</tr>
</table>
</div>
<div>
<table>
<tr>
<td style="text-align: right">Available:</td>
<td id="ID_WalletConfirmedBalance"></td>
</tr>
<tr>
<td style="text-align: right">Pending:</td>
<td id="ID_WalletBalanceUnconfirmed"></td>
</tr>
<tr>
<td style="text-align: right">Total:</td>
<td id="ID_WalletTotalBalance"></td>
</tr>
</table>
</div>
</div>
<div id="main_window">
</div>
<div id="exit_window" style="display: none;">
<button style="width: 100px" id="ExitYes">Yes</button>&nbsp;<button style="width: 100px" id="ExitNo">No</button>
</div>
<div id="create_wallet" style="display: none" class="fill">
<h3>Create New Wallet</h3>
<p>Click 'Create' to create a new Sia wallet or exit the application if this is not what you want to do.</p>
<button id="CreateWalletButton">Create</button>
</div>
<div id="unlock_wallet" style="display: none" class="fill">
<h3>Unlock Wallet</h3>
<p>Enter wallet password and click 'Unlock' to continue.</p>
<input type="password" id="ID_WalletUnlockPwd" style="width: inherit"/><br/><br/>
<button id="UnlockWalletButton">Unlock</button>
</div>
<div id="disp_wallet_seed" style="display: none" class="fill">
<h3>Wallet Created</h3>
<p>Please save the following seed. You will need this to unlock and/or restore your wallet. Click 'Done' once you've backed-up your seed.</p>
<textarea rows=4 cols=60 style="width: 100%" id="WalletCreatedSeed"></textarea><br/><br/>
<button id="ConfirmSeedButton">Done</button>
</div>
<div id="ID_Tab_Renter" style="display: none">
<h3>Renter Settings <a href="javascript:void(0)" id="ID_Renter_Edit">edit</a></h3>
<table width="inherit" style="margin: 0 auto">
<tr>
<td style="text-align: right">Total Funding:</td>
<td id="ID_Renter_AllocatedFunds" style="min-width:120px; word-wrap: break-word;"></td>
<td colspan="50%"></td>
<td style="text-align: right">Used Funding:</td>
<td id="ID_Renter_UsedFunds" style="min-width:120px; word-wrap: break-word;"></td>
</tr>
<tr>
<td style="text-align: right">Available Funding:</td>
<td id="ID_Renter_AvailableFunds"></td>
<td colspan="50%"></td>
<td style="text-align: right">Host Count:</td>
<td id="ID_Renter_HostCount"></td>
</tr>
<tr>
<td colspan="100%">
<hr />
</td>
</tr>
<tr>
<td style="text-align: right">Total GB:</td>
<td id="ID_Renter_EstimatedSpace"></td>
<td colspan="50%"></td>
<td style="text-align: right">Price (per GB):</td>
<td id="ID_Renter_EstimatedCost"></td>
</tr>
<tr>
<td style="text-align: right">Available GB:</td>
<td id="ID_Renter_AvailablSpace"></td>
<td colspan="50%"></td>
<td style="text-align: right">Download (per GB):</td>
<td id="ID_Renter_EstimatedDownlodCost"></td>
</tr>
<tr>
<td style="text-align: right">Used GB:</td>
<td id="ID_Renter_UsedSpace"></td>
<td colspan="50%"></td>
<td style="text-align: right">Upload (per GB):</td>
<td id="ID_Renter_EstimatedUploadCost"></td>
</tr>
</table>
<div class="tooltip" id="ID_Progress" style="display: none;">
<progress style="width: 100%; margin: 0; padding: 0;" id="ID_UploadProgress" value="100" max="100">
</progress>
<span class="tooltiptext" id="ID_UploadProgressTooltip"></span>
</div>
</div>
<div id="ID_TabWindow" style="display: none">
<div class="box">
<h3>Receive Address</h3>
<label id="ID_WalletReceiveAddress" style="text-align: center; width: inherit;display: block;"></label>
</div>
<div id="ID_ActiveTab" class="box"></div>
<div class="box">
<h3>Mount Location</h3>
<p>Choose an available drive letter and click 'Mount'</p>
<table>
<tr>
<td style="text-align: left; vertical-align: top">
<select id="ID_MountDrives"></select>&nbsp;
<button id="ID_MountButton" type="button">Mount</button>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="footer">
<table class="fill">
<tr>
<td style="width: 70px; text-align: left"><b>Height:</b></td>
<td id="ID_BlockHeight">...</td>
<td style="text-align: right; vertical-align: bottom">
<button style="width: 100px" id="ButtonOK">OK</button>
</td>
</tr>
</table>
</div>
<div class="popup" style="display: none" id="ID_Edit_Renter_Popup">
<h3>Configure Renter Settings</h3>
<table>
<tr>
<td>Funding:</td>
<td><input type="number" /></td>
</tr>
<tr>
<td>Hosts:</td>
<td><input type="number" /></td>
</tr>
<tr>
<td><button type="button" onclick="closePopUp();">OK</button></td>
</tr>
</table>
</div>
<script src="res:/JS/#136" type="text/javascript"></script>
</body>
</html>