Skip to content

Commit a07cba1

Browse files
Paul LeclercqPaul Leclercq
authored andcommitted
update readme and index.html
1 parent f7a571d commit a07cba1

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ With Bower install :
1212
* Install humanize-duration using [Bower](http://bower.io) - `bower install humanize-duration`
1313
* Install momentjs using [Bower](http://bower.io) - `bower install momentjs`
1414

15-
And include these scripts :
15+
And include these scripts in your webpage :
1616
* bower_components/momentjs/min/moment.min.js
1717
* bower_components/momentjs/min/locales.min.js
1818
* bower_components/humanize-duration/humanize-duration.js
1919

2020

2121
### Running locally
22-
Install all bower components - `bower install
22+
Install all bower components - `bower install`
2323
Using [Grunt](http://gruntjs.com/) type `grunt` from command line, the default task will open index.html page in your
2424
default browser
2525

index.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ <h3>
8585

8686
<div class="bs-docs-example">
8787
<p>
88-
This markup <code ng-non-bindable="">&lt;timer interval=&quot;1000&quot; language=&quot;fr&quot; &gt;{{fullUnit}}</code> will run the clock timer ticking every second
88+
This markup <code ng-non-bindable="">&lt;timer interval=&quot;1000&quot; language=&quot;fr&quot; &gt;{{yearUnit}}</code> will run the clock timer ticking every second.
89+
</p>
90+
<p>
91+
You can use a controller variable as the language attribut or a string. If a scope variable is used, the value will be watched, <strong>that is to say if your app language changes, the change will also affects the timer.</strong>
8992
</p>
9093
<p>
9194
Based on <a href="https://github.com/EvanHahn/HumanizeDuration.js">HumanizeDuration</a> with more than 16 languages available.
@@ -108,12 +111,12 @@ <h4>Second max unit time: <timer interval="1000" language="fr">{{secondUnit}}</t
108111

109112
<h3>Available units</h3>
110113
<ul>
111-
<li>secondUnit: 8 164 816 seconds</li>
112-
<li>minuteUnit: 136 089 minutes, 16 seconds</li>
113-
<li>hourUnit: 18 126 hours,9 minutes, 16 seconds</li>
114-
<li>dayUnit: 755 days, 6 hours, 9 minutes, 16 seconds</li>
115-
<li>monthUnit: 25 month, 5 days, 6 hours, 9 minutes, 16 seconds</li>
116-
<li>yearUnit : 2 years, 1 month, 5 days, 6 hours, 9 minutes, 16 seconds</li>
114+
<li><strong>secondUnit</strong>: 8 164 816 seconds</li>
115+
<li><strong>minuteUnit</strong>: 136 089 minutes, 16 seconds</li>
116+
<li><strong>hourUnit</strong>: 18 126 hours,9 minutes, 16 seconds</li>
117+
<li><strong>dayUnit</strong>: 755 days, 6 hours, 9 minutes, 16 seconds</li>
118+
<li><strong>monthUnit</strong>: 25 month, 5 days, 6 hours, 9 minutes, 16 seconds</li>
119+
<li><strong>yearUnit </strong>: 2 years, 1 month, 5 days, 6 hours, 9 minutes, 16 seconds</li>
117120
</ul>
118121
</div>
119122
</section>

0 commit comments

Comments
 (0)