forked from bitcoinafterlife/bal-welist-website
Compare commits
46 Commits
revisione-
...
fix/index-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c297fb30db | ||
|
|
7be9959241 | ||
|
57347e87e7
|
|||
|
a8d1c5b214
|
|||
|
0298ec737e
|
|||
| add0b2cddc | |||
| 74fe167137 | |||
| f9ffc383a0 | |||
| d223404a86 | |||
| b79ee2fdd8 | |||
| 131e5ffabf | |||
| ce66b0de3f | |||
| ff4e46858b | |||
| 6c942e58c6 | |||
| 616c0d1285 | |||
| 03d41dd25d | |||
| adcd4cde94 | |||
| 8bdef5d18f | |||
| 5536d8b14e | |||
| 6cfa521adc | |||
| 560a4d1cbe | |||
| 221bfec74e | |||
| c9749bfed1 | |||
| 756ab98c41 | |||
| 098ca48e9d | |||
| d97b405cae | |||
| b6e9f9c11f | |||
| f4bcb27a7e | |||
| 26fdefd294 | |||
| 75a1191060 | |||
| f6c686cc40 | |||
| ea66de0693 | |||
| 2077b5b931 | |||
| e74259ef55 | |||
| f0d4104834 | |||
|
dbc00b6012
|
|||
|
3d2dbf1c2a
|
|||
|
c9d665f929
|
|||
|
eda26684a0
|
|||
|
b1c27e84bd
|
|||
|
31bdce61ca
|
|||
|
a66a1b6daa
|
|||
|
5a3c1f2b9f
|
|||
|
8d2d55fe40
|
|||
|
868292d7c1
|
|||
|
9454f8c5c1
|
153
README.md
153
README.md
@@ -1,2 +1,153 @@
|
|||||||
welist html
|
# Server Status: Complete Explanation and Reference Guide
|
||||||
|
|
||||||
|
This page explains all the **Will Executor server health statuses** used throughout the BAL Web Interface. Each status type provides critical information about server operation, health checks, and potential issues for administrators monitoring the Bitcoin After Life network.
|
||||||
|
|
||||||
|
## Status Code Overview
|
||||||
|
|
||||||
|
| Status | Description | When It Occurs |
|
||||||
|
|--------|-------------|----------------|
|
||||||
|
| `OK` | Health check passed | Server is online, functioning normally |
|
||||||
|
| `TIMEOUT: <message>` | Connection timeout | Server response took too long |
|
||||||
|
| `CONNECTION: <message>` | Connection error | Network connectivity issues |
|
||||||
|
| `STATUS: <code>` | HTTP error (from server) | Server returned non-200 status |
|
||||||
|
| `WRONG REPLY: <message>` | Invalid JSON response | Server response couldn't be parsed |
|
||||||
|
| `REQUEST: <message>` | Request error | Client-side request failed |
|
||||||
|
| `BODY: <message>` | Body read error | Failed to read response body |
|
||||||
|
| `DECODE: <message>` | Decode error | Failed to decode response content |
|
||||||
|
| `KO` | Generic error | Unknown or unspecified error |
|
||||||
|
|
||||||
|
## Status Types Explained
|
||||||
|
|
||||||
|
### 🟢 Good Statuses
|
||||||
|
**`OK`** - Everything is functioning correctly:
|
||||||
|
- Server is online and responding
|
||||||
|
- Health check completed successfully
|
||||||
|
- Ready for new registration/processing
|
||||||
|
|
||||||
|
### 🟡 Warning/Moderate Issues
|
||||||
|
**`TIMEOUT: <message>`** - Connection timed out:
|
||||||
|
- Server took too than expected to respond
|
||||||
|
- Could indicate server overload or network issues
|
||||||
|
- Requires attention but server may still be functional
|
||||||
|
|
||||||
|
**`CONNECTION: <message>`** - Connection error:
|
||||||
|
- Network connectivity problems
|
||||||
|
- Server might be reachable but cannot communicate
|
||||||
|
- Potential infrastructure or configuration issue
|
||||||
|
|
||||||
|
**`STATUS: <code>`** - HTTP error:
|
||||||
|
- Server responded with an error code (4xx or 5xx)
|
||||||
|
- Could indicate misconfiguration, maintenance, or issues |
|
||||||
|
- Different error codes mean different things
|
||||||
|
|
||||||
|
### 🔴 Critical Issues
|
||||||
|
**`WRONG REPLY`** - Invalid JSON response:
|
||||||
|
- Server response format is incorrect
|
||||||
|
- May indicate server software bug or corruption
|
||||||
|
- Prevents proper data processing
|
||||||
|
|
||||||
|
**`REQUEST`** - Request error:
|
||||||
|
- Client request failed
|
||||||
|
- Network or protocol issue
|
||||||
|
- Server may be unreachable
|
||||||
|
|
||||||
|
**`BODY`** - Body read error:
|
||||||
|
- Failed to read response body after successful connection
|
||||||
|
- Could indicate server processing issues
|
||||||
|
- Data corruption or transmission problems
|
||||||
|
|
||||||
|
**`DECODE`** - Decode error:
|
||||||
|
- Failed to decode response content
|
||||||
|
- Encoding mismatch or corrupted data
|
||||||
|
- Prevents proper data interpretation
|
||||||
|
|
||||||
|
**`KO`** - Generic error:
|
||||||
|
- Unknown or unspecified error
|
||||||
|
- Fallback for all other unidentified issues
|
||||||
|
- Indicates something went wrong but exact cause unknown
|
||||||
|
|
||||||
|
## Example Status Messages
|
||||||
|
|
||||||
|
### Normal Operations
|
||||||
|
```
|
||||||
|
Status: OK
|
||||||
|
Meaning: Health check passed
|
||||||
|
Display: Server is healthy and ready
|
||||||
|
```
|
||||||
|
|
||||||
|
### Network/Time Issues
|
||||||
|
```
|
||||||
|
Status: TIMEOUT: Connection timed out after 30 seconds
|
||||||
|
Meaning: Server took too long to respond
|
||||||
|
Display: "Connection timeout (Connection timed out after 30 seconds)"
|
||||||
|
```
|
||||||
|
|
||||||
|
### HTTP Errors
|
||||||
|
```
|
||||||
|
Status: STATUS: 500
|
||||||
|
Meaning: Server returned HTTP 500 Internal Server Error
|
||||||
|
Display: "HTTP error (HTTP error)"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Response Processing Issues
|
||||||
|
```
|
||||||
|
Status: WRONG REPLY: Invalid JSON
|
||||||
|
Meaning: Server response could not be parsed as JSON
|
||||||
|
Display: "Invalid JSON response (Invalid JSON)"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Practical Usage Guide
|
||||||
|
|
||||||
|
### For Server Administrators
|
||||||
|
- **OK**: Check server resources and logs if needed
|
||||||
|
- **TIMEOUT/CONNECTION**: Check server network connectivity
|
||||||
|
- **STATUS**: Review server logs and restart if needed
|
||||||
|
- **WRONG REPLY/DECODE/REQUEST**: Investigate server software issues
|
||||||
|
- **KO**: Review server errors and restart
|
||||||
|
|
||||||
|
### For Users
|
||||||
|
- **OK**: Server is working correctly
|
||||||
|
- **TIMEOUT/CONNECTION**: Temporary issue, try again later
|
||||||
|
- **STATUS**: Server may be down for maintenance
|
||||||
|
- **Other errors**: Server issue, contact support if persistent
|
||||||
|
|
||||||
|
## Monitoring Tips
|
||||||
|
|
||||||
|
1. **Continuous Monitoring**: Regular checks of status codes help detect issues early
|
||||||
|
2. **Alert Setup**: Configure alerts for non-OK statuses
|
||||||
|
3. **Log Analysis**: Correlate status codes with server logs
|
||||||
|
4. **Capacity Planning**: Address persistent timeouts/connections with infrastructure improvements
|
||||||
|
|
||||||
|
## Status Processing Logic
|
||||||
|
|
||||||
|
### Status Code Processing
|
||||||
|
```javascript
|
||||||
|
const statusMap = {
|
||||||
|
'OK': 'Health check passed',
|
||||||
|
'TIMEOUT': 'Connection timeout',
|
||||||
|
'CONNECTION': 'Connection error',
|
||||||
|
'STATUS': 'HTTP error',
|
||||||
|
'WRONG REPLY': 'Invalid JSON response',
|
||||||
|
'REQUEST': 'Request error',
|
||||||
|
'BODY': 'Body read error',
|
||||||
|
'DECODE': 'Decode error',
|
||||||
|
'KO': 'Generic error'
|
||||||
|
};
|
||||||
|
|
||||||
|
// Extract base status from status message
|
||||||
|
const st = (data.status||'').split(':')[0];
|
||||||
|
|
||||||
|
// Display only the description (e.g., "Connection timeout" instead of "TIMEOUT: Connection timeout")
|
||||||
|
statusDisplay = statusMap[st] || '—';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Related Documentation
|
||||||
|
|
||||||
|
For more details on server setup, monitoring, and troubleshooting, refer to:
|
||||||
|
- [Server Administration Guide](./administration)
|
||||||
|
- [Status Monitoring Setup](./monitoring-setup)
|
||||||
|
- [Error Resolution Handbook](./error-resolve)
|
||||||
|
|
||||||
|
## Additional Information
|
||||||
|
|
||||||
|
This status system provides a clear, human-readable way to understand server health at a glance, making it easier for administrators to quickly identify and respond to issues.
|
||||||
270
index.html
270
index.html
@@ -117,14 +117,8 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
|||||||
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
|
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
|
||||||
.score{font-family:var(--display);font-weight:600;font-size:15px}
|
.score{font-family:var(--display);font-weight:600;font-size:15px}
|
||||||
|
|
||||||
.status{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;white-space:nowrap}
|
.add-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:40px 0;align-items:stretch}
|
||||||
.dot{width:8px;height:8px;border-radius:50%;flex:none}
|
.add-grid>.panel{display:flex;flex-direction:column}
|
||||||
.status.online{color:var(--ok)}
|
|
||||||
.status.online .dot{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
|
|
||||||
.status.offline{color:var(--off)}
|
|
||||||
.status.offline .dot{background:var(--off);box-shadow:0 0 0 3px var(--off-soft)}
|
|
||||||
|
|
||||||
.add-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:40px 0;align-items:start}
|
|
||||||
.panel{
|
.panel{
|
||||||
background:var(--panel);border:1px solid var(--line);
|
background:var(--panel);border:1px solid var(--line);
|
||||||
border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);
|
border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);
|
||||||
@@ -143,8 +137,14 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
|||||||
background:var(--accent);color:#fff;
|
background:var(--accent);color:#fff;
|
||||||
}
|
}
|
||||||
.btn:hover{filter:brightness(1.06)}
|
.btn:hover{filter:brightness(1.06)}
|
||||||
|
.btn:disabled{opacity:.45;cursor:not-allowed;filter:none}
|
||||||
.note{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.55}
|
.note{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.55}
|
||||||
.note strong{color:var(--ink)}
|
.note strong{color:var(--ink)}
|
||||||
|
.btn-share{
|
||||||
|
display:block;margin:0 auto 8px;font:inherit;font-size:13px;cursor:pointer;
|
||||||
|
padding:8px 16px;border-radius:8px;border:1px solid var(--line-strong);
|
||||||
|
background:var(--panel);color:var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
.invoice{display:none}
|
.invoice{display:none}
|
||||||
.invoice.show{display:block}
|
.invoice.show{display:block}
|
||||||
@@ -152,10 +152,26 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
|||||||
.invoice .row:last-child{border-bottom:0}
|
.invoice .row:last-child{border-bottom:0}
|
||||||
.invoice .row span:first-child{color:var(--muted)}
|
.invoice .row span:first-child{color:var(--muted)}
|
||||||
.invoice .row span:last-child{font-family:var(--mono);text-align:right;word-break:break-all}
|
.invoice .row span:last-child{font-family:var(--mono);text-align:right;word-break:break-all}
|
||||||
#qrcode{margin:18px auto 4px;width:160px;height:160px}
|
.invoice .row a{color:var(--accent);text-decoration:none}
|
||||||
#qrcode img{width:160px;height:160px}
|
.invoice .row a:hover{text-decoration:underline}
|
||||||
|
#qrcode{margin:18px auto 4px;width:160px}
|
||||||
|
#qrcode canvas,#qrcode img{width:160px!important;height:160px!important;max-width:100%}
|
||||||
|
#qr-overlay{
|
||||||
|
display:none;position:fixed;inset:0;z-index:999;
|
||||||
|
background:rgba(0,0,0,.7);cursor:pointer;
|
||||||
|
align-items:center;justify-content:center;
|
||||||
|
}
|
||||||
|
#qr-overlay.show{display:flex}
|
||||||
|
#qr-big{padding:24px;background:#fff;border-radius:12px}
|
||||||
|
#qr-big canvas,#qr-big img{width:280px!important;height:280px!important;max-width:90vw}
|
||||||
.ok-line{color:var(--ok);font-weight:600;font-size:14px;margin-bottom:14px}
|
.ok-line{color:var(--ok);font-weight:600;font-size:14px;margin-bottom:14px}
|
||||||
.err-line{color:#d32f2f;font-weight:600;font-size:14px;margin-bottom:14px}
|
.err-line{color:#d32f2f;font-weight:600;font-size:14px;margin-bottom:14px}
|
||||||
|
.terms-box{display:none;margin:16px 0;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
|
||||||
|
.terms-box.show{display:block}
|
||||||
|
.terms-box .lead{margin:0 0 12px;color:var(--ink);font-weight:600}
|
||||||
|
.terms-box a.mono{font-size:14px;word-break:break-all}
|
||||||
|
.terms-box label{font-size:14px;cursor:pointer}
|
||||||
|
.terms-box .btn{margin-top:14px}
|
||||||
|
|
||||||
.intro-card{
|
.intro-card{
|
||||||
background:var(--panel);border:1px solid var(--line);
|
background:var(--panel);border:1px solid var(--line);
|
||||||
@@ -252,8 +268,6 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<th>Info</th>
|
<th>Info</th>
|
||||||
<th class="num">Fee</th>
|
<th class="num">Fee</th>
|
||||||
<th>Version</th>
|
<th>Version</th>
|
||||||
<th class="num">Balance</th>
|
|
||||||
<th>Status</th>
|
|
||||||
<th class="num">Height</th>
|
<th class="num">Height</th>
|
||||||
<th class="num">Wins</th>
|
<th class="num">Wins</th>
|
||||||
<th class="num">Score</th>
|
<th class="num">Score</th>
|
||||||
@@ -273,35 +287,56 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<div class="add-grid">
|
<div class="add-grid">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<h2>Add your Will Executor</h2>
|
<h2>Add your Will Executor</h2>
|
||||||
<p class="lead">Enter your server URL. It will be checked online before it appears in the list.</p>
|
<p class="lead">Enter your server URL. It will appear in the list once your deposit is confirmed (typically about 30 minutes).</p>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<input type="text" id="url" placeholder="https://bitcoin-after.life:9137">
|
<input type="text" id="url" placeholder="https://we.bitcoin-after.life">
|
||||||
<button class="btn" id="submit">Add server</button>
|
</div>
|
||||||
|
<div style="margin-top:8px">
|
||||||
|
<input type="text" id="contact" placeholder="Email, npub or Telegram (optional)" style="width:100%;font:inherit;font-size:14px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel);color:var(--ink)">
|
||||||
|
</div>
|
||||||
|
<button class="btn" id="submit" style="margin-top:8px">Add server</button>
|
||||||
|
|
||||||
|
<div class="ok-line" id="iv-status"></div>
|
||||||
|
|
||||||
|
<div class="terms-box" id="terms-box">
|
||||||
|
<p class="lead">You are about to add this server:</p>
|
||||||
|
<p><a id="terms-url" href="#" target="_blank" rel="noopener" class="mono"></a></p>
|
||||||
|
<p style="font-size:13px;margin-top:4px"><strong>Make sure the link above works correctly before paying. No refunds after payment. URL changes require proof of ownership — see the <a href="/terms.html" target="_blank">Terms</a>.</strong></p>
|
||||||
|
<p style="font-size:14px">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="terms-check">
|
||||||
|
I accept the <a href="/terms.html" target="_blank">terms and conditions</a>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
<button class="btn" id="terms-accept" disabled>Accept & Show Invoice</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="invoice" id="invoice">
|
<div class="invoice" id="invoice">
|
||||||
<div class="ok-line" id="iv-status">✓ Server added. Pay the invoice to complete.</div>
|
<div class="row"><span>Annual fee</span><span id="iv-min">—</span></div>
|
||||||
<div class="row"><span>Minimum amount</span><span id="iv-min">—</span></div>
|
|
||||||
<div class="row"><span>Chain</span><span id="iv-chain">—</span></div>
|
<div class="row"><span>Chain</span><span id="iv-chain">—</span></div>
|
||||||
<div class="row"><span>Address</span><span id="iv-addr">—</span></div>
|
<div class="row"><span>Address</span><span id="iv-addr">—</span></div>
|
||||||
<div class="row"><span>Balance</span><span id="iv-balance">—</span></div>
|
<div class="row"><span>Balance</span><span id="iv-balance">—</span></div>
|
||||||
<div class="row"><span>Status</span><span id="iv-status2">—</span></div>
|
<div class="row"><span>Donations</span><span id="iv-donations">—</span></div>
|
||||||
|
<div class="row"><span>Contact</span><span id="iv-contact">—</span></div>
|
||||||
|
<div class="row"><span>Server</span><span id="iv-url">—</span></div>
|
||||||
|
<div class="row"><span>Will Executor</span><span><a id="iv-weinfo" href="#" target="_blank">—</a></span></div>
|
||||||
|
<div class="row" id="iv-nextdep-row" style="display:none"><span>Next renewal</span><span id="iv-nextdep">—</span></div>
|
||||||
<div id="qrcode"></div>
|
<div id="qrcode"></div>
|
||||||
|
<button class="btn-share" id="share-btn">Share invoice</button>
|
||||||
|
<p class="note">
|
||||||
|
<strong>Please make sure your server is online before you attempt to add it.</strong>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="note">
|
|
||||||
<strong>Please make sure your server is online before you attempt to add it.</strong>
|
|
||||||
Servers that are offline will not appear in this list. They will be checked regularly
|
|
||||||
until they come back online.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<h2>How ranking works</h2>
|
<h2>How ranking works</h2>
|
||||||
<p class="lead">Bid-based ranking: higher contributions rank higher.</p>
|
<p class="lead">Ordered by excess donated, then total paid, then base fee (lower first), then WeTime points.</p>
|
||||||
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Listing threshold</span><b class="mono">50,000 sats</b></div>
|
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Yearly fee</span><b class="mono"><span id="thr-min">50,000</span> sats</b></div>
|
||||||
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Plugin integration</span><b>automatic</b></div>
|
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Listing period</span><b>365 days</b></div>
|
||||||
<div style="display:flex;justify-content:space-between;padding:8px 0;font-size:13px"><span style="color:var(--muted)">Early-adopter guarantee</span><b>12 months</b></div>
|
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Renewal window</span><b>from 6 months before expiry</b></div>
|
||||||
|
<div style="display:flex;justify-content:space-between;padding:8px 0;font-size:13px"><span style="color:var(--muted)">Plugin integration</span><b>automatic</b></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -316,13 +351,13 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<div class="info-block">
|
<div class="info-block">
|
||||||
<span class="ic">02</span>
|
<span class="ic">02</span>
|
||||||
<h3>Ranking System</h3>
|
<h3>Ranking System</h3>
|
||||||
<p>This leaderboard operates on a bid-based ranking system where higher contributions result in better positioning.</p>
|
<p>This leaderboard is ordered by excess donated (over the yearly fee), then total amount paid, then lower base fee, then WeTime points.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info-block">
|
<div class="info-block">
|
||||||
<span class="ic">03</span>
|
<span class="ic">03</span>
|
||||||
<h3>Early Adopter Incentives</h3>
|
<h3>Listing & Renewal</h3>
|
||||||
<p>To support the project's initial launch phase, we plan to maintain the first Will Executor servers for a minimum of 12 months, rewarding early participants. Subsequently, premium positions will be available through an auction system based on protocol revenue generation.</p>
|
<p>A flat yearly fee buys 365 days of presence in the list, starting when your payment reaches 3 confirmations. You can renew for one additional year at any time from 6 months before expiry; listings that are not renewed are removed at expiry. See the <a href="/terms.html" target="_blank">Terms</a> for details.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info-block">
|
<div class="info-block">
|
||||||
@@ -339,14 +374,18 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<span>Bitcoin After Life — Will Executor List</span>
|
<span>Bitcoin After Life — Will Executor List</span>
|
||||||
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
|
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
|
||||||
|
<a href="/terms.html">Terms</a>
|
||||||
|
<a class="mono" id="commit-link" href="https://bitcoin-after.life/gitea/bitcoinafterlife/bal-welist-website/commit/COMMIT_HASH_PLACEHOLDER">COMMIT_HASH_PLACEHOLDER</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let allServers = [];
|
let allServers = [];
|
||||||
let withTor = true, q = "";
|
let withTor = true, q = "";
|
||||||
|
let minAmount = 50000;
|
||||||
|
|
||||||
const fmt = n => (n != null ? Number(n).toLocaleString('en-US') : '—');
|
const fmt = n => (n != null ? Number(n).toLocaleString('en-US') : '—');
|
||||||
|
const trunc = (s, m=40) => s && s.length > m ? s.slice(0, m) + '…' : s;
|
||||||
|
|
||||||
function getChain() {
|
function getChain() {
|
||||||
const btn = document.querySelector('#chainSeg [aria-pressed="true"]');
|
const btn = document.querySelector('#chainSeg [aria-pressed="true"]');
|
||||||
@@ -355,9 +394,7 @@ function getChain() {
|
|||||||
|
|
||||||
function getFiltered() {
|
function getFiltered() {
|
||||||
return allServers
|
return allServers
|
||||||
.filter(d => withTor ? true : !d.onion)
|
.filter(d => (d.url + " " + (d.info||"")).toLowerCase().includes(q.toLowerCase()));
|
||||||
.filter(d => (d.url + " " + (d.info||"")).toLowerCase().includes(q.toLowerCase()))
|
|
||||||
.sort((a, b) => (b.points||0) - (a.points||0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
@@ -367,25 +404,20 @@ function render() {
|
|||||||
tb.innerHTML = ""; ml.innerHTML = "";
|
tb.innerHTML = ""; ml.innerHTML = "";
|
||||||
|
|
||||||
if (!list.length) {
|
if (!list.length) {
|
||||||
tb.innerHTML = '<tr><td colspan="10" style="padding:28px;text-align:center;color:var(--muted)">No servers found.</td></tr>';
|
tb.innerHTML = '<tr><td colspan="8" style="padding:28px;text-align:center;color:var(--muted)">No servers found.</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
list.forEach((d, i) => {
|
list.forEach((d, i) => {
|
||||||
const rank = i + 1;
|
const rank = i + 1;
|
||||||
const st = d.status === "online"
|
|
||||||
? '<span class="status online"><span class="dot"></span>Online</span>'
|
|
||||||
: '<span class="status offline"><span class="dot"></span>Offline</span>';
|
|
||||||
const weLink = `/weinfo/${d.chain||getChain()}/${d.id}`;
|
const weLink = `/weinfo/${d.chain||getChain()}/${d.id}`;
|
||||||
|
|
||||||
tb.insertAdjacentHTML('beforeend', `
|
tb.insertAdjacentHTML('beforeend', `
|
||||||
<tr>
|
<tr>
|
||||||
<td class="num"><span class="rank ${rank<=3?'top':''}">${rank}</span></td>
|
<td class="num"><span class="rank ${rank<=3?'top':''}">${rank}</span></td>
|
||||||
<td class="url"><a href="${weLink}">${DOMPurify.sanitize(d.url)}</a></td>
|
<td class="url"><a href="${weLink}" title="${DOMPurify.sanitize(d.url)}">${DOMPurify.sanitize(trunc(d.url))}</a></td>
|
||||||
<td class="info">${DOMPurify.sanitize(d.info||'—')}</td>
|
<td class="info">${DOMPurify.sanitize(d.info||'—')}</td>
|
||||||
<td class="num">${fmt(d.base_fee)}</td>
|
<td class="num">${fmt(d.base_fee)}</td>
|
||||||
<td class="mono">${DOMPurify.sanitize(d.version||'—')}</td>
|
<td class="mono">${DOMPurify.sanitize(d.version||'—')}</td>
|
||||||
<td class="num">${fmt(d.balance)}</td>
|
|
||||||
<td>${st}</td>
|
|
||||||
<td class="num">${fmt(d.last_block)}</td>
|
<td class="num">${fmt(d.last_block)}</td>
|
||||||
<td class="num">${d.count_win != null ? d.count_win : '—'}</td>
|
<td class="num">${d.count_win != null ? d.count_win : '—'}</td>
|
||||||
<td class="num"><span class="score">${fmt(d.points)}</span></td>
|
<td class="num"><span class="score">${fmt(d.points)}</span></td>
|
||||||
@@ -394,25 +426,24 @@ function render() {
|
|||||||
ml.insertAdjacentHTML('beforeend', `
|
ml.insertAdjacentHTML('beforeend', `
|
||||||
<div class="srv">
|
<div class="srv">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div><div class="rk">#${rank}</div><a href="${weLink}" style="color:var(--ink);font-weight:600;text-decoration:none;font-size:14px">${DOMPurify.sanitize(d.url)}</a></div>
|
<div><div class="rk">#${rank}</div><a href="${weLink}" title="${DOMPurify.sanitize(d.url)}" style="color:var(--ink);font-weight:600;text-decoration:none;font-size:14px">${DOMPurify.sanitize(trunc(d.url))}</a></div>
|
||||||
${st}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<div><span>Score</span><b>${fmt(d.points)}</b></div>
|
<div><span>Score</span><b>${fmt(d.points)}</b></div>
|
||||||
<div><span>Wins</span><b>${d.count_win != null ? d.count_win : '—'}</b></div>
|
<div><span>Wins</span><b>${d.count_win != null ? d.count_win : '—'}</b></div>
|
||||||
<div><span>Fee</span><b>${fmt(d.base_fee)} sat</b></div>
|
<div><span>Fee</span><b>${fmt(d.base_fee)} sat</b></div>
|
||||||
<div><span>Balance</span><b>${fmt(d.balance)}</b></div>
|
|
||||||
<div><span>Version</span><b>${DOMPurify.sanitize(d.version||'—')}</b></div>
|
<div><span>Version</span><b>${DOMPurify.sanitize(d.version||'—')}</b></div>
|
||||||
<div><span>Height</span><b>${fmt(d.last_block)}</b></div>
|
<div><span>Height</span><b>${fmt(d.last_block)}</b></div>
|
||||||
</div>
|
</div>
|
||||||
</div>`);
|
</div>`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const online = allServers.filter(d => d.status === "online").length;
|
const online = allServers.filter(d => d.status === "OK").length;
|
||||||
document.getElementById('s-online').textContent = online;
|
document.getElementById('s-online').textContent = online;
|
||||||
document.getElementById('s-total').textContent = allServers.length;
|
document.getElementById('s-total').textContent = allServers.length;
|
||||||
const top = getFiltered()[0];
|
// Highest known block across all servers (the list is ranked by fee/points, not by height)
|
||||||
document.getElementById('s-block').textContent = top ? fmt(top.last_block) : '—';
|
const maxBlock = allServers.reduce((m, d) => Math.max(m, d.last_block || 0), 0);
|
||||||
|
document.getElementById('s-block').textContent = maxBlock ? fmt(maxBlock) : '—';
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
@@ -423,7 +454,7 @@ async function fetchData() {
|
|||||||
const response = await fetch(`/data/${chain}?${params}`);
|
const response = await fetch(`/data/${chain}?${params}`);
|
||||||
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
||||||
const obj = await response.json();
|
const obj = await response.json();
|
||||||
allServers = Object.entries(obj).map(([key, s]) => ({ ...s, id: key }));
|
allServers = Object.entries(obj).map(([key, s]) => ({ id: key, ...s }));
|
||||||
render();
|
render();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Fetch error:', err);
|
console.error('Fetch error:', err);
|
||||||
@@ -432,6 +463,20 @@ async function fetchData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function fetchMinAmount() {
|
||||||
|
const chain = getChain();
|
||||||
|
try {
|
||||||
|
const r = await fetch('/min_deposit/' + chain);
|
||||||
|
const val = parseInt(await r.text(), 10);
|
||||||
|
if (isNaN(val)) throw new Error('invalid');
|
||||||
|
minAmount = val;
|
||||||
|
document.getElementById('thr-min').textContent = fmt(val);
|
||||||
|
} catch (err) {
|
||||||
|
minAmount = 50000;
|
||||||
|
document.getElementById('thr-min').textContent = '50,000';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById('onion').addEventListener('change', e => {
|
document.getElementById('onion').addEventListener('change', e => {
|
||||||
withTor = e.target.checked;
|
withTor = e.target.checked;
|
||||||
fetchData();
|
fetchData();
|
||||||
@@ -448,6 +493,7 @@ document.getElementById('chainSeg').addEventListener('click', e => {
|
|||||||
[...e.currentTarget.children].forEach(x => x.setAttribute('aria-pressed', 'false'));
|
[...e.currentTarget.children].forEach(x => x.setAttribute('aria-pressed', 'false'));
|
||||||
b.setAttribute('aria-pressed', 'true');
|
b.setAttribute('aria-pressed', 'true');
|
||||||
fetchData();
|
fetchData();
|
||||||
|
fetchMinAmount();
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('submit').addEventListener('click', async () => {
|
document.getElementById('submit').addEventListener('click', async () => {
|
||||||
@@ -458,48 +504,148 @@ document.getElementById('submit').addEventListener('click', async () => {
|
|||||||
url = 'https://' + url;
|
url = 'https://' + url;
|
||||||
urlInput.value = url;
|
urlInput.value = url;
|
||||||
}
|
}
|
||||||
|
const inv = document.getElementById('invoice');
|
||||||
|
inv.classList.remove('show');
|
||||||
|
document.getElementById('iv-status').className = '';
|
||||||
|
document.getElementById('iv-status').textContent = '';
|
||||||
|
document.getElementById('iv-min').textContent = '—';
|
||||||
|
document.getElementById('iv-chain').textContent = '—';
|
||||||
|
document.getElementById('iv-addr').textContent = '—';
|
||||||
|
document.getElementById('iv-balance').textContent = '—';
|
||||||
|
document.getElementById('iv-donations').textContent = '—';
|
||||||
|
document.getElementById('iv-url').textContent = '—';
|
||||||
|
document.getElementById('iv-contact').textContent = '—';
|
||||||
|
document.getElementById('iv-weinfo').href = '#';
|
||||||
|
document.getElementById('iv-weinfo').textContent = '—';
|
||||||
|
document.getElementById('iv-nextdep-row').style.display = 'none';
|
||||||
|
document.getElementById('iv-nextdep').textContent = '—';
|
||||||
|
document.getElementById('iv-min').parentElement.style.display = '';
|
||||||
|
document.getElementById('iv-addr').parentElement.style.display = '';
|
||||||
|
document.getElementById('qrcode').style.display = '';
|
||||||
|
document.getElementById('share-btn').style.display = '';
|
||||||
|
document.getElementById('qrcode').innerHTML = '';
|
||||||
|
document.getElementById('qrcode').style.cursor = '';
|
||||||
|
document.getElementById('qr-overlay').classList.remove('show');
|
||||||
|
document.getElementById('share-btn').textContent = 'Share invoice';
|
||||||
|
document.getElementById('terms-box').classList.remove('show');
|
||||||
|
document.getElementById('terms-box').style.display = '';
|
||||||
|
document.getElementById('terms-check').checked = false;
|
||||||
|
document.getElementById('terms-accept').disabled = true;
|
||||||
|
const chain = getChain();
|
||||||
|
const infoUrl = url + '/' + chain + '/info';
|
||||||
|
document.getElementById('terms-url').href = infoUrl;
|
||||||
|
document.getElementById('terms-url').textContent = url;
|
||||||
|
document.getElementById('terms-box').classList.add('show');
|
||||||
|
document.getElementById('terms-box').scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('terms-check').addEventListener('change', function () {
|
||||||
|
document.getElementById('terms-accept').disabled = !this.checked;
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('terms-accept').addEventListener('click', async function () {
|
||||||
|
document.getElementById('terms-box').classList.remove('show');
|
||||||
|
const urlInput = document.getElementById('url');
|
||||||
|
let url = urlInput.value.trim();
|
||||||
|
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||||
|
url = 'https://' + url;
|
||||||
|
}
|
||||||
const chain = getChain();
|
const chain = getChain();
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/data', {
|
const response = await fetch('/data', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ url, chain })
|
body: JSON.stringify({ url, chain, contact: document.getElementById('contact').value.trim() || undefined })
|
||||||
});
|
});
|
||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
const inv = document.getElementById('invoice');
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
document.getElementById('iv-status').className = 'err-line';
|
document.getElementById('iv-status').className = 'err-line';
|
||||||
document.getElementById('iv-status').textContent = 'Error: ' + (result.message || result.error || JSON.stringify(result));
|
document.getElementById('iv-status').textContent = 'Error: ' + (result.message || result.error || JSON.stringify(result));
|
||||||
inv.classList.add('show');
|
|
||||||
document.getElementById('qrcode').innerHTML = '';
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
document.getElementById('iv-status').className = 'ok-line';
|
document.getElementById('iv-min').textContent = fmt(result.min_amount != null ? result.min_amount : minAmount) + ' sats';
|
||||||
document.getElementById('iv-status').textContent = '✓ Server added. Pay the invoice to complete.';
|
|
||||||
document.getElementById('iv-min').textContent = (result.min_amount || '50,000') + ' sats';
|
|
||||||
document.getElementById('iv-chain').textContent = result.chain || chain;
|
document.getElementById('iv-chain').textContent = result.chain || chain;
|
||||||
document.getElementById('iv-addr').textContent = result.address || '—';
|
document.getElementById('iv-addr').textContent = result.address || '—';
|
||||||
document.getElementById('iv-balance').textContent = result.balance != null ? fmt(result.balance) : '—';
|
const balStr = result.balance != null ? fmt(result.balance) : null;
|
||||||
document.getElementById('iv-status2').textContent = result.status || '—';
|
const uncStr = result.unconfirmed_balance != null ? fmt(result.unconfirmed_balance) : null;
|
||||||
const invoiceuri = `bitcoin:${result.address}?label=BAL&message=Order+For+url+%26+${encodeURIComponent(url)}`;
|
document.getElementById('iv-balance').textContent = balStr ? (uncStr ? balStr + ' (' + uncStr + ')' : balStr) : '—';
|
||||||
|
document.getElementById('iv-donations').textContent = result.donation != null ? fmt(result.donation) : '—';
|
||||||
|
document.getElementById('iv-contact').textContent = document.getElementById('contact').value.trim() || '—';
|
||||||
|
const weLink = result.id ? `/weinfo/${result.chain || chain}/${result.id}` : null;
|
||||||
|
const weinfoEl = document.getElementById('iv-weinfo');
|
||||||
|
if (weLink) {
|
||||||
|
weinfoEl.href = weLink;
|
||||||
|
weinfoEl.textContent = 'View page';
|
||||||
|
} else {
|
||||||
|
weinfoEl.href = '#';
|
||||||
|
weinfoEl.textContent = '—';
|
||||||
|
}
|
||||||
|
const serverUrl = result.url || url;
|
||||||
|
document.getElementById('iv-url').textContent = serverUrl;
|
||||||
|
if (result.payment_needed === false) {
|
||||||
|
document.getElementById('iv-min').parentElement.style.display = 'none';
|
||||||
|
document.getElementById('iv-addr').parentElement.style.display = 'none';
|
||||||
|
document.getElementById('qrcode').style.display = 'none';
|
||||||
|
document.getElementById('share-btn').style.display = 'none';
|
||||||
|
document.getElementById('iv-nextdep').textContent = result.next_deposit_date || '—';
|
||||||
|
document.getElementById('iv-nextdep-row').style.display = 'flex';
|
||||||
|
document.getElementById('iv-status').className = 'ok-line';
|
||||||
|
document.getElementById('iv-status').textContent = 'Server is already listed. Next renewal: ' + (result.next_deposit_date || '—');
|
||||||
|
const inv = document.getElementById('invoice');
|
||||||
|
inv.classList.add('show');
|
||||||
|
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const amountSats = result.min_amount != null ? result.min_amount : minAmount;
|
||||||
|
const amountBtc = (amountSats / 1e8).toFixed(8).replace(/\.?0+$/, '');
|
||||||
|
const invoiceuri = `bitcoin:${result.address}?amount=${amountBtc}&label=BAL&message=Order+For+url+%26+${encodeURIComponent(url)}`;
|
||||||
const qrEl = document.getElementById('qrcode');
|
const qrEl = document.getElementById('qrcode');
|
||||||
qrEl.innerHTML = '';
|
qrEl.innerHTML = '';
|
||||||
new QRCode(qrEl, invoiceuri);
|
new QRCode(qrEl, { text: invoiceuri, width: 160, height: 160 });
|
||||||
|
qrEl.style.cursor = 'pointer';
|
||||||
|
qrEl.onclick = function () {
|
||||||
|
const overlay = document.getElementById('qr-overlay');
|
||||||
|
const big = document.getElementById('qr-big');
|
||||||
|
big.innerHTML = '';
|
||||||
|
new QRCode(big, { text: invoiceuri, width: 280, height: 280 });
|
||||||
|
overlay.classList.add('show');
|
||||||
|
};
|
||||||
|
document.getElementById('qr-overlay').onclick = function () {
|
||||||
|
this.classList.remove('show');
|
||||||
|
};
|
||||||
|
const shareBtn = document.getElementById('share-btn');
|
||||||
|
shareBtn.textContent = 'Share invoice';
|
||||||
|
shareBtn.onclick = function () {
|
||||||
|
if (navigator.share) {
|
||||||
|
navigator.share({ title: 'BAL Invoice', text: invoiceuri });
|
||||||
|
} else {
|
||||||
|
navigator.clipboard.writeText(invoiceuri).then(() => {
|
||||||
|
this.textContent = 'Copied!';
|
||||||
|
setTimeout(() => this.textContent = 'Share invoice', 2000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
document.getElementById('iv-status').className = 'ok-line';
|
||||||
|
document.getElementById('iv-status').textContent = '✓ Server verified: ' + serverUrl + '. Pay the invoice — it will be listed after 3 confirmations.';
|
||||||
|
const inv = document.getElementById('invoice');
|
||||||
inv.classList.add('show');
|
inv.classList.add('show');
|
||||||
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
document.getElementById('iv-status').className = 'err-line';
|
document.getElementById('iv-status').className = 'err-line';
|
||||||
document.getElementById('iv-status').textContent = 'Network error. Please try again.';
|
document.getElementById('iv-status').textContent = 'Network error. Please try again.';
|
||||||
document.getElementById('invoice').classList.add('show');
|
|
||||||
document.getElementById('qrcode').innerHTML = '';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
(function init() {
|
document.getElementById('url').addEventListener('keydown', e => {
|
||||||
|
if (e.key === 'Enter') document.getElementById('submit').click();
|
||||||
|
});
|
||||||
|
|
||||||
|
(async function init() {
|
||||||
|
await Promise.all([fetchData(), fetchMinAmount()]);
|
||||||
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
|
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
|
||||||
document.getElementById('download').href = URL.createObjectURL(blob);
|
document.getElementById('download').href = URL.createObjectURL(blob);
|
||||||
fetchData();
|
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
<div id="qr-overlay"><div id="qr-big"></div></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
353
terms.html
Normal file
353
terms.html
Normal file
@@ -0,0 +1,353 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>BAL Server List — Terms & Conditions</title>
|
||||||
|
<link rel="icon" href="Logo_nero.ico" type="image/x-icon">
|
||||||
|
<!--
|
||||||
|
Sections 2-4 rewritten on 2026-07 for the yearly-listing model
|
||||||
|
(flat yearly fee, renewal from 6 months before expiry). The list
|
||||||
|
is ordered by total excess donated, then total amount paid, then
|
||||||
|
base fee, then WeTime points as a tie-breaker (see Section 3),
|
||||||
|
matching the server-side get_list() ordering. Section 1, header,
|
||||||
|
footer and the dynamic min-deposit script are unchanged from the
|
||||||
|
previous version.
|
||||||
|
-->
|
||||||
|
<style>
|
||||||
|
:root{
|
||||||
|
--maxw:1120px;
|
||||||
|
--radius:10px;
|
||||||
|
|
||||||
|
--bg:#eef1f4;
|
||||||
|
--panel:#ffffff;
|
||||||
|
--ink:#1a2027;
|
||||||
|
--muted:#5b6672;
|
||||||
|
--line:#dfe4ea;
|
||||||
|
--line-strong:#cbd2da;
|
||||||
|
--accent:#2d6cdf;
|
||||||
|
--accent-soft:#e6eefc;
|
||||||
|
--ok:#1f9d57;
|
||||||
|
--ok-soft:#e3f4ea;
|
||||||
|
--off:#9aa4b0;
|
||||||
|
--off-soft:#eceff3;
|
||||||
|
--rank:#94a0ad;
|
||||||
|
|
||||||
|
--display:"Inter","Segoe UI",system-ui,-apple-system,sans-serif;
|
||||||
|
--body:"Inter","Segoe UI",system-ui,-apple-system,sans-serif;
|
||||||
|
--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
|
||||||
|
--shadow:0 1px 2px rgba(20,30,50,.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
*{box-sizing:border-box}
|
||||||
|
html,body{margin:0}
|
||||||
|
body{
|
||||||
|
background:var(--bg);
|
||||||
|
color:var(--ink);
|
||||||
|
font-family:var(--body);
|
||||||
|
line-height:1.5;
|
||||||
|
-webkit-font-smoothing:antialiased;
|
||||||
|
}
|
||||||
|
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
|
||||||
|
|
||||||
|
header.hero{padding:48px 0 28px;border-bottom:1px solid var(--line)}
|
||||||
|
.hero .wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
|
||||||
|
.brand{display:flex;align-items:center;gap:16px}
|
||||||
|
.brand .mark{
|
||||||
|
width:46px;height:46px;border-radius:12px;flex:none;
|
||||||
|
display:grid;place-items:center;
|
||||||
|
background:#fff;color:var(--ink);
|
||||||
|
border:1px solid var(--line-strong);box-shadow:var(--shadow);overflow:hidden;
|
||||||
|
}
|
||||||
|
.brand .mark .brand-logo{width:34px;height:34px;display:block}
|
||||||
|
.brand h1{
|
||||||
|
font-family:var(--display);font-weight:600;
|
||||||
|
font-size:30px;line-height:1.05;margin:0;letter-spacing:-.01em;
|
||||||
|
}
|
||||||
|
.brand .sub{color:var(--muted);font-size:14px;margin-top:2px}
|
||||||
|
|
||||||
|
.mono{font-family:var(--mono);font-size:13px}
|
||||||
|
|
||||||
|
.info-section{margin:48px 0}
|
||||||
|
.info-section h2{font-family:var(--display);font-size:22px;margin:0 0 8px}
|
||||||
|
.info-section .sub{color:var(--muted);font-size:15px;line-height:1.6;margin:0 0 28px;max-width:760px}
|
||||||
|
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
|
||||||
|
.info-block{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow)}
|
||||||
|
.info-block .ic{font-family:var(--mono);font-size:12px;color:var(--accent);letter-spacing:.1em;display:block;margin-bottom:10px}
|
||||||
|
.info-block h3{font-size:15px;margin:0 0 8px;letter-spacing:.01em}
|
||||||
|
.info-block p{font-size:14px;color:var(--muted);margin:0;line-height:1.6}
|
||||||
|
/* Blocks with more than one paragraph need breathing room between them */
|
||||||
|
.info-block p + p{margin-top:8px}
|
||||||
|
|
||||||
|
/* --- Added for the yearly-listing model (2026-07) ---
|
||||||
|
Listing lifecycle: a small horizontal timeline that encodes the real
|
||||||
|
sequence pay -> listed -> renewal window -> expiry. Spans both grid
|
||||||
|
columns so the four steps read left to right. */
|
||||||
|
.lifecycle{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
|
||||||
|
background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
|
||||||
|
padding:22px 24px;box-shadow:var(--shadow)}
|
||||||
|
.step{position:relative;padding-top:14px;border-top:3px solid var(--line-strong)}
|
||||||
|
.step:first-child{border-top-color:var(--accent)}
|
||||||
|
.step::before{
|
||||||
|
content:"";position:absolute;top:-7px;left:0;width:11px;height:11px;border-radius:50%;
|
||||||
|
background:var(--panel);border:3px solid var(--line-strong);
|
||||||
|
}
|
||||||
|
.step:first-child::before{border-color:var(--accent)}
|
||||||
|
.step h3{font-size:14px;margin:0 0 6px;letter-spacing:.01em}
|
||||||
|
.step p{font-size:13px;color:var(--muted);margin:0;line-height:1.55}
|
||||||
|
|
||||||
|
footer{border-top:1px solid var(--line);margin-top:48px;padding:28px 0;color:var(--muted);font-size:13px}
|
||||||
|
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
|
||||||
|
footer a{color:var(--accent);text-decoration:none}
|
||||||
|
|
||||||
|
@media (max-width:860px){
|
||||||
|
.info-grid{grid-template-columns:1fr}
|
||||||
|
.brand h1{font-size:24px}
|
||||||
|
/* On small screens the timeline stacks vertically like the other blocks */
|
||||||
|
.lifecycle{grid-template-columns:1fr}
|
||||||
|
.step{border-top:none;border-left:3px solid var(--line-strong);padding:0 0 4px 16px}
|
||||||
|
.step:first-child{border-left-color:var(--accent)}
|
||||||
|
.step::before{top:2px;left:-7px}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
|
||||||
|
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header class="hero">
|
||||||
|
<div class="wrap">
|
||||||
|
<div class="brand">
|
||||||
|
<div class="mark"><svg class="brand-logo" xmlns="http://www.w3.org/2000/svg" viewBox="-116.00 -110.00 2262.00 2262.00" fill="currentColor" role="img" aria-label="Bitcoin After Life logo">
|
||||||
|
<g transform="translate(0.000000,2072.000000) scale(0.100000,-0.100000)">
|
||||||
|
<path d="M12278 20443 c-84 -177 -102 -216 -175 -378 -204 -457 -370 -897
|
||||||
|
-471 -1255 -48 -168 -112 -437 -133 -557 -5 -29 -14 -79 -19 -110 -13 -74 -35
|
||||||
|
-246 -50 -388 -15 -139 -15 -617 -1 -738 32 -266 64 -444 111 -621 142 -538
|
||||||
|
391 -1000 724 -1344 430 -444 818 -601 1781 -721 211 -27 254 -32 325 -42 257
|
||||||
|
-35 414 -68 560 -117 161 -53 255 -116 411 -271 127 -127 209 -242 291 -406
|
||||||
|
203 -404 379 -882 497 -1350 59 -237 69 -284 111 -522 86 -494 120 -1121 85
|
||||||
|
-1583 -42 -559 -115 -952 -277 -1485 -135 -447 -343 -924 -588 -1350 -534
|
||||||
|
-927 -1278 -1709 -2180 -2292 -255 -164 -666 -386 -965 -521 -513 -230 -1203
|
||||||
|
-416 -1845 -497 -393 -49 -1085 -48 -1550 4 -87 10 -349 47 -385 55 -11 3 -49
|
||||||
|
10 -85 16 -97 17 -335 69 -420 92 -41 11 -97 25 -125 33 -280 73 -667 214
|
||||||
|
-991 360 -264 120 -387 186 -709 378 -772 461 -1542 1195 -2040 1942 -449 676
|
||||||
|
-742 1312 -954 2075 -59 215 -128 538 -151 718 -48 358 -60 475 -68 670 -9
|
||||||
|
199 -11 205 -67 200 -22 -2 -31 -9 -36 -28 -22 -80 -1 -836 30 -1075 57 -441
|
||||||
|
166 -902 309 -1315 64 -185 77 -218 130 -350 57 -142 237 -533 284 -619 465
|
||||||
|
-836 991 -1472 1733 -2096 423 -356 1121 -781 1645 -1002 448 -189 902 -335
|
||||||
|
1290 -414 30 -6 75 -15 100 -20 411 -87 986 -139 1523 -139 211 0 572 26 762
|
||||||
|
55 580 88 992 191 1485 372 1215 446 2304 1240 3095 2259 773 994 1256 2155
|
||||||
|
1414 3399 38 295 51 523 51 872 0 367 -22 684 -71 1001 -35 232 -85 484 -139
|
||||||
|
697 -50 197 -64 329 -56 499 22 431 161 834 372 1078 84 98 186 164 297 193
|
||||||
|
80 21 259 28 402 17 551 -45 591 -46 737 -33 217 19 373 61 527 143 179 94
|
||||||
|
296 184 451 344 159 165 269 318 373 521 154 302 233 573 278 958 17 141 17
|
||||||
|
643 0 790 -35 315 -92 651 -161 945 -48 207 -56 234 -66 237 -7 2 -37 -42 -69
|
||||||
|
-98 -70 -127 -118 -191 -214 -292 -128 -134 -287 -252 -476 -353 -206 -111
|
||||||
|
-371 -179 -790 -324 -602 -209 -831 -318 -1105 -523 -336 -251 -562 -642 -657
|
||||||
|
-1134 -14 -69 -17 -142 -17 -333 0 -234 9 -334 43 -520 5 -25 17 -94 27 -154
|
||||||
|
10 -59 23 -110 30 -113 10 -4 47 31 146 137 62 67 223 210 309 276 136 103
|
||||||
|
240 168 429 269 482 257 820 473 1152 737 88 70 162 128 165 128 25 0 -134
|
||||||
|
-153 -285 -273 -170 -136 -577 -398 -902 -582 -174 -99 -346 -209 -465 -299
|
||||||
|
-434 -327 -701 -703 -790 -1111 -23 -104 -23 -105 -32 -105 -5 0 -37 62 -72
|
||||||
|
138 -404 875 -960 1625 -1691 2277 -198 177 -711 687 -855 849 -277 313 -473
|
||||||
|
600 -614 897 -83 175 -81 211 6 71 364 -591 1009 -1283 1868 -2004 225 -188
|
||||||
|
424 -384 546 -538 152 -190 330 -452 420 -618 19 -35 40 -61 47 -60 27 6 215
|
||||||
|
466 297 728 104 331 138 510 157 822 15 261 3 458 -43 708 -24 129 -75 323
|
||||||
|
-108 415 -97 260 -142 352 -261 527 -292 433 -693 770 -1505 1263 -367 223
|
||||||
|
-501 306 -655 408 -480 319 -809 626 -1041 972 -133 197 -204 358 -291 658 -6
|
||||||
|
20 -15 37 -20 37 -5 0 -45 -75 -90 -167z"/>
|
||||||
|
<path d="M9065 18949 c-485 -27 -851 -72 -1295 -159 -164 -32 -200 -41 -400
|
||||||
|
-89 -110 -27 -170 -43 -395 -106 -103 -28 -436 -140 -600 -200 -961 -357
|
||||||
|
-1867 -883 -2670 -1549 -509 -423 -1078 -1018 -1453 -1518 -438 -585 -771
|
||||||
|
-1138 -1028 -1705 -651 -1437 -945 -3111 -814 -4638 17 -189 30 -324 41 -400
|
||||||
|
16 -123 40 -288 49 -345 5 -30 14 -82 19 -115 30 -193 172 -818 210 -925 5
|
||||||
|
-14 14 -43 19 -65 16 -59 150 -472 171 -530 11 -27 36 -95 57 -150 466 -1248
|
||||||
|
1246 -2444 2201 -3375 381 -372 670 -615 1128 -947 130 -94 429 -289 605 -395
|
||||||
|
676 -405 1362 -707 2135 -940 250 -75 647 -172 895 -219 387 -72 712 -115
|
||||||
|
1160 -151 207 -17 1118 -17 1295 0 349 33 547 57 775 93 924 148 1774 418
|
||||||
|
2625 835 1269 621 2400 1547 3266 2674 721 937 1258 2012 1565 3130 23 84 89
|
||||||
|
344 112 445 32 136 87 419 102 522 49 336 66 469 85 678 65 712 33 1528 -92
|
||||||
|
2275 -35 210 -39 230 -73 390 -65 307 -174 714 -250 930 -5 14 -27 79 -50 145
|
||||||
|
-82 239 -80 236 -137 214 -15 -6 -145 -51 -288 -100 -143 -49 -265 -95 -273
|
||||||
|
-102 -11 -11 -10 -21 2 -58 37 -111 103 -363 161 -614 27 -118 81 -400 99
|
||||||
|
-520 34 -223 43 -293 61 -470 35 -351 39 -442 40 -910 0 -459 -4 -563 -36
|
||||||
|
-855 -36 -340 -72 -558 -170 -1025 -119 -574 -428 -1418 -726 -1985 -503 -957
|
||||||
|
-1136 -1765 -1918 -2450 -710 -622 -1518 -1119 -2395 -1472 -240 -97 -668
|
||||||
|
-241 -885 -298 -151 -40 -300 -77 -400 -99 -55 -12 -118 -26 -140 -31 -22 -5
|
||||||
|
-69 -14 -105 -20 -36 -6 -85 -15 -110 -20 -78 -15 -270 -45 -385 -59 -871
|
||||||
|
-111 -1743 -81 -2635 89 -58 12 -123 25 -145 30 -22 5 -69 16 -105 24 -574
|
||||||
|
130 -1129 321 -1665 570 -55 26 -140 66 -190 89 -476 220 -1007 560 -1503 960
|
||||||
|
-426 343 -912 834 -1259 1270 -384 483 -710 999 -979 1552 -281 577 -472 1120
|
||||||
|
-619 1760 -9 39 -20 88 -25 110 -12 50 -39 184 -50 250 -30 172 -39 229 -50
|
||||||
|
305 -6 47 -15 114 -20 150 -86 621 -85 1395 1 2065 23 176 30 225 60 398 27
|
||||||
|
154 35 194 58 300 6 26 15 66 21 90 216 962 583 1840 1113 2662 341 529 676
|
||||||
|
946 1101 1371 731 731 1579 1325 2451 1719 164 74 208 93 450 192 293 120 723
|
||||||
|
258 1065 341 204 50 248 60 385 87 210 40 226 43 305 55 41 6 102 16 135 21
|
||||||
|
584 91 1350 114 1983 58 91 -8 136 -9 143 -2 6 6 15 41 19 79 10 75 25 189 40
|
||||||
|
299 26 194 32 257 23 266 -11 11 -198 41 -438 69 -422 51 -1053 72 -1460 49z"/>
|
||||||
|
<path d="M7765 12995 c-76 -31 -139 -96 -160 -168 -10 -34 -15 -94 -15 -188 0
|
||||||
|
-101 -3 -139 -13 -148 -9 -6 -84 -12 -203 -13 l-189 -3 0 -445 0 -445 195 -3
|
||||||
|
c136 -2 196 -6 201 -14 4 -7 8 -321 9 -698 0 -541 -2 -689 -12 -703 -11 -15
|
||||||
|
-37 -17 -203 -19 l-190 -3 0 -445 0 -445 190 -3 c165 -2 192 -4 203 -19 10
|
||||||
|
-14 12 -164 12 -703 -1 -377 -4 -691 -8 -697 -6 -9 -62 -13 -202 -15 l-195 -3
|
||||||
|
-3 -447 -2 -448 195 0 c194 0 196 0 204 -22 4 -13 9 -93 10 -178 2 -139 4
|
||||||
|
-160 25 -206 13 -28 39 -63 58 -77 67 -52 101 -57 357 -57 288 0 322 7 393 80
|
||||||
|
57 59 68 95 68 220 0 52 3 125 7 163 l6 67 128 0 127 0 4 -197 c3 -226 11
|
||||||
|
-255 81 -301 l40 -27 311 -3 311 -2 52 30 c36 21 61 45 80 77 27 47 28 53 33
|
||||||
|
233 l5 185 510 6 c516 6 541 8 719 49 503 114 963 516 1145 1000 77 206 111
|
||||||
|
385 111 589 -1 471 -225 925 -608 1235 -40 32 -72 62 -72 66 0 5 27 48 59 97
|
||||||
|
361 541 374 1222 33 1771 -228 366 -624 645 -1035 726 -154 31 -227 36 -530
|
||||||
|
36 -240 0 -317 3 -325 13 -6 7 -12 89 -14 199 l-3 186 -30 44 c-17 24 -51 54
|
||||||
|
-75 68 -45 25 -47 25 -328 28 -317 4 -353 -2 -410 -61 -50 -52 -56 -77 -62
|
||||||
|
-282 l-5 -190 -125 0 -125 0 -5 180 c-6 209 -18 249 -93 302 -70 50 -92 53
|
||||||
|
-346 53 -227 0 -238 -1 -296 -25z m2550 -1448 c88 -39 158 -140 193 -274 14
|
||||||
|
-58 17 -116 17 -378 -1 -334 -8 -409 -52 -533 -30 -86 -88 -156 -159 -192
|
||||||
|
l-49 -25 -880 0 -880 0 -3 704 c-2 557 0 706 10 713 7 4 407 7 888 5 818 -2
|
||||||
|
878 -3 915 -20z m291 -2341 c246 -114 416 -573 334 -901 -50 -200 -200 -414
|
||||||
|
-341 -486 -37 -19 -67 -19 -1066 -17 l-1028 3 -3 700 c-1 385 0 706 3 713 3 9
|
||||||
|
218 12 1027 12 l1023 0 51 -24z"/>
|
||||||
|
</g>
|
||||||
|
</svg></div>
|
||||||
|
<div>
|
||||||
|
<h1>Terms & Conditions</h1>
|
||||||
|
<div class="sub">Bitcoin After Life · Will Executor List</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="wrap">
|
||||||
|
|
||||||
|
<section class="info-section">
|
||||||
|
<h2>1. Contact & Support</h2>
|
||||||
|
<p class="sub">For URL changes, refunds, or any issues related to your Will Executor listing, contact us at <a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>.</p>
|
||||||
|
<div class="info-grid">
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">VERIFICATION</span>
|
||||||
|
<h3>Proof of Ownership</h3>
|
||||||
|
<p>Any request to modify a listing (including URL changes) requires proof that you control both the domain and the server. We reserve the right to request a message signed with the private key of the UTXO used for payment before processing any changes or refunds.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">POLICY</span>
|
||||||
|
<h3>No Refunds After Payment</h3>
|
||||||
|
<p>Once a payment is confirmed on the blockchain and the server is listed, no refunds will be issued. Always verify that your server URL is correct and reachable before submitting payment.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="info-section">
|
||||||
|
<h2>2. Listing & Renewal</h2>
|
||||||
|
<p class="sub">A listing works like a hosting plan: a flat yearly fee buys your server one year of presence in the list. Your paid amount accumulates and never decays — it is preserved across renewals and also determines your position in the list (see Section 3). Payments are non-refundable (see Section 1) — double-check your server URL before paying.</p>
|
||||||
|
<div class="info-grid">
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">01 · PAYMENT</span>
|
||||||
|
<h3>One Year at a Time</h3>
|
||||||
|
<p>The listing fee is <span id="thr-min">50,000</span> sats for 365 days, paid one year at a time. The exact amount in satoshi is shown in the payment request. Your server appears in the list once the payment reaches 3 confirmations on the blockchain (typically around 30 minutes), and your listing period starts at that moment.</p>
|
||||||
|
<p>Payments below the yearly fee will be considered donations and do not add listing time.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">02 · RENEWAL</span>
|
||||||
|
<h3>Renew From 6 Months Before Expiry</h3>
|
||||||
|
<p>You can renew for one additional year at any time starting 6 months before your expiry date, by paying the yearly fee for the exact same server URL as published in the list. The new year is added on top of your remaining time — renewing early never costs you days.</p>
|
||||||
|
<p>If the listing is not renewed, the server is removed from the list at expiry.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">03 · CAPACITY</span>
|
||||||
|
<h3>No Cap on Listings</h3>
|
||||||
|
<p>There is no fixed number of slots: every server with remaining listing time is shown. Paying buys presence in the list; the total amount paid also affects your position in it (see Section 3).</p>
|
||||||
|
<p>Removal from the list does not affect users who already have your server in their plugin: the plugin's server list is add-only. Being listed matters for reaching new users.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">04 · TRANSITION</span>
|
||||||
|
<h3>Deposits Made Under the Previous Rules</h3>
|
||||||
|
<p>Balances deposited under the previous, balance-based rules are converted into listing time pro-rata at the same yearly rate (e.g. a 5,000-sat balance becomes 36.5 days of listing). Countdowns for converted balances start on 17 July 2026. To stay listed beyond the converted time, renew as described above.</p>
|
||||||
|
</div>
|
||||||
|
<div class="lifecycle">
|
||||||
|
<div class="step">
|
||||||
|
<h3>Pay</h3>
|
||||||
|
<p>Send the yearly fee shown in the payment request.</p>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<h3>Listed</h3>
|
||||||
|
<p>After 3 confirmations your server appears; 365 days start.</p>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<h3>Renewal window</h3>
|
||||||
|
<p>From 6 months before expiry you can add another year.</p>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<h3>Expiry</h3>
|
||||||
|
<p>If not renewed, the server is removed from the list.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="info-section">
|
||||||
|
<h2>3. List Order & Server Page</h2>
|
||||||
|
<p class="sub">The list is ordered by four criteria: first by total excess donated (higher first), then by total amount paid in balance (higher first), then by the base fee charged (lower first), and finally by WeTime points (higher first) as a tie-breaker.</p>
|
||||||
|
<div class="info-grid">
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">ORDER</span>
|
||||||
|
<h3>How Position Is Determined</h3>
|
||||||
|
<p>Servers are sorted by four criteria, in order: first by the total excess donated (higher first), then by the total paid amount (higher first), then by the base fee they charge (lower first), and finally by WeTime points (higher first) to break any remaining ties.</p>
|
||||||
|
<p>Because excess donated comes first and never decays, over-paying or tipping more — on top of any payment — directly and permanently moves a server up the list. Paying more than the exact yearly fee is the fastest way to improve position.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">POINTS</span>
|
||||||
|
<h3>WeTime Points</h3>
|
||||||
|
<p>Points are earned by participating in WeTime rounds. Each executor periodically submits its block hash; the faster the response within the same block, the more points awarded. The win count tracks how many times an executor was the fastest responder.</p>
|
||||||
|
<p>Points are not transferable, not redeemable and have no monetary value: within this list they act only as a tie-breaker. Points measure presence and reactivity — they do not certify how a server will handle inheritance transactions.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">DETAILS</span>
|
||||||
|
<h3>Server Detail Page</h3>
|
||||||
|
<p>Clicking a server in the list opens its detail page, showing the server URL, the listing expiry date, and its WeTime activity. The expiry date is shown only there, not in the main list. Since the price per day is fixed and public, the expiry date necessarily reflects how much a server has paid: this is intentional transparency.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="info-section">
|
||||||
|
<h2>4. Changes to These Terms</h2>
|
||||||
|
<p class="sub">We reserve the right to update these terms at any time. Material changes will be announced on this page with their effective date.</p>
|
||||||
|
<div class="info-grid">
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">REVIEW</span>
|
||||||
|
<h3>Annual Review</h3>
|
||||||
|
<p>Prices and rules are expected to be reviewed once a year, around 17 July, reflecting the growth of the protocol and market demand. Listing time already purchased remains valid under the conditions in force when it was bought; updated rules apply to new payments and renewals.</p>
|
||||||
|
</div>
|
||||||
|
<div class="info-block">
|
||||||
|
<span class="ic">SCOPE</span>
|
||||||
|
<h3>A Convenience Service</h3>
|
||||||
|
<p>This list is a convenience service operated at our discretion. The BAL protocol does not depend on it: users can add any Will Executor manually in the plugin, import custom lists, or use alternative list services. Anyone is free to run one.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="wrap">
|
||||||
|
<span>Bitcoin After Life — Will Executor List</span>
|
||||||
|
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(async function() {
|
||||||
|
// Unchanged from the previous version: fetches the current yearly fee
|
||||||
|
// from the server so the number on this page always matches reality.
|
||||||
|
// The #thr-min span is now inside Section 2 (01 · PAYMENT).
|
||||||
|
const chain = location.hash ? location.hash.slice(1) : 'bitcoin';
|
||||||
|
try {
|
||||||
|
const r = await fetch('/min_deposit/' + chain);
|
||||||
|
const val = parseInt(await r.text(), 10);
|
||||||
|
if (!isNaN(val)) {
|
||||||
|
document.getElementById('thr-min').textContent = Number(val).toLocaleString('en-US');
|
||||||
|
}
|
||||||
|
} catch (err) {}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
104
weinfo.html
104
weinfo.html
@@ -1,8 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-<|begin▁of▁sentence|>8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-w, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Bal Server List</title>
|
<title>Bal Server List</title>
|
||||||
<link rel="icon" href="Logo_nero.ico" type="image/x-icon">
|
<link rel="icon" href="Logo_nero.ico" type="image/x-icon">
|
||||||
<script src="/qrcode.min.js"></script>
|
<script src="/qrcode.min.js"></script>
|
||||||
@@ -11,22 +11,22 @@
|
|||||||
</head>
|
</head>
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
th, td {
|
th, td {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
}
|
}
|
||||||
tr:nth-child(even) {
|
tr:nth-child(even) {
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
span{
|
span {
|
||||||
margin-left:10px;
|
margin-left:10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
<div><span>Version:</span><span id="weversion"> </span></div>
|
<div><span>Version:</span><span id="weversion"> </span></div>
|
||||||
<div><span>Fees:</span><span id="wefees"> </span></div>
|
<div><span>Fees:</span><span id="wefees"> </span></div>
|
||||||
<div><span>Tld:</span><span id="wetld"> </span></div>
|
<div><span>Tld:</span><span id="wetld"> </span></div>
|
||||||
|
<div><span>Last Update:</span><span id="weupdate"> </span></div>
|
||||||
</div>
|
</div>
|
||||||
<div style="float:left;border:1;margin-right:50px;">
|
<div style="float:left;border:1;margin-right:50px;">
|
||||||
<div><span>Height:</span><span id="weheight"> </span></div>
|
<div><span>Height:</span><span id="weheight"> </span></div>
|
||||||
@@ -49,8 +50,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="border:1;margin-right:50px;">
|
<div style="border:1;margin-right:50px;">
|
||||||
<div><span>Balance:</span><span id="webalance"> </span></div>
|
<div><span>Balance:</span><span id="webalance"> </span></div>
|
||||||
|
<div><span>Donations:</span><span id="wedonations"> </span></div>
|
||||||
<div><span>Status:</span><span id="westatus"> </span></div>
|
<div><span>Status:</span><span id="westatus"> </span></div>
|
||||||
<div><span>Last Update:</span><span id="weupdate"> </span></div>
|
<div><span>Expiry:</span><span id="weexpiry"> </span></div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<table id="wetimes">
|
<table id="wetimes">
|
||||||
@@ -81,38 +83,58 @@
|
|||||||
const chain = path[1];
|
const chain = path[1];
|
||||||
const cdate=new Date().toISOString().replace(/[-:T.Z]/g, '').slice(0, 14);
|
const cdate=new Date().toISOString().replace(/[-:T.Z]/g, '').slice(0, 14);
|
||||||
fetchDataAndPopulateTable('/weinfodata/'+chain+"/"+we_id, new URLSearchParams(),(data) => {
|
fetchDataAndPopulateTable('/weinfodata/'+chain+"/"+we_id, new URLSearchParams(),(data) => {
|
||||||
document.getElementById('wename').innerHTML = DOMPurify.sanitize(data.url);
|
document.getElementById('wename').innerHTML = DOMPurify.sanitize(data.url||'—');
|
||||||
document.getElementById('wechain').innerHTML = DOMPurify.sanitize(data.chain);
|
document.getElementById('wechain').innerHTML = DOMPurify.sanitize(data.chain||'—');
|
||||||
document.getElementById('weinfo').innerHTML = DOMPurify.sanitize(data.info);
|
document.getElementById('weinfo').innerHTML = DOMPurify.sanitize(data.info||'—');
|
||||||
document.getElementById('wefees').innerHTML = data.base_fee;
|
document.getElementById('wefees').innerHTML = data.base_fee != null ? data.base_fee : '—';
|
||||||
document.getElementById('weheight').innerHTML = data.last_block;
|
document.getElementById('weheight').innerHTML = data.last_block != null ? data.last_block : '—';
|
||||||
document.getElementById('wepoints').innerHTML = data.points;
|
document.getElementById('wepoints').innerHTML = data.points != null ? data.points : '—';
|
||||||
document.getElementById('wewin').innerHTML = data.count_win;
|
document.getElementById('wewin').innerHTML = data.count_win != null ? data.count_win : '—';
|
||||||
document.getElementById('wetld').innerHTML = DOMPurify.sanitize(data.tld);
|
document.getElementById('wetld').innerHTML = DOMPurify.sanitize(data.tld||'—');
|
||||||
document.getElementById('webalance').innerHTML = data.balance;
|
const bal = data.balance != null ? data.balance : null;
|
||||||
document.getElementById('weversion').innerHTML = data.version;;
|
const unc = data.unconfirmed_balance != null ? data.unconfirmed_balance : null;
|
||||||
document.getElementById('westatus').innerHTML = DOMPurify.sanitize(data.status);
|
document.getElementById('webalance').innerHTML = bal ? (unc ? bal + ' (' + unc + ')' : bal) : '—';
|
||||||
document.getElementById('weupdate').innerHTML = data.last_update;
|
document.getElementById('wedonations').innerHTML = data.donation != null ? data.donation : '—';
|
||||||
|
document.getElementById('weversion').innerHTML = data.version||'—';
|
||||||
|
document.getElementById('weexpiry').innerHTML = '<b>' + (data.expiry_date || '—') + '</b>';
|
||||||
|
document.getElementById('weupdate').innerHTML = data.last_update || '—';
|
||||||
|
const statusMap = {
|
||||||
|
'OK': 'Health check passed',
|
||||||
|
'TIMEOUT': 'Connection timeout',
|
||||||
|
'CONNECTION': 'Connection error',
|
||||||
|
'STATUS': 'HTTP error',
|
||||||
|
'WRONG REPLY': 'Invalid JSON response',
|
||||||
|
'REQUEST': 'Request error',
|
||||||
|
'BODY': 'Body read error',
|
||||||
|
'DECODE': 'Decode error',
|
||||||
|
'KO': 'Generic error'
|
||||||
|
};
|
||||||
|
const st = (data.status||'').split(':')[0];
|
||||||
|
document.getElementById('westatus').innerHTML = statusMap[st] || '—';
|
||||||
|
|
||||||
const tableBody = document.querySelector('#wetimes tbody');
|
const tableBody = document.querySelector('#wetimes tbody');
|
||||||
tableBody.innerHTML ='';
|
tableBody.innerHTML ='';
|
||||||
Object.entries(data.times).forEach(([key,wetime]) => {
|
if (data.times && data.times.length) {
|
||||||
const row = document.createElement('tr');
|
Object.entries(data.times).forEach(([key,wetime]) => {
|
||||||
const d = new Date(wetime.time/1000);
|
const row = document.createElement('tr');
|
||||||
row.innerHTML = `
|
const d = new Date(wetime.time/1000);
|
||||||
<td>${wetime.blockHeight}</td>
|
row.innerHTML = `
|
||||||
<td>${DOMPurify.sanitize(wetime.blockHash)}</td>
|
<td>${wetime.blockHeight != null ? wetime.blockHeight : '—'}</td>
|
||||||
<td>${d}</td>
|
<td>${DOMPurify.sanitize(wetime.blockHash||'—')}</td>
|
||||||
<td>${wetime.diff/1000000} s</td>
|
<td>${d}</td>
|
||||||
<td>${wetime.position+1}</td>
|
<td>${wetime.diff != null ? wetime.diff/1000000 + ' s' : '—'}</td>
|
||||||
<td>${wetime.participants}</td>
|
<td>${wetime.position != null ? wetime.position+1 : '—'}</td>
|
||||||
<td>${wetime.points}</td>
|
<td>${wetime.participants != null ? wetime.participants : '—'}</td>
|
||||||
`;
|
<td>${wetime.points != null ? wetime.points : '—'}</td>
|
||||||
tableBody.appendChild(row);
|
`;
|
||||||
})
|
tableBody.appendChild(row);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
tableBody.innerHTML = '<tr><td colspan="7" style="padding:20px;text-align:center;color:#999">No rounds yet.</td></tr>';
|
||||||
|
}
|
||||||
var prev=0;
|
var prev=0;
|
||||||
var next=0;
|
var next=0;
|
||||||
if (data.times.length > 0){
|
if (data.times && data.times.length > 0){
|
||||||
prev = data.times[0].blockHeight+data.times.length;
|
prev = data.times[0].blockHeight+data.times.length;
|
||||||
next = data.times[data.times.length-1].blockHeight;
|
next = data.times[data.times.length-1].blockHeight;
|
||||||
if (prev < 0 ){
|
if (prev < 0 ){
|
||||||
@@ -126,8 +148,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
getWeInfo();
|
getWeInfo();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
Reference in New Issue
Block a user