Open iogorodov opened 9 years ago
Thank you very much for solution !! It looks great !! But do you have a solution to put "€" just after the number ? Thank you again. Best Regards.
I use :before
and :after
css selector to out currency's symbol. I.e.
<span class="eur odometer" id="eur_value"></span>
.eur:before {content: "\20AC\00A0";}
And then set value to span via textContent
Thanks again ! But where do I have to call on this class Euro cos I'm using this script ? I create the class and call it with : class="eur" but the class is not called Here is the file
�Finally, the class is now loaded but the price is placed under the Euro sign. I don't understand cos there is no breakline... The result is like that : € 180,250
I've add follow lines to the bottom of my odometer's theme file:
.odometer-inside {
display: inherit;
}
I'm not sure about correctness of this solution and you cat try replay display: block
in odometer's theme
Ok. Thank you ! Perfect ;-)
This request address issues #45 and #63 (as far as I understand this issues duplicate each other). Now it's possible to specify minimal length of fractional part using 'D' symbol. At the same time 'd' symbol used to specify maximal length as it works in current version.
Here some examples how format works. Assume that value is
1.23
:( ddd).d
became1.2
( ddd).D
became1.2
( ddd).ddd
became1.23
( ddd).DDD
became1.230
( ddd).Ddd
became1.23
( ddd).DDd
became1.23
( ddd).dD
will raise exceptionLook for live sample in
trailing-zero.html
file intest
folder