Twój prądCena prądu: $0.0364/kWh USD

Darmowe widżety do kopania / Jak dodać widżet do swojej strony

Jak dodać widżet do swojej strony

Wszystkie nasze widżety są darmowe. Wybierz jeden, skonfiguruj go, skopiuj jedną linię kodu i wklej ją na swoją stronę. Widżet sam się aktualizuje: kursy i trudność na żywo.

W czterech krokach

  1. Wybierz widżet: kalkulatory, rankingi, kursy kryptowalut lub narzędzia dla sklepów.
  2. Skonfiguruj go: kryptowaluta lub koparka, jasny lub ciemny motyw, język. Podgląd pokazuje dokładnie to, co zobaczą odwiedzający.
  3. Kliknij „Kopiuj kod”.
  4. Wklej kod na stronie w miejscu, gdzie ma się pojawić widżet (zobacz swoją platformę poniżej), i opublikuj.

Darmowe widżety do kopania →

Gdzie wkleić kod

WordPressEdytuj stronę, dodaj blok „Custom HTML”, wklej kod i kliknij „Update”.
Shopify„Online Store → Themes → Customize”: dodaj sekcję „Custom Liquid” i wklej kod. W opisie produktu najpierw przełącz na widok HTML (<>). Potem zapisz.
Wix„Add → Embed Code → Embed HTML”, wybierz „Code”, wklej i kliknij „Update”. Ustaw wysokość ramki równą wartości height w kodzie.
SquarespaceDodaj blok „Code”, wklej kod, pozostaw „Display source” wyłączone i zapisz.
HTMLKażda inna strona: wklej kod do HTML strony w miejscu, gdzie ma się pojawić widżet.

Tak wygląda kod (swój otrzymasz z kreatora widżetów):

<iframe src="https://www.asicprofit.com/widget/BTC?hashrate=200&unit=TH&consumption=3500" width="100%" height="560" frameborder="0" loading="lazy"></iframe>

Warto wiedzieć

  • Liczby aktualizują się same: kursy i trudność co 15 minut. Nic nie trzeba utrzymywać.
  • Szerokość dopasowuje się do miejsca na stronie. Jeśli dół jest ucięty, zwiększ liczbę w height="…" w kodzie.
  • Wybierz ciemny motyw pasujący do ciemnej strony i dowolny z 32 języków.
  • Widżety ładują się dopiero po przewinięciu do nich i nie zapisują plików cookie, więc nie spowalniają strony ani nie wymagają banera cookie.
  • Prosimy, zostaw linię „Powered by AsicProfit”: dzięki niej widżety pozostają darmowe.
  • Sklepy: po weryfikacji sklepu odznaka zweryfikowanego sprzedawcy czeka na Twoim koncie, na stronie Twojego sklepu.

Opis opcji

Każda opcja to parametr w adresie widżetu (src="…"). Kreatory ustawiają je za Ciebie; możesz też zmienić je ręcznie.

Mining calculators: /widget/tool/{profitability | roi | power-cost | hosting-vs-own | site-planner | solar | heat-reuse}

kwh0.06Starting electricity price in USD per kWh (left out or 0: the cheapest hosting rate listed on AsicProfit).
months24Period the result is worked out for.
currencyUSD, EUR, GBP, CZK, …Currency of the amounts.

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 (left out or 0: the cheapest hosting rate listed on AsicProfit).
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 (left out or 0: the cheapest hosting rate listed); 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 (left out or 0: the cheapest hosting rate listed).

Hashrate converter: /widget/hashrate-converter

value200Starting number.
unitH, kH, MH, GH, TH, PH, EH, ZHIts unit.

Crypto converter: /widget/crypto-converter

coinBTC, KAS, LTC, …Starting coin.
amount1Starting amount.

Halving countdown: /widget/halving

coinBTC, BCH, LTC, ZEC, HNSWhich coin's next halving.

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 480).

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

electricity0.06Electricity 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)

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).

Potrzebujesz pomocy? Napisz do nas, a skonfigurujemy to razem: info@asicprofit.com