Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created July 30, 2014 17:53
Show Gist options
  • Save cleytonmessias/5fe2b3d4ed4befb7d838 to your computer and use it in GitHub Desktop.
Save cleytonmessias/5fe2b3d4ed4befb7d838 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '54']);
_trustvox.push(['_productId', $('#___rc-p-id').val()]);
_trustvox.push(['_productName',$('.fn.productName').text()]);
_trustvox.push(['_productPhotos', [$('#image-main').attr('src')]]);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.src = '//trustvox-staging-assets.s3.amazonaws.com/assets/widget.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tv, s);
})();
});
</script>
<div id="_trustvox_widget"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment