HTML Widget
Artifact HTML Widget can help you display your Artifact decks in your web page.
Last updated
Artifact HTML Widget can help you display your Artifact decks in your web page.
Last updated
At the end of your page, right before tag </body>, insert this code:
In order to insert a deck into your page, you have to insert a DIV element with parameter data-url. You have to fill this parameter with URL of the deck.
You can insert multiple decks into single page.
Widget supports this data parameters:
data-url
Mandatory
URL of the artifact deck from playartifact.com
you can ALSO insert a deck hash without https://playartifact.com/d/
data-width
Width of the widget (in px)
Default: 320px
data-height
Height of the widget (in px)
Default: 500px
data-disable-link
Options: true / false
Disable / enable "Open on playartifact.com" button
Default: enabled
Widget with disabled link, width of 300px, height of 400px.
Full page example: https://widget.artifact.cz/example.html
Valve API
Vanilla Javascript (no jQuery)
topekar@gmail.com