0

html/JS help

Hi everyone.

I'm trying to get some html/js into a klip.

I have broken out the code (per klipfolio support) for the html and js fields in the html component but it doesn't seem to work. Anyone on here have luck getting html snippets to show in a klip? Here is the code:

<div
class='librato-display-media'
data-chart_id='14512805'
data-duration='2419200'
data-height='200'
data-width='400'
data-source='*'
></div>

var s = document.createElement('script');
s.src = 'https://sdk.librato.com/embedding/librato-sdk-v1.2.3-min.js';
s.dataset.librato_email = 'removed for public forum';
s.dataset.librato_token = 'removed for public forum';

document.body.appendChild(s);

 

Any help much appreciated.

Dieter

0 comments

Please sign in to leave a comment.