Widgets de minería gratuitos / Cómo añadir un widget a su web
Cómo añadir un widget a su web
Todos nuestros widgets son gratuitos. Elija uno, configúrelo, copie una línea de código y péguela en su página. Se actualiza solo con precios y dificultad en tiempo real.
En cuatro pasos
- Elija un widget: calculadoras, clasificaciones, precios de monedas o herramientas para tiendas.
- Configúrelo: moneda o minero, tema claro u oscuro, idioma. La vista previa muestra exactamente lo que verán sus visitantes.
- Pulse “Copiar código”.
- Pegue el código en su página donde deba aparecer el widget (vea su plataforma abajo) y publique.
Dónde pegar el código
WordPressEdite la página, añada un bloque “Custom HTML”, pegue el código y pulse “Update”.
Shopify“Online Store → Themes → Customize”: añada una sección “Custom Liquid” y pegue el código. En la descripción de un producto, cambie primero a la vista HTML (<>). Después guarde.
Wix“Add → Embed Code → Embed HTML”, elija “Code”, pegue y pulse “Update”. Haga el recuadro tan alto como el valor height del código.
SquarespaceAñada un bloque “Code”, pegue el código, deje “Display source” desactivado y guarde.
HTMLCualquier otra web: pegue el código en el HTML de la página donde deba aparecer el widget.
Así es el código (el suyo lo genera el creador de widgets):
<iframe src="https://www.asicprofit.com/widget/BTC?hashrate=200&unit=TH&consumption=3500" width="100%" height="560" frameborder="0" loading="lazy"></iframe>Conviene saber
- Las cifras se actualizan solas: precios y dificultad cada 15 minutos. Sin mantenimiento.
- El ancho se adapta al espacio de su página. Si se corta la parte inferior, aumente el número de height="…" en el código.
- Elija el tema oscuro para una web oscura y cualquiera de los 32 idiomas.
- Los widgets solo se cargan al entrar en pantalla y no usan cookies, así que no ralentizan su página ni requieren aviso de cookies.
- Mantenga la línea “Powered by AsicProfit”: es lo que permite que los widgets sigan siendo gratuitos.
- Tiendas: cuando su tienda esté verificada, su insignia de vendedor verificado le espera en su cuenta, en la página de su tienda.
Referencia de opciones
Cada opción es un parámetro en la dirección del widget (src="…"). Los creadores las configuran por usted; también puede cambiarlas a mano.
Calculator: /widget/{COIN} · Profit chart: /widget/{COIN}/graph
hashrate | 100 | The machine's hashrate, a number. |
unit | H, kH, MH, GH, TH, PH | Unit of the hashrate (default: the coin's usual unit). |
consumption | 3500 | Power use in watts. |
electricity | 0.06 | Electricity price in USD per kWh (default: the site's default rate). |
fee | 0 | Pool fee in %. |
currency | USD, EUR, GBP, CZK, … | Currency the results are shown in. |
machinePrice | 1599 | Price of the machine in USD: shows how many months until it pays for itself. |
showHashrateField, showConsumptionField, showFeeField | true, false | Show or hide that input. |
disabledHashrate, disabledPower, disabledElectricity, disabledFee | true, false | Lock that input so visitors can't change it (e.g. your machine's hashrate). |
dateRange | 1_month, 3_months, 6_months, 1_year, all | Chart only: the period shown first. |
showDateRanges | true, false | Chart only: show the period buttons. |
One miner: /widget/miner/{brand}/{model}
electricity | 0.06 | Starting electricity price; visitors can change it and the number of units. |
Top miners: /widget/top
kind | asic, gpu, cpu | Which devices to rank. |
algo | sha-256, scrypt, kheavyhash, … | Only one algorithm (leave out for all). |
n | 3 – 25 | How many rows. |
electricity | 0.06 | Electricity price used for the profit. |
Coin prices: /widget/ticker
coins | BTC,LTC,DOGE,KAS | Which coins, comma-separated (up to 12). |
layout | row, list | Chips in a row, or a list with more detail (set height to about 420). |
Store miner list: /widget/miner-list/{store}
electricity | 0.06 | Electricity price used for the profit. |
Verified seller badge: /badge/{store}.svg (an image, not an iframe)
style | light, dark, compact | Look of the badge. |
Every iframe widget
theme | light, dark | Colours to match your site. |
lang | en, de, es, fr, cs, zh-Hans-CN, … | Language of the widget (32 languages). |
¿Necesita ayuda? Escríbanos y lo configuramos con usted: info@asicprofit.com