/kWh 登录

免费挖矿小工具 / 如何在您的网站上添加小工具

如何在您的网站上添加小工具

我们的所有小工具都免费。选择一个,完成设置,复制一行代码并粘贴到您的页面中。它会根据实时币价和难度自动更新。

四个步骤

  1. 选择小工具:计算器、排行榜、币价或店铺工具。
  2. 进行设置:币种或矿机、浅色或深色主题、语言。预览会准确显示访客将看到的内容。
  3. 点击“复制代码”。
  4. 将代码粘贴到页面中要显示小工具的位置(参见下方对应平台),然后发布。

免费挖矿小工具 →

代码粘贴位置

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

hashrate100The machine's hashrate, a number.
unitH, kH, MH, GH, TH, PHUnit of the hashrate (default: the coin's usual unit).
consumption3500Power use in watts.
electricity0.06Electricity price in USD per kWh (default: the site's default rate).
fee0Pool fee in %.
currencyUSD, EUR, GBP, CZK, …Currency the results are shown in.
machinePrice1599Price of the machine in USD: shows how many months until it pays for itself.
showHashrateField, showConsumptionField, showFeeFieldtrue, falseShow or hide that input.
disabledHashrate, disabledPower, disabledElectricity, disabledFeetrue, falseLock that input so visitors can't change it (e.g. your machine's hashrate).
dateRange1_month, 3_months, 6_months, 1_year, allChart only: the period shown first.
showDateRangestrue, falseChart only: show the period buttons.

One miner: /widget/miner/{brand}/{model}

electricity0.06Starting electricity price; visitors can change it and the number of units.

Top miners: /widget/top

kindasic, gpu, cpuWhich devices to rank.
algosha-256, scrypt, kheavyhash, …Only one algorithm (leave out for all).
n3 – 25How many rows.
electricity0.06Electricity price used for the profit.

Coin prices: /widget/ticker

coinsBTC,LTC,DOGE,KASWhich coins, comma-separated (up to 12).
layoutrow, listChips in a row, or a list with more detail (set height to about 420).

Store miner list: /widget/miner-list/{store}

electricity0.06Electricity price used for the profit.

Verified seller badge: /badge/{store}.svg (an image, not an iframe)

stylelight, dark, compactLook of the badge.

Every iframe widget

themelight, darkColours to match your site.
langen, de, es, fr, cs, zh-Hans-CN, …Language of the widget (32 languages).

需要帮助?请给我们写信,我们将与您一起完成设置: info@asicprofit.com