Bốn bước
- Chọn widget: công cụ tính, bảng xếp hạng, giá coin hoặc công cụ cho cửa hàng.
- Thiết lập: coin hoặc máy đào, giao diện sáng hoặc tối, ngôn ngữ. Bản xem trước hiển thị đúng những gì khách truy cập sẽ thấy.
- Nhấn “Sao chép mã”.
- Dán mã vào trang tại vị trí muốn hiển thị widget (xem nền tảng của bạn bên dưới) rồi xuất bản.
Widget đào coin miễn phí →
Dán mã ở đâu
WordPressChỉnh sửa trang, thêm khối “Custom HTML”, dán mã và nhấn “Update”.
Shopify“Online Store → Themes → Customize”: thêm mục “Custom Liquid” và dán mã. Trong mô tả sản phẩm, hãy chuyển sang chế độ xem HTML (<>) trước. Sau đó lưu lại.
Wix“Add → Embed Code → Embed HTML”, chọn “Code”, dán mã và nhấn “Update”. Đặt chiều cao khung bằng giá trị height trong mã.
SquarespaceThêm khối “Code”, dán mã, để tắt “Display source” rồi lưu.
HTMLMọi trang web khác: dán mã vào HTML của trang tại vị trí muốn hiển thị widget.
Mã trông như sau (mã của bạn lấy từ trình tạo widget):
<iframe src="https://www.asicprofit.com/widget/BTC?hashrate=200&unit=TH&consumption=3500" width="100%" height="560" frameborder="0" loading="lazy"></iframe>
Cần biết
- Số liệu tự cập nhật: giá coin và độ khó mỗi 15 phút. Không cần bảo trì.
- Chiều rộng tự điều chỉnh theo không gian trên trang. Nếu phần dưới bị cắt, hãy tăng số height="…" trong mã.
- Chọn giao diện tối cho trang web tối, cùng bất kỳ ngôn ngữ nào trong 32 ngôn ngữ.
- Widget chỉ tải khi được cuộn vào tầm nhìn và không đặt cookie, nên không làm chậm trang và không cần banner cookie.
- Vui lòng giữ dòng “Powered by AsicProfit”: nhờ đó các widget luôn miễn phí.
- Cửa hàng: khi cửa hàng của bạn được xác minh, huy hiệu người bán đã xác minh sẽ có sẵn trong tài khoản, trên trang cửa hàng của bạn.
Tham khảo tùy chọn
Mỗi tùy chọn là một tham số trong địa chỉ của widget (src="…"). Trình tạo sẽ thiết lập giúp bạn; bạn cũng có thể sửa thủ công.
Mining calculators: /widget/tool/{profitability | roi | power-cost | hosting-vs-own | site-planner | solar | heat-reuse}
kwh | 0.06 | Starting electricity price in USD per kWh (left out or 0: the cheapest hosting rate listed on AsicProfit). |
months | 24 | Period the result is worked out for. |
currency | USD, EUR, GBP, CZK, … | Currency of the amounts. |
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 (left out or 0: the cheapest hosting rate listed on AsicProfit). |
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 (left out or 0: the cheapest hosting rate listed); 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 (left out or 0: the cheapest hosting rate listed). |
Hashrate converter: /widget/hashrate-converter
value | 200 | Starting number. |
unit | H, kH, MH, GH, TH, PH, EH, ZH | Its unit. |
Crypto converter: /widget/crypto-converter
coin | BTC, KAS, LTC, … | Starting coin. |
amount | 1 | Starting amount. |
Halving countdown: /widget/halving
coin | BTC, BCH, LTC, ZEC, HNS | Which coin's next halving. |
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 480). |
Store miner list: /widget/miner-list/{store}
electricity | 0.06 | Electricity price used for the profit (left out or 0: the cheapest hosting rate listed). |
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). |
Cần trợ giúp? Hãy viết cho chúng tôi, chúng tôi sẽ cùng bạn thiết lập: info@asicprofit.com