This shortcode add support for JSFiddle, a online code editor for testing your JavaScript, CSS, HTML.
1{{< jsfiddle [user] [id] >}}
Position | Name | Type | Required | Default | Description |
---|---|---|---|---|---|
#0 | user | string | Y | Your fiddle user ID. | |
#1 | id | string | Y | You fiddle ID/hash. | |
theme | string | light | light or dark . | ||
tabs | string | js,html,css,result | Tabs separated by comma. |
It’s recommended using the ratio shortcode to wrap JSFiddle frame if you’re using Bootstrap.
1{{< bs/ratio 21x9 >}}
2 {{< jsfiddle razonyang 6cp7xof1 >}}
3{{< /bs/ratio >}}
1{{< bs/ratio 21x9 >}}
2 {{< jsfiddle user=razonyang id=6cp7xof1 tabs=html,css,result >}}
3{{< /bs/ratio >}}
1{{< bs/ratio 21x9 >}}
2 {{< jsfiddle user=razonyang id=6cp7xof1 theme=dark >}}
3{{< /bs/ratio >}}
1{{< bs/ratio 21x9 >}}
2 {{< jsfiddle user=razonyang id=6cp7xof1 tabs=html,css,result theme=dark >}}
3{{< /bs/ratio >}}