Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created October 15, 2015 18:15
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/f8a14ff48a5dd09a02e2 to your computer and use it in GitHub Desktop.
Save cleytonmessias/f8a14ff48a5dd09a02e2 to your computer and use it in GitHub Desktop.
Trifil - Homologação
<div id="_trustvox_widget"></div>
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '217']);
_trustvox.push(['_productId', $('#___rc-p-id').val()]);
_trustvox.push(['_productName',$('.productName').html()]);
_trustvox.push(['_productPhotos', [$('#image-main').attr('src')]]);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.charset = "UTF-8";
tv.src = '//trustvox-staging-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