Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created June 9, 2014 12:56
Show Gist options
  • Save cleytonmessias/556217f3b3dbb0f7994f to your computer and use it in GitHub Desktop.
Save cleytonmessias/556217f3b3dbb0f7994f to your computer and use it in GitHub Desktop.
Instalação
<div id="_trustvox_widget"></div>
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '139']);
_trustvox.push(['_productId', $('#___rc-p-id').val()]);
_trustvox.push(['_productName',$('.productName').text()]);
_trustvox.push(['_productPhotos', [$('.image-zoom').attr('href')]]);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.src = '//trustvox-production-assets.s3.amazonaws.com/assets/trustvox.1.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tv, s);
})();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment