無料のマイニングウィジェット / サイトにウィジェットを追加する方法
サイトにウィジェットを追加する方法
ウィジェットはすべて無料です。選んで設定し、1行のコードをコピーしてページに貼り付けるだけ。リアルタイムの価格と難易度で自動的に更新されます。
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
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