$.fn.isInViewport = function() {
var elementTop = $(this).offset().top;
var elementBottom = elementTop + $(this).outerHeight();
var viewportTop = $(window).scrollTop();
var viewportBottom = viewportTop + $(window).height();
return elementBottom > viewportTop && elementTop < viewportBottom;
};
div.style.cssText=`height: this.height;
width: 20px;
`;
div.style.cssText=`height: ${this.height}; width: 20px;`
if ($('#cartdiv').hasClass('module_item1')) {