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-18 16:31:24 -06:00

251 lines
8.7 KiB
HTML

<html>
<head>
<title>Sia Drive</title>
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<style>
body {
background-color: lightgray;
width: 100%;
height: 100%;
padding: 0;
border: 0;
margin: 0;
}
label {
margin: 0;
padding: 0;
border: 0;
}
h3 {
margin-bottom: 2px;
padding: 0;
border: 0;
}
p {
padding: 0;
margin: 0;
}
div {
padding: 0;
margin: 0;
border: 0;
}
div.footer {
margin: 0 auto;
position: absolute;
bottom: 10px;
width: 98%;
}
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);
}
</style>
</head>
<body id="CSiaDriveDlg">
<div id="ID_DisabledOverlay" class="disabled_overlay" style="top: 0;left: 0;"></div>
<div id="ID_Body">
<div class="fill">
<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>
<tr>
<td style="text-align: right">Total Funding:</td>
<td id="ID_Renter_AllocatedFunds"></td>
<td colspan="40%"></td>
<td style="text-align: right">Used Funding:</td>
<td id="ID_Renter_UsedFunds"></td>
</tr>
<tr>
<td style="text-align: right">Available Funding:</td>
<td id="ID_Renter_AvailableFunds"></td>
<td colspan="40%"></td>
<td style="text-align: right">Host Count:</td>
<td id="ID_Renter_HostCount"></td>
</tr>
<tr><td><br/></td></tr>
<tr>
<td style="text-align: right">Total GB:</td>
<td id="ID_Renter_EstimatedSpace"></td>
<td colspan="40%"></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="40%"></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="40%"></td>
<td style="text-align: right">Upload (per GB):</td>
<td id="ID_Renter_EstimatedUploadCost"></td>
</tr>
</table>
</div>
<div id="ID_TabWindow" style="display: none" class="fill">
<h3>Receive Address</h3>
<label id="ID_WalletReceiveAddress"></label>
<div id="ID_ActiveTab"></div>
<div class="fill" style="padding: 0; margin: 0;">
<h3>Mounting</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>
<input id="ID_MountButton" type="button" value="Mount" />
</td>
</tr>
</table>
</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>
<button style="width: 100px" id="ButtonCancel">Exit</button>
</td>
</tr>
</table>
</div>
</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>