< script > $(document).ready(function() {
var id = 'tildoshnaya_counter_0xyBGM166d';
var elem = $('.tn-elem__15694912011641631205832 .tn-atom').attr('id', id);
var options = {
startVal: 0,
decimalPlaces: 0,
duration: 3,
separator: ',',
decimal: '.',
prefix: '',
suffix: '',
};
var already = 0;
if(already == 0) {
if(checkVisible(elem[0])) {
var demo = new CountUp(id, 100, options);
if(!demo.error) {
demo.start();
} else {
console.error(demo.error);
}
already = 1;
}
}
$(window).scroll(function() {
if(already == 0) {
if(checkVisible(elem[0])) {
var demo = new CountUp(id, 100, options);
if(!demo.error) {
demo.start();
} else {
console.error(demo.error);
}
already = 1;
}
}
});
}) < /script>