Browse Source

Update html.html

master
yuriy0803 2 years ago
parent
commit
d35cccac5e
  1. 6
      Pool-Stats/html.html

6
Pool-Stats/html.html

@ -70,13 +70,13 @@
// List of pool information with logo paths and names // List of pool information with logo paths and names
const poolData = [ const poolData = [
{ {
name: 'expanse', name: 'Ethereum Classic',
apiUrl: 'https://etc.example.org/api/stats', apiUrl: 'https://etc.example.org/api/stats',
logoPath: 'logo/etc.png', logoPath: 'logo/etc.png',
visitUrl: 'https://etc.example.org/' visitUrl: 'https://etc.example.org/'
}, },
{ {
name: 'ethereumclassic', name: 'Expanse',
apiUrl: 'https://exp.example.org/api/stats', apiUrl: 'https://exp.example.org/api/stats',
logoPath: 'logo/exp.png', logoPath: 'logo/exp.png',
visitUrl: 'https://exp.example.org/' visitUrl: 'https://exp.example.org/'
@ -114,7 +114,7 @@
// Create HTML for current pool statistics // Create HTML for current pool statistics
const poolStatsHtml = ` const poolStatsHtml = `
<div class="poolStats"> <div class="poolStats">
<img src="${poolInfo.logoPath}" alt="${poolInfo.name} Logo"> <img src="${poolInfo.logoPath}" alt="${poolInfo.name} Logo" style="max-width: 100px; max-height: 100px;">
<h2>${poolInfo.name}</h2> <h2>${poolInfo.name}</h2>
<p>Difficulty: ${formatHashrate(difficulty)}</p> <p>Difficulty: ${formatHashrate(difficulty)}</p>
<p>Network Hash Rate: ${formatHashrate(nethash)}</p> <p>Network Hash Rate: ${formatHashrate(nethash)}</p>

Loading…
Cancel
Save