Právě si prohlíží 146 zákazníků
(function ($) { $(document).ready(function () { if ($('.wse-actual-visitors__number').length) { setInterval(function () { var $customerViews = $('.wse-actual-visitors__number'); var visitBefore = $customerViews.text(); var visitNext = parseInt(visitBefore) + Math.floor(Math.random() * (2 - (-2) + 1) - 2); visitNext = (visitNext 162 ? 162 : visitNext); $customerViews.text(visitNext); }, 7000); } }); }( jQuery ));