Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Decimal counters
New Landing › How can we help? › Themeforest Theme Support › Dante › Decimal counters
- This topic has 17 replies, 5 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
March 20, 2014 at 3:45 am #59188
Hello,
Is possible show decimal values in the counters as “4.8”?. Thank You!
Regards,
YeikMarch 20, 2014 at 9:26 am #59230Hi,
Please open to edit functions.js at /dante/js/Find this code countNumber.countTo({ Replace with countNumber.countTo({decimals: 2,
Hopefully will work 100% .
With Best Regards
Swift IdeasMarch 21, 2014 at 2:54 am #59579Hi,
Works correctly! but also the change all integer values to decimal, example 5 –> 5.00, Is possible to have integers and decimal values in the same counter? Thank You!
Regards,
YeikMarch 21, 2014 at 4:29 am #59585Hi,
All integers will show decimal automatically . Now Please make changes in codes1-Find this code in functions.js countSubject = countAsset.find('.count-subject'); Replace with countSubject = countAsset.find('.count-subject'); var mixed_var = countNumber.data('to'); var mydec=(+mixed_var === mixed_var && (!isFinite(mixed_var) || !! (mixed_var % 1))) ? 2 : 0; 2- Find this code countNumber.countTo({decimals: 2, Replace with Replace with countNumber.countTo({decimals: mydec,
Thanks
March 22, 2014 at 11:46 pm #59921Thank You! this works perfectly! =)
March 23, 2014 at 9:45 am #59938Hi,
You most welcome
Thanks 🙂
With Best Regards
Swift IdeasApril 8, 2014 at 3:53 pm #65392Anyway to add commas to large numbers in counters? So if I have 500000 is there a way for it to display as 500,000? And even better is there a way to do both decimal points and commas? So in one counter I can have 500,000 but in another I can have 25.7?
Thanks…
April 8, 2014 at 3:56 pm #65398Hi there,
Unfortunately that is not part of the current theme functionality, and it’s not within the scope of our support to be able to provide that functionality as it is more work than a small customisation. While we’d love to be able to support every customisation request, we simply don’t have the time. We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:
May 14, 2015 at 4:38 pm #174983I got this to work, but it doesn’t seem to be working on my iPhone. I want the number to be 3.5, but it’s still rounding up to 4 on iPhone. You can see what I’m talking about if you go here and scroll down to the “Tour Details” section: http://atlantafoodwalks.com/.
Like I said, it works fine on desktop. Any clue why it won’t work the same on smartphones? See attached screen shot.
Thanks,
Ben
Attachments:
You must be logged in to view attached files.May 15, 2015 at 6:46 am #175141Hi,
Please clear the cache of iphone and let me know your feedback.
Thanks
MohammadMay 15, 2015 at 5:41 pm #175469Yeah, I already did that, but no luck.
May 18, 2015 at 5:59 am #175764Hi,
There are two replace of this code while you made change it one place. Find again and replace.
Thanks
MohammadMay 18, 2015 at 6:51 pm #176152Can you tell me where the 2nd instance is located (which line #)? I’m not finding it.
May 19, 2015 at 12:54 am #176224Hi,
Please check after 12 line of first instance. You will find it.
Thanks
MohammadMay 19, 2015 at 1:44 am #176234Can you please be more specific? I’m not finding it. Thank you.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.