Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Last active January 2, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleytonmessias/8350873 to your computer and use it in GitHub Desktop.
Save cleytonmessias/8350873 to your computer and use it in GitHub Desktop.
Instalação Trustvox - BaratoAki
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '27']);
_trustvox.push(['_productId', $('.produto .acoes-produto[data-produto-id]').last().data('produto-id')]);
_trustvox.push(['_productName',$('h1.nome-produto').text()]);
_trustvox.push(['_productPhotos', ['http:'+$(".elastislide").find("[href]").data('imagem-grande')] ]);
(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