Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ab7b458a4 |
@@ -1,99 +0,0 @@
|
||||
# Mobile readability fixes — `index.html`
|
||||
|
||||
Base: commit `3dcd822` (`bitcoinafterlife/bal-welist-website`, `main`).
|
||||
|
||||
**Scope:** header, filter bar and server list only. CSS-only — the JavaScript is
|
||||
byte-for-byte unchanged. Desktop rendering is unaffected: every change sits
|
||||
inside a `@media (max-width: ...)` block, except one line on `body` (item 7).
|
||||
|
||||
The "Add your Will Executor" panel, the invoice and the QR code were left
|
||||
untouched on purpose, since payments are expected to be made from a desktop
|
||||
browser.
|
||||
|
||||
---
|
||||
|
||||
## 1. Chain selector overflowed the viewport
|
||||
|
||||
**Before:** `.seg` was an `inline-flex` row of four buttons (Bitcoin, Testnet,
|
||||
Testnet4, Regtest) with no wrapping — roughly 340px wide. On a 360–390px phone,
|
||||
minus page padding, it pushed past the right edge and made the whole page scroll
|
||||
horizontally.
|
||||
|
||||
**After:** below 600px the selector becomes a full-width 2×2 grid. Inner
|
||||
dividers are recalculated with `:nth-child` so the borders stay correct in the
|
||||
new arrangement.
|
||||
|
||||
## 2. Touch targets too small
|
||||
|
||||
Chain buttons were ~33px tall. Raised to `min-height: 44px` (the standard
|
||||
minimum for a finger), applied to the chain buttons, the Tor toggle row and the
|
||||
JSON link.
|
||||
|
||||
## 3. Nested scrolling in the server list
|
||||
|
||||
**Before:** `.mobile-list` carried `max-height: 350px; overflow: auto`, so on a
|
||||
phone the list was a small window scrolling inside a page that also scrolls —
|
||||
the two gestures fight each other.
|
||||
|
||||
**After:** the height cap is removed below 860px; the list flows with the page.
|
||||
The desktop table (`.table-card`) keeps its 350px cap unchanged.
|
||||
|
||||
## 4. Long URLs broke out of the cards
|
||||
|
||||
Server URLs contain no spaces, so the browser cannot break them and they
|
||||
overflowed the card. Added `overflow-wrap: anywhere`, plus `min-width: 0` on the
|
||||
flex parent — without it a flex child defaults to `min-width: auto` and refuses
|
||||
to shrink below its content width.
|
||||
|
||||
The JS truncation at 40 characters is unchanged.
|
||||
|
||||
## 5. Uneven card grid
|
||||
|
||||
The five fields (Score, Wins, Fee, Version, Height) sat in two fixed columns,
|
||||
leaving Height alone on a half-empty row. Switched to
|
||||
`repeat(auto-fit, minmax(84px, 1fr))`, which fits as many columns as the width
|
||||
allows.
|
||||
|
||||
## 6. iOS auto-zoom on the search field
|
||||
|
||||
iOS Safari zooms the entire page when a focused input has a font size below
|
||||
16px, and the user then has to pinch back out. The filter field is raised to
|
||||
16px below 600px and made full width.
|
||||
|
||||
## 7. Text inflation in landscape
|
||||
|
||||
Added `-webkit-text-size-adjust: 100%` to `body`. iOS enlarges font sizes when a
|
||||
phone is rotated to landscape, which distorted the header and the cards. This is
|
||||
the only change outside a media query; it has no effect on desktop browsers.
|
||||
|
||||
## 8. Tighter spacing below 480px
|
||||
|
||||
New breakpoint reducing padding and type size where space is scarce:
|
||||
|
||||
| Element | Before | After |
|
||||
| --- | --- | --- |
|
||||
| `.wrap` side padding | 20px | 14px (+12px usable width per row) |
|
||||
| `header.hero` padding | 48px 0 28px | 28px 0 20px |
|
||||
| `.brand h1` | 24px | 20px |
|
||||
| Logo mark | 46px | 40px |
|
||||
| `.stat .n` | 26px | 22px |
|
||||
| `.intro-card` padding | 28px 32px | 20px 18px |
|
||||
| `.info-block` padding | 22px 24px | 18px 16px |
|
||||
| `.srv` padding | 16px | 14px |
|
||||
| Footer | space-between, wrapping | single column |
|
||||
|
||||
---
|
||||
|
||||
## Verification performed
|
||||
|
||||
- CSS braces balanced (148 open / 148 close).
|
||||
- All 32 element IDs referenced by the JavaScript still present in the markup.
|
||||
- Tag balance checked for `div`, `section`, `header`, `footer`, `main`, `table`,
|
||||
`style`, `script`.
|
||||
- Media queries present in order: 860px, 600px, 480px, `prefers-reduced-motion`.
|
||||
|
||||
## Not yet verified
|
||||
|
||||
Rendering was not tested on a physical device. Worth a quick check on one iPhone
|
||||
and one Android phone before merging, in particular the 2×2 chain selector at
|
||||
320px width (iPhone SE, the narrowest screen still in common use).
|
||||
153
README.md
153
README.md
@@ -1,153 +1,2 @@
|
||||
# Server Status: Complete Explanation and Reference Guide
|
||||
welist html
|
||||
|
||||
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.
|
||||
330
index.html
330
index.html
@@ -40,10 +40,6 @@ body{
|
||||
font-family:var(--body);
|
||||
line-height:1.5;
|
||||
-webkit-font-smoothing:antialiased;
|
||||
/* WHY: iOS Safari inflates font sizes when a phone is rotated to landscape,
|
||||
which breaks the header and the server cards. Locking the adjustment to
|
||||
100% keeps the layout identical in both orientations. No effect on desktop. */
|
||||
-webkit-text-size-adjust:100%;
|
||||
}
|
||||
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
|
||||
|
||||
@@ -121,8 +117,7 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
||||
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
|
||||
.score{font-family:var(--display);font-weight:600;font-size:15px}
|
||||
|
||||
.add-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:40px 0;align-items:stretch}
|
||||
.add-grid>.panel{display:flex;flex-direction:column}
|
||||
.add-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:40px 0;align-items:start}
|
||||
.panel{
|
||||
background:var(--panel);border:1px solid var(--line);
|
||||
border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);
|
||||
@@ -144,17 +139,6 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
||||
.btn:disabled{opacity:.45;cursor:not-allowed;filter:none}
|
||||
.note{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.55}
|
||||
.note strong{color:var(--ink)}
|
||||
.freshness-note{
|
||||
font-size:12px;line-height:1.4;color:var(--muted);
|
||||
background:var(--accent-soft);border:1px solid var(--line);border-radius:8px;
|
||||
padding:7px 12px;margin:0 0 12px;
|
||||
}
|
||||
.freshness-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.show{display:block}
|
||||
@@ -162,18 +146,8 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
||||
.invoice .row:last-child{border-bottom:0}
|
||||
.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 a{color:var(--accent);text-decoration:none}
|
||||
.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}
|
||||
#qrcode{margin:18px auto 4px;width:160px;height:160px}
|
||||
#qrcode img{width:160px;height:160px}
|
||||
.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}
|
||||
.terms-box{display:none;margin:16px 0;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
|
||||
@@ -192,9 +166,6 @@ tbody tr:hover{background:color-mix(in srgb,var(--accent-soft) 50%,transparent)}
|
||||
.intro-card h2{font-family:var(--display);font-size:24px;margin:0 0 10px;letter-spacing:-.01em}
|
||||
.intro-card p{margin:0;color:var(--muted);font-size:15px;line-height:1.65;max-width:820px}
|
||||
|
||||
.fee-disclaimer{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.5;font-style:italic}
|
||||
.fee-disclaimer a{color:var(--accent)}
|
||||
|
||||
.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}
|
||||
@@ -211,11 +182,7 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
.mobile-list{display:none}
|
||||
@media (max-width:860px){
|
||||
.table-card{display:none}
|
||||
/* WHY: the previous "max-height:350px;overflow:auto" turned the server list
|
||||
into a small scrollable window nested inside the page. On a touch screen
|
||||
that inner scroll competes with the normal page scroll and makes the list
|
||||
hard to read. On mobile the list now flows naturally with the page. */
|
||||
.mobile-list{display:grid;gap:12px}
|
||||
.mobile-list{display:grid;gap:12px;max-height:350px;overflow:auto;padding-right:2px}
|
||||
.add-grid{grid-template-columns:1fr}
|
||||
.info-grid{grid-template-columns:1fr}
|
||||
.hero-stats{gap:20px}
|
||||
@@ -223,82 +190,9 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
.srv{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
|
||||
.srv .top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}
|
||||
.srv .rk{font-family:var(--display);font-weight:600;color:var(--rank);font-size:18px}
|
||||
/* WHY: server URLs have no spaces, so a long URL cannot break by itself and
|
||||
would overflow the card. "anywhere" lets it wrap at any character.
|
||||
"min-width:0" is required because a flex child defaults to min-width:auto,
|
||||
which prevents it from shrinking below its content width. */
|
||||
.srv .top>div{min-width:0}
|
||||
.srv .top a{display:inline-block;max-width:100%;overflow-wrap:anywhere}
|
||||
/* WHY: with two fixed columns the fifth field (Height) was left alone on a
|
||||
half-empty row. auto-fit fills the available width with as many columns as
|
||||
fit, so the five fields always line up tidily. */
|
||||
.srv .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:10px;font-size:13px}
|
||||
.srv .grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px}
|
||||
.srv .grid div span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
|
||||
.srv .grid div b{font-family:var(--mono);font-weight:600;overflow-wrap:anywhere}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
Phone layout (<=600px).
|
||||
Scope: header, filter bar and server list only. The "Add your Will Executor"
|
||||
panel, the invoice and the QR code are intentionally left untouched, because
|
||||
payments are expected to be made from a desktop browser.
|
||||
--------------------------------------------------------------------------- */
|
||||
@media (max-width:600px){
|
||||
.controls{gap:10px}
|
||||
|
||||
/* WHY: the four chain buttons form a single non-wrapping row about 340px wide.
|
||||
Inside a 360-390px phone screen (minus page padding) it overflowed the
|
||||
viewport and produced horizontal scrolling. A 2x2 grid across the full
|
||||
width removes the overflow. min-height:44px matches the recommended
|
||||
minimum touch target size. */
|
||||
.seg{display:grid;grid-template-columns:1fr 1fr;width:100%;border-radius:8px}
|
||||
.seg button{font-size:14px;min-height:44px;padding:8px 10px;border-bottom:1px solid var(--line)}
|
||||
.seg button:nth-child(2n){border-right:0} /* right column: no inner divider */
|
||||
.seg button:nth-child(n+3){border-bottom:0} /* last row: no bottom divider */
|
||||
|
||||
/* Give the toggle and the JSON link a full-size touch area. */
|
||||
.field{min-height:44px}
|
||||
.btn-ghost{min-height:44px}
|
||||
|
||||
/* WHY: the search field takes the full width so it is comfortable to type in,
|
||||
and the font is raised to 16px. Below 16px, iOS Safari automatically zooms
|
||||
the whole page when the field receives focus, and the user then has to
|
||||
pinch back out. 16px disables that behaviour. */
|
||||
.search{flex:1 1 100%}
|
||||
.search input{font-size:16px}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
Narrow phone layout (<=480px): tighter spacing to recover horizontal space.
|
||||
--------------------------------------------------------------------------- */
|
||||
@media (max-width:480px){
|
||||
/* Recovers 12px of usable width on every row of the page. */
|
||||
.wrap{padding:0 14px}
|
||||
|
||||
header.hero{padding:28px 0 20px}
|
||||
.hero .wrap{gap:16px}
|
||||
.brand{gap:12px}
|
||||
.brand .mark{width:40px;height:40px;border-radius:10px}
|
||||
.brand .mark .brand-logo{width:28px;height:28px}
|
||||
.brand h1{font-size:20px}
|
||||
.brand .sub{font-size:13px}
|
||||
.stat .n{font-size:22px}
|
||||
|
||||
.controls{padding:16px 0 12px}
|
||||
|
||||
.srv{padding:14px}
|
||||
|
||||
.intro-card{padding:20px 18px;margin:22px 0 8px}
|
||||
.intro-card h2{font-size:20px}
|
||||
.intro-card p{font-size:14px}
|
||||
|
||||
.info-section{margin:32px 0}
|
||||
.info-block{padding:18px 16px}
|
||||
|
||||
/* WHY: the four footer items were spread with space-between and wrapped into
|
||||
an uneven, hard-to-read block. A single column reads cleanly on a phone. */
|
||||
footer{margin-top:32px;padding:22px 0}
|
||||
footer .wrap{flex-direction:column;gap:8px}
|
||||
.srv .grid div b{font-family:var(--mono);font-weight:600}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
|
||||
@@ -313,12 +207,13 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
<div class="mark"><svg class="brand-logo" viewBox="0 0 1036 1036" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Bitcoin After Life logo"><g transform="translate(0.000000,1036.000000) scale(0.100000,-0.100000)" fill="currentColor" stroke="none"><path d="M6130 10203 c-153 -318 -283 -665 -344 -916 -61 -250 -71 -335 -71 -602 1 -223 3 -249 28 -370 52 -244 140 -460 260 -633 72 -106 225 -257 320 -316 179 -111 335 -154 777 -211 232 -30 367 -61 442 -102 76 -41 195 -164 248 -257 170 -302 311 -774 362 -1211 19 -167 16 -591 -6 -745 -68 -484 -201 -871 -436 -1270 -541 -917 -1492 -1525 -2549 -1630 -132 -13 -453 -13 -596 0 -268 24 -530 77 -757 151 -1063 350 -1871 1192 -2187 2280 -63 217 -111 495 -127 742 -7 104 -7 107 -30 107 l-24 0 0 -167 c0 -286 27 -508 95 -773 148 -587 427 -1083 854 -1523 231 -237 423 -391 703 -563 685 -420 1543 -589 2343 -462 1346 213 2458 1211 2814 2524 89 329 116 543 115 919 0 349 -23 544 -100 847 -68 273 10 632 176 799 91 92 165 104 491 77 320 -26 499 36 699 242 171 175 285 422 320 690 15 116 12 401 -6 535 -13 100 -32 200 -91 478 -3 15 -8 27 -12 27 -3 0 -21 -30 -40 -66 -20 -39 -63 -96 -105 -139 -127 -130 -287 -216 -616 -330 -297 -104 -420 -161 -551 -256 -159 -117 -268 -285 -325 -504 -36 -135 -37 -312 -4 -500 12 -71 24 -132 26 -134 2 -2 41 33 87 78 115 115 199 177 369 270 267 146 442 260 590 384 38 32 72 57 74 54 7 -6 -107 -108 -193 -173 -88 -67 -259 -175 -402 -256 -58 -34 -146 -88 -196 -122 -107 -73 -276 -237 -332 -323 -50 -76 -100 -193 -116 -274 l-12 -60 -87 173 c-194 389 -411 680 -731 980 -375 353 -563 553 -677 723 -54 79 -170 297 -170 318 0 7 21 -22 46 -63 179 -288 481 -616 885 -962 265 -227 363 -338 496 -560 32 -54 60 -97 63 -98 9 0 100 229 141 352 99 302 114 589 44 869 -105 419 -325 659 -955 1039 -333 201 -500 322 -642 465 -148 150 -254 318 -297 475 -11 40 -22 75 -25 77 -2 2 -27 -44 -56 -104z"/><path d="M4436 9470 c-1069 -83 -2060 -527 -2825 -1265 -567 -548 -975 -1198 -1195 -1909 -248 -796 -290 -1575 -130 -2365 213 -1049 795 -2006 1636 -2688 727 -590 1604 -940 2558 -1023 189 -16 648 -14 825 5 601 63 1114 212 1645 481 834 421 1518 1083 1967 1904 296 540 464 1079 540 1725 23 203 23 683 -1 908 -39 374 -122 744 -237 1062 l-31 84 -151 -53 c-141 -49 -152 -54 -151 -77 1 -13 20 -94 42 -179 303 -1165 101 -2402 -553 -3395 -410 -622 -943 -1098 -1600 -1431 -469 -237 -913 -369 -1450 -430 -202 -24 -622 -24 -830 -1 -739 82 -1409 331 -1990 741 -293 206 -640 542 -869 840 -474 616 -756 1323 -843 2111 -20 185 -22 593 -4 785 112 1186 708 2250 1662 2965 619 465 1347 745 2139 826 127 13 546 18 745 9 l110 -5 21 160 c12 88 21 161 20 162 -4 4 -149 25 -275 39 -161 18 -620 26 -775 14z"/><path d="M3870 6492 c-52 -26 -73 -71 -78 -169 l-5 -83 -98 0 -99 0 0 -225 0 -225 100 0 100 0 0 -355 0 -355 -100 0 -100 0 0 -230 0 -230 100 0 100 0 0 -355 0 -355 -100 0 -100 0 0 -225 0 -225 100 0 100 0 0 -80 c0 -97 17 -142 62 -170 29 -17 50 -20 169 -20 125 0 139 2 170 23 43 29 58 71 58 170 l1 77 64 0 64 0 4 -111 c3 -107 4 -112 31 -135 27 -23 34 -24 182 -24 221 0 235 10 243 172 l5 98 261 0 c227 0 272 3 345 20 264 64 482 254 576 505 119 313 36 650 -216 878 l-72 64 33 47 c43 63 94 176 116 256 25 91 25 299 0 395 -59 230 -220 428 -431 530 -141 69 -182 77 -412 82 l-203 5 0 77 c0 104 -14 147 -53 171 -28 18 -51 20 -185 20 l-154 0 -34 -34 -34 -34 0 -101 0 -101 -65 0 -65 0 0 85 c0 162 -28 185 -222 185 -97 0 -130 -4 -158 -18z m1307 -732 c74 -45 103 -184 85 -416 -12 -151 -31 -208 -85 -248 -28 -21 -39 -21 -478 -24 l-449 -3 0 356 0 355 448 0 c426 0 448 -1 479 -20z m150 -1172 c46 -30 93 -97 125 -177 18 -45 22 -77 22 -161 1 -98 -1 -110 -30 -171 -35 -73 -92 -142 -135 -165 -23 -12 -115 -14 -544 -14 l-515 0 0 360 0 360 518 -3 518 -2 41 -27z"/></g></svg></div>
|
||||
<div>
|
||||
<h1>Will Executor — Server List</h1>
|
||||
<div class="sub"><a href="https://bitcoin-after.life" target="_blank" rel="noopener">Bitcoin After Life</a> · Will-executor node leaderboard</div>
|
||||
<div class="sub">Bitcoin After Life · Will-executor node leaderboard</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-stats">
|
||||
<div class="stat"><div class="n" id="s-online">0</div><div class="l">Online</div></div>
|
||||
<div class="stat"><div class="n" id="s-total">0</div><div class="l">Servers</div></div>
|
||||
<div class="stat"><div class="n" id="s-block">—</div><div class="l">Block</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -348,19 +243,16 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
<a class="btn-ghost" id="download" href="#" download="willexecutors.json">↓ JSON</a>
|
||||
</div>
|
||||
|
||||
<p class="freshness-note">
|
||||
<strong>Fee/description/version</strong> refresh about once a day (timing varies). <strong>Deposits</strong> are credited instantly after 3 confirmations (~30 min).
|
||||
</p>
|
||||
|
||||
<div class="table-card">
|
||||
<table id="tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="num">#</th>
|
||||
<th>URL</th>
|
||||
<th>Info*</th>
|
||||
<th class="num">Fee*</th>
|
||||
<th>Version*</th>
|
||||
<th>Info</th>
|
||||
<th class="num">Fee</th>
|
||||
<th>Version</th>
|
||||
<th class="num">Balance</th>
|
||||
<th class="num">Height</th>
|
||||
<th class="num">Wins</th>
|
||||
<th class="num">Score</th>
|
||||
@@ -372,8 +264,6 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
|
||||
<div class="mobile-list" id="mlist"></div>
|
||||
|
||||
<p class="fee-disclaimer">* Info, Fee and Version data may not reflect actual values or may be outdated. Refer to the <a href="https://bitcoin-after.life" target="_blank" rel="noopener">Bitcoin After Life plugin</a> for up-to-date information.</p>
|
||||
|
||||
<section class="intro-card">
|
||||
<h2>Will Executor Server List</h2>
|
||||
<p>This page displays all Will Executor servers that manage the inheritance processing for the Bitcoin After Life plugin on Electrum. Will Executors operate in a competitive environment, racing to broadcast inheritance transactions to network nodes and earn the associated transaction fees.</p>
|
||||
@@ -382,21 +272,18 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
<div class="add-grid">
|
||||
<div class="panel">
|
||||
<h2>Add your Will Executor</h2>
|
||||
<p class="lead">Enter your server URL. It will appear in the list once your deposit is confirmed (typically about 30 minutes).</p>
|
||||
<p class="lead">Enter your server URL. It will be checked online before it appears in the list.</p>
|
||||
<div class="form-row">
|
||||
<input type="text" id="url" placeholder="https://we.bitcoin-after.life">
|
||||
<input type="text" id="url" placeholder="https://bitcoin-after.life:9137">
|
||||
<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:13px;margin-top:4px"><strong>Make sure the link above works correctly before paying. No refunds or URL changes after payment.</strong></p>
|
||||
<p style="font-size:14px">
|
||||
<label>
|
||||
<input type="checkbox" id="terms-check">
|
||||
@@ -407,31 +294,26 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
</div>
|
||||
|
||||
<div class="invoice" id="invoice">
|
||||
<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>Address</span><span id="iv-addr">—</span></div>
|
||||
<div class="row"><span>Balance</span><span id="iv-balance">—</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>Status</span><span id="iv-status2">—</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>
|
||||
<button class="btn-share" id="share-btn">Share invoice</button>
|
||||
</div>
|
||||
|
||||
<p class="note">
|
||||
<strong>Please make sure your server is online before you attempt to add it.</strong>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<h2>How ranking works</h2>
|
||||
<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)">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)">Listing period</span><b>365 days</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>
|
||||
<p class="lead">Bid-based ranking: higher contributions rank higher.</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)">Deposit threshold</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;font-size:13px"><span style="color:var(--muted)">Early-adopter guarantee</span><b>12 months</b></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -446,13 +328,13 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
<div class="info-block">
|
||||
<span class="ic">02</span>
|
||||
<h3>Ranking System</h3>
|
||||
<p>This leaderboard is ordered by excess donated (over the yearly fee), then total amount paid, then lower base fee, then WeTime points.</p>
|
||||
<p>This leaderboard operates on a bid-based ranking system where higher contributions result in better positioning.</p>
|
||||
</div>
|
||||
|
||||
<div class="info-block">
|
||||
<span class="ic">03</span>
|
||||
<h3>Listing & Renewal</h3>
|
||||
<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>
|
||||
<h3>Early Adopter Incentives</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>
|
||||
</div>
|
||||
|
||||
<div class="info-block">
|
||||
@@ -469,19 +351,11 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
<div class="wrap">
|
||||
<span>Bitcoin After Life — Will Executor List</span>
|
||||
<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>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
if (window.location.hostname !== 'localhost') {
|
||||
const regtestBtn = document.querySelector('#chainSeg [data-c="regtest"]');
|
||||
if (regtestBtn) {
|
||||
regtestBtn.style.display = 'none';
|
||||
regtestBtn.setAttribute('aria-pressed', 'false');
|
||||
}
|
||||
}
|
||||
let allServers = [];
|
||||
let withTor = true, q = "";
|
||||
let minAmount = 50000;
|
||||
@@ -496,7 +370,9 @@ function getChain() {
|
||||
|
||||
function getFiltered() {
|
||||
return allServers
|
||||
.filter(d => (d.url + " " + (d.info||"")).toLowerCase().includes(q.toLowerCase()));
|
||||
.filter(d => withTor ? true : !d.onion)
|
||||
.filter(d => (d.url + " " + (d.info||"")).toLowerCase().includes(q.toLowerCase()))
|
||||
.sort((a, b) => (b.balance||0) - (a.balance||0) || (a.base_fee||0) - (b.base_fee||0) || (b.points||0) - (a.points||0));
|
||||
}
|
||||
|
||||
function render() {
|
||||
@@ -506,7 +382,7 @@ function render() {
|
||||
tb.innerHTML = ""; ml.innerHTML = "";
|
||||
|
||||
if (!list.length) {
|
||||
tb.innerHTML = '<tr><td colspan="8" style="padding:28px;text-align:center;color:var(--muted)">No servers found.</td></tr>';
|
||||
tb.innerHTML = '<tr><td colspan="9" style="padding:28px;text-align:center;color:var(--muted)">No servers found.</td></tr>';
|
||||
}
|
||||
|
||||
list.forEach((d, i) => {
|
||||
@@ -520,6 +396,7 @@ function render() {
|
||||
<td class="info">${DOMPurify.sanitize(d.info||'—')}</td>
|
||||
<td class="num">${fmt(d.base_fee)}</td>
|
||||
<td class="mono">${DOMPurify.sanitize(d.version||'—')}</td>
|
||||
<td class="num">${fmt(d.balance)}</td>
|
||||
<td class="num">${fmt(d.last_block)}</td>
|
||||
<td class="num">${d.count_win != null ? d.count_win : '—'}</td>
|
||||
<td class="num"><span class="score">${fmt(d.points)}</span></td>
|
||||
@@ -534,15 +411,18 @@ function render() {
|
||||
<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>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>Height</span><b>${fmt(d.last_block)}</b></div>
|
||||
</div>
|
||||
</div>`);
|
||||
});
|
||||
|
||||
const online = allServers.filter(d => d.status === "OK").length;
|
||||
const online = allServers.filter(d => d.status === "online" || d.status === "OK").length;
|
||||
document.getElementById('s-online').textContent = online;
|
||||
document.getElementById('s-total').textContent = allServers.length;
|
||||
const top = getFiltered()[0];
|
||||
document.getElementById('s-block').textContent = top ? fmt(top.last_block) : '—';
|
||||
}
|
||||
|
||||
async function fetchData() {
|
||||
@@ -550,14 +430,10 @@ async function fetchData() {
|
||||
const params = new URLSearchParams({ page: 0, limit: 100 });
|
||||
if (!withTor) params.append("onion", "no");
|
||||
try {
|
||||
// NOTE: /data/{chain} returns a HashMap, whose JSON key order is not
|
||||
// guaranteed (it can change on every backend restart). /datalist/{chain}
|
||||
// returns an ordered array (Vec) that preserves the server-side sort
|
||||
// (donation DESC, balance DESC, base_fee ASC, wetime_points DESC) — see terms.html §3.
|
||||
const response = await fetch(`/datalist/${chain}?${params}`);
|
||||
const response = await fetch(`/data/${chain}?${params}`);
|
||||
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
||||
const list = await response.json();
|
||||
allServers = list;
|
||||
const obj = await response.json();
|
||||
allServers = Object.entries(obj).map(([key, s]) => ({ id: key, ...s }));
|
||||
render();
|
||||
} catch (err) {
|
||||
console.error('Fetch error:', err);
|
||||
@@ -615,50 +491,18 @@ document.getElementById('submit').addEventListener('click', async () => {
|
||||
document.getElementById('iv-chain').textContent = '—';
|
||||
document.getElementById('iv-addr').textContent = '—';
|
||||
document.getElementById('iv-balance').textContent = '—';
|
||||
document.getElementById('iv-donations').textContent = '—';
|
||||
document.getElementById('iv-status2').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();
|
||||
try {
|
||||
const response = await fetch('/data', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ url, chain, contact: document.getElementById('contact').value.trim() || undefined })
|
||||
body: JSON.stringify({ url, chain })
|
||||
});
|
||||
const result = await response.json();
|
||||
if (!response.ok) {
|
||||
@@ -669,86 +513,48 @@ document.getElementById('terms-accept').addEventListener('click', async function
|
||||
document.getElementById('iv-min').textContent = fmt(result.min_amount != null ? result.min_amount : minAmount) + ' sats';
|
||||
document.getElementById('iv-chain').textContent = result.chain || chain;
|
||||
document.getElementById('iv-addr').textContent = result.address || '—';
|
||||
const balStr = result.balance != null ? fmt(result.balance) : null;
|
||||
const uncStr = result.unconfirmed_balance != null ? fmt(result.unconfirmed_balance) : null;
|
||||
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)}`;
|
||||
document.getElementById('iv-balance').textContent = result.balance != null ? fmt(result.balance) : '—';
|
||||
document.getElementById('iv-status2').textContent = result.status || '—';
|
||||
const invoiceuri = `bitcoin:${result.address}?label=BAL&message=Order+For+url+%26+${encodeURIComponent(url)}`;
|
||||
const qrEl = document.getElementById('qrcode');
|
||||
qrEl.innerHTML = '';
|
||||
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.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||
new QRCode(qrEl, invoiceuri);
|
||||
const serverUrl = result.url || url;
|
||||
const infoUrl = serverUrl + '/' + (result.chain || chain) + '/info';
|
||||
document.getElementById('iv-url').textContent = serverUrl;
|
||||
document.getElementById('terms-url').href = infoUrl;
|
||||
document.getElementById('terms-url').textContent = serverUrl;
|
||||
document.getElementById('terms-box').classList.add('show');
|
||||
document.getElementById('terms-box').scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||
} catch (err) {
|
||||
document.getElementById('iv-status').className = 'err-line';
|
||||
document.getElementById('iv-status').textContent = 'Network error. Please try again.';
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById('terms-check').addEventListener('change', function () {
|
||||
document.getElementById('terms-accept').disabled = !this.checked;
|
||||
});
|
||||
|
||||
document.getElementById('terms-accept').addEventListener('click', function () {
|
||||
document.getElementById('terms-box').classList.remove('show');
|
||||
const inv = document.getElementById('invoice');
|
||||
document.getElementById('iv-status').className = 'ok-line';
|
||||
document.getElementById('iv-status').textContent = '✓ Server added: ' + document.getElementById('iv-url').textContent + '. Pay the invoice to complete.';
|
||||
inv.classList.add('show');
|
||||
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||
});
|
||||
|
||||
document.getElementById('url').addEventListener('keydown', e => {
|
||||
if (e.key === 'Enter') document.getElementById('submit').click();
|
||||
});
|
||||
|
||||
(async function init() {
|
||||
await Promise.all([fetchData(), fetchMinAmount()]);
|
||||
(function init() {
|
||||
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
|
||||
document.getElementById('download').href = URL.createObjectURL(blob);
|
||||
fetchData();
|
||||
fetchMinAmount();
|
||||
})();
|
||||
</script>
|
||||
<div id="qr-overlay"><div id="qr-big"></div></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
25
terms.html
25
terms.html
@@ -7,12 +7,9 @@
|
||||
<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.
|
||||
(flat yearly fee, renewal from 6 months before expiry, list
|
||||
ordered by points). Section 1, header, footer and the dynamic
|
||||
min-deposit script are unchanged from the previous version.
|
||||
-->
|
||||
<style>
|
||||
:root{
|
||||
@@ -238,7 +235,7 @@ l-49 -25 -880 0 -880 0 -3 704 c-2 557 0 706 10 713 7 4 407 7 888 5 818 -2
|
||||
|
||||
<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>
|
||||
<p class="sub">A listing works like a hosting plan: a flat yearly fee buys your server one year of presence in the list. No balances, no ranking by deposit, no daily decay. 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>
|
||||
@@ -255,7 +252,7 @@ l-49 -25 -880 0 -880 0 -3 704 c-2 557 0 706 10 713 7 4 407 7 888 5 818 -2
|
||||
<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>There is no fixed number of slots: every server with remaining listing time is shown. Paying buys presence in the list, not a 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">
|
||||
@@ -286,19 +283,13 @@ l-49 -25 -880 0 -880 0 -3 704 c-2 557 0 706 10 713 7 4 407 7 888 5 818 -2
|
||||
|
||||
<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>
|
||||
<p class="sub">The list is ordered by points, earned by proving your server is online and synchronized. Payment does not affect position.</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>
|
||||
<h3>Points & WeTime</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>
|
||||
<p>Points are not transferable, not redeemable and have no monetary value: they exist only to order this list. 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>
|
||||
|
||||
72
weinfo.html
72
weinfo.html
@@ -1,8 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta charset="UTF-<|begin▁of▁sentence|>8" />
|
||||
<meta name="viewport" content="width=device-w, initial-scale=1.0" />
|
||||
<title>Bal Server List</title>
|
||||
<link rel="icon" href="Logo_nero.ico" type="image/x-icon">
|
||||
<script src="/qrcode.min.js"></script>
|
||||
@@ -26,7 +26,7 @@
|
||||
tr:nth-child(even) {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
span {
|
||||
span{
|
||||
margin-left:10px;
|
||||
}
|
||||
</style>
|
||||
@@ -41,7 +41,6 @@
|
||||
<div><span>Version:</span><span id="weversion"> </span></div>
|
||||
<div><span>Fees:</span><span id="wefees"> </span></div>
|
||||
<div><span>Tld:</span><span id="wetld"> </span></div>
|
||||
<div><span>Last Update:</span><span id="weupdate"> </span></div>
|
||||
</div>
|
||||
<div style="float:left;border:1;margin-right:50px;">
|
||||
<div><span>Height:</span><span id="weheight"> </span></div>
|
||||
@@ -50,9 +49,8 @@
|
||||
</div>
|
||||
<div style="border:1;margin-right:50px;">
|
||||
<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>Expiry:</span><span id="weexpiry"> </span></div>
|
||||
<div><span>Last Update:</span><span id="weupdate"> </span></div>
|
||||
</div>
|
||||
<div>
|
||||
<table id="wetimes">
|
||||
@@ -83,58 +81,38 @@
|
||||
const chain = path[1];
|
||||
const cdate=new Date().toISOString().replace(/[-:T.Z]/g, '').slice(0, 14);
|
||||
fetchDataAndPopulateTable('/weinfodata/'+chain+"/"+we_id, new URLSearchParams(),(data) => {
|
||||
document.getElementById('wename').innerHTML = DOMPurify.sanitize(data.url||'—');
|
||||
document.getElementById('wechain').innerHTML = DOMPurify.sanitize(data.chain||'—');
|
||||
document.getElementById('weinfo').innerHTML = DOMPurify.sanitize(data.info||'—');
|
||||
document.getElementById('wefees').innerHTML = data.base_fee != null ? data.base_fee : '—';
|
||||
document.getElementById('weheight').innerHTML = data.last_block != null ? data.last_block : '—';
|
||||
document.getElementById('wepoints').innerHTML = data.points != null ? data.points : '—';
|
||||
document.getElementById('wewin').innerHTML = data.count_win != null ? data.count_win : '—';
|
||||
document.getElementById('wetld').innerHTML = DOMPurify.sanitize(data.tld||'—');
|
||||
const bal = data.balance != null ? data.balance : null;
|
||||
const unc = data.unconfirmed_balance != null ? data.unconfirmed_balance : null;
|
||||
document.getElementById('webalance').innerHTML = bal ? (unc ? bal + ' (' + unc + ')' : bal) : '—';
|
||||
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] || '—';
|
||||
document.getElementById('wename').innerHTML = DOMPurify.sanitize(data.url);
|
||||
document.getElementById('wechain').innerHTML = DOMPurify.sanitize(data.chain);
|
||||
document.getElementById('weinfo').innerHTML = DOMPurify.sanitize(data.info);
|
||||
document.getElementById('wefees').innerHTML = data.base_fee;
|
||||
document.getElementById('weheight').innerHTML = data.last_block;
|
||||
document.getElementById('wepoints').innerHTML = data.points;
|
||||
document.getElementById('wewin').innerHTML = data.count_win;
|
||||
document.getElementById('wetld').innerHTML = DOMPurify.sanitize(data.tld);
|
||||
document.getElementById('webalance').innerHTML = data.balance;
|
||||
document.getElementById('weversion').innerHTML = data.version;;
|
||||
document.getElementById('westatus').innerHTML = DOMPurify.sanitize(data.status);
|
||||
document.getElementById('weupdate').innerHTML = data.last_update;
|
||||
|
||||
const tableBody = document.querySelector('#wetimes tbody');
|
||||
tableBody.innerHTML ='';
|
||||
if (data.times && data.times.length) {
|
||||
Object.entries(data.times).forEach(([key,wetime]) => {
|
||||
const row = document.createElement('tr');
|
||||
const d = new Date(wetime.time/1000);
|
||||
row.innerHTML = `
|
||||
<td>${wetime.blockHeight != null ? wetime.blockHeight : '—'}</td>
|
||||
<td>${DOMPurify.sanitize(wetime.blockHash||'—')}</td>
|
||||
<td>${wetime.blockHeight}</td>
|
||||
<td>${DOMPurify.sanitize(wetime.blockHash)}</td>
|
||||
<td>${d}</td>
|
||||
<td>${wetime.diff != null ? wetime.diff/1000000 + ' s' : '—'}</td>
|
||||
<td>${wetime.position != null ? wetime.position+1 : '—'}</td>
|
||||
<td>${wetime.participants != null ? wetime.participants : '—'}</td>
|
||||
<td>${wetime.points != null ? wetime.points : '—'}</td>
|
||||
<td>${wetime.diff/1000000} s</td>
|
||||
<td>${wetime.position+1}</td>
|
||||
<td>${wetime.participants}</td>
|
||||
<td>${wetime.points}</td>
|
||||
`;
|
||||
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 next=0;
|
||||
if (data.times && data.times.length > 0){
|
||||
if (data.times.length > 0){
|
||||
prev = data.times[0].blockHeight+data.times.length;
|
||||
next = data.times[data.times.length-1].blockHeight;
|
||||
if (prev < 0 ){
|
||||
@@ -148,6 +126,8 @@
|
||||
}
|
||||
|
||||
getWeInfo();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user