Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Last active September 30, 2015 20:43
Show Gist options
  • Save viniciusdacal/a4c561f05814f058c7d0 to your computer and use it in GitHub Desktop.
Save viniciusdacal/a4c561f05814f058c7d0 to your computer and use it in GitHub Desktop.
<!--INSERT THIS TAG WHERE YOU WANT TO PLACE THE WIDGET-->
<!--you can set the width and height using css rules-->
<div id="ot__ondetem" style="width:800px; height: 400px"></div>
<!--INSERT THIS JUST BEFORE THE BODY END-->
<script>
(function(d, s, id) {
var gtin = 10527;
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = 'http://www.ondetem.com.br:8080/embed/' + gtin + '.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'ot__widget'));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment