|
75 | 75 | <a class="brand" href="#">Angular Timer</a>
|
76 | 76 | <div class="nav-collapse collapse">
|
77 | 77 | <ul class="nav">
|
78 |
| - <!--<li class="active"><a href="#introduction">Home</a></li>--> |
79 | 78 | <li class="dropdown">
|
80 | 79 | <a href="#" class="dropdown-toggle" data-toggle="dropdown">Examples <b class="caret"></b></a>
|
81 | 80 | <ul class="dropdown-menu">
|
82 | 81 | <li><a href="index.html#basic-timer">Basic Example</a></li>
|
83 |
| - <li><a href="index.html#clock-timer">Clock timer</a></li> |
| 82 | + <li><a href="index.html#clock-timer">Clock Timer</a></li> |
84 | 83 | <li><a href="index.html#progressbar-timer">Progressbar Timer</a></li>
|
85 | 84 | </ul>
|
86 | 85 | </li>
|
87 |
| - <li><a href="#introduction">Markup</a></li> |
| 86 | + <li ng-non-bindable><a href="index.html#markup"><timer/></a></li> |
88 | 87 | <li class="dropdown">
|
89 | 88 | <a href="#" class="dropdown-toggle" data-toggle="dropdown">Usage <b class="caret"></b></a>
|
90 | 89 | <ul class="dropdown-menu">
|
@@ -143,6 +142,22 @@ <h3><timer><div class="progress progress-striped active">
|
143 | 142 | </div>
|
144 | 143 | </section>
|
145 | 144 |
|
| 145 | + <section id="markup"> |
| 146 | + <h3>Markup</h3> |
| 147 | + <div class="bs-docs-example"> |
| 148 | + <p>Timer directive along with <a target="_new" href="http://twitter.github.io/bootstrap/components.html#progress">Twitter Bootstrap's Progressbar</a> will set the timer on Progressbar control.</p> |
| 149 | + <code ng-non-bindable><timer interval="1000"><div class="progress progress-striped active"> |
| 150 | + <div class="bar" style="width: {{seconds}}%;"></div> |
| 151 | + </div></timer> |
| 152 | + </code> |
| 153 | + <h3><timer><div class="progress progress-striped active"> |
| 154 | + <div class="bar" style="width: {{seconds}}%;"></div> |
| 155 | + </div></timer></h3> |
| 156 | + <button type="button" class="btn" onclick="startTimer('progressbar-timer')">Start</button> |
| 157 | + <button type="button" class="btn" onclick="stopTimer('progressbar-timer')">Stop</button> |
| 158 | + </div> |
| 159 | + </section> |
| 160 | + |
146 | 161 | <h3>Examples</h3>
|
147 | 162 | <section id="angularjs-example">
|
148 | 163 | <h4>Using timer directive from Angular</h4>
|
|
0 commit comments