四个步骤
- 选择小工具:计算器、排行榜、币价或店铺工具。
- 进行设置:币种或矿机、浅色或深色主题、语言。预览会准确显示访客将看到的内容。
- 点击“复制代码”。
- 将代码粘贴到页面中要显示小工具的位置(参见下方对应平台),然后发布。
代码粘贴位置
WordPress编辑页面,添加“Custom HTML”区块,粘贴代码并点击“Update”。
Shopify进入“Online Store → Themes → Customize”,添加“Custom Liquid”分区并粘贴代码。若放在商品描述中,请先切换到 HTML 视图 (<>)。然后保存。
Wix依次点击“Add → Embed Code → Embed HTML”,选择“Code”,粘贴后点击“Update”。将框的高度设为与代码中的 height 相同。
Squarespace添加“Code”区块,粘贴代码,保持“Display source”关闭,然后保存。
HTML其他任何网站:将代码粘贴到页面 HTML 中要显示小工具的位置。
代码如下所示(您的代码来自小工具生成器):
<iframe src="https://www.asicprofit.com/widget/BTC?hashrate=200&unit=TH&consumption=3500" width="100%" height="560" frameborder="0" loading="lazy"></iframe>小贴士
- 数据自动更新:币价和难度每 15 分钟更新一次。无需维护。
- 宽度会自适应页面空间。如果底部被截断,请增大代码中 height="…" 的数值。
- 深色网站可选用深色主题,并可从 32 种语言中任选。
- 小工具仅在滚动到可见区域时才加载,且不设置 Cookie,因此不会拖慢页面,也无需 Cookie 提示横幅。
- 请保留“Powered by AsicProfit”这一行:正是它让小工具保持免费。
- 店铺:店铺通过认证后,您可以在账户中的店铺页面领取认证卖家徽章。
选项参考
每个选项都是小工具地址(src="…")中的一个参数。生成器会为您设置好,您也可以手动修改。
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). |
需要帮助?请给我们写信,我们将与您一起完成设置: info@asicprofit.com