<script type="text/javascript"> var myVar = setInterval(function(){ myTimer() }, 1000); function myTimer() { if(jQuery(".yotpo-display-wrapper").length) { jQuery(".bottomLine a").click(function(){ jQuery('.product-tabs ul li').removeClass('active'); jQuery('#tab_review_tabbed').addClass('active'); jQuery('.product-tabs .tab-content').hide(); jQuery('#tab_review_tabbed_contents').show(); jQuery('html, body').animate({scrollTop:jQuery("#tab_review_tabbed").offset().top},1000); }); myStopFunction(); } } function myStopFunction() { console.log('clear'); clearInterval(myVar); } </script>
Comments
Post a Comment
Feel Free To Ask...