Hi
We're trying to implement the counter used in theme demo (http://demo.drupalexp.com/shoot/page/about-company).
but like in your demo, the counter doesn't stop when he reaches number='2000' or some other value.
do you already have any solution for this?
Seem no problem with the shortcode format.could you please send me your site url,admin account and ftp info to [email protected]?I will help you to check and fiz the issue.
Thanks.
There is a problem with count function in themes/shoot/assets/js/shoot.js
Please use function below to replace for the old one.
function count($this) {
var current = parseInt($this.html(), 10);
current = current + 1; /* Where 50 is increment */
$this.html(++current);
if (current > $this.data('count')) {
$this.html($this.data('count'));
} else {
setTimeout(function() {
count($this)
}, 50);
}
}
Thanks!
function count($this) { var current = parseInt($this.html(), 10); current = current + 1; /* Where 50 is increment */ $this.html(++current); if (current > $this.data('count')) { $this.html($this.data('count')); } else { setTimeout(function() { count($this) }, 50); } }
Thanks!