|
24 | 24 | <header class="navbar navbar-fixed-top">
|
25 | 25 | <div class="navbar-inner">
|
26 | 26 | <div class="container">
|
27 |
| - <a class="brand" href="#">ui-bootstrap</a> |
| 27 | + <a class="brand" href="#">UI Bootstrap</a> |
28 | 28 | <div class="nav-collapse">
|
29 | 29 | <ul class="nav">
|
30 |
| - <% modules.forEach(function(module) { %> |
31 |
| - <li><a href="#<%= module.name %>"><%= module.displayName %></a></li> |
32 |
| - <% }); %> |
| 30 | + <li> |
| 31 | + <a href="#" role="button" class="dropdown-toggle"> |
| 32 | + Directives <b class="caret"></b> |
| 33 | + </a> |
| 34 | + <ul class="dropdown-menu"> |
| 35 | + <% modules.forEach(function(module) { %> |
| 36 | + <li><a href="#<%= module.name %>"><%= module.displayName %></a></li> |
| 37 | + <% }); %> |
| 38 | + </ul> |
| 39 | + </li> |
| 40 | + <li><a href="#getting_started">Getting started</a></li> |
33 | 41 | </ul>
|
34 | 42 | </div>
|
35 | 43 | </div>
|
@@ -101,6 +109,38 @@ <h1>
|
101 | 109 | </header>
|
102 | 110 |
|
103 | 111 | <div class="container container-fluid">
|
| 112 | + |
| 113 | + <section id="getting_started"> |
| 114 | + <div class="page-header"> |
| 115 | + <h1>Getting started</h1> |
| 116 | + </div> |
| 117 | + <div class="row-fluid"> |
| 118 | + <div class="span12"> |
| 119 | + <h3>Dependencies</h3> |
| 120 | + <p> |
| 121 | + This repository contains a set of <strong>native AngularJS directives</strong> based on |
| 122 | + Twitter Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's |
| 123 | + JavaScript is required. The <strong>only required dependencies</strong> are: |
| 124 | + </p> |
| 125 | + <ul> |
| 126 | + <li>AngularJS (minimal version 1.0.4 or 1.1.2)</li> |
| 127 | + <li>Bootstrap CSS</li> |
| 128 | + </ul> |
| 129 | + <h3>Files to download</h3> |
| 130 | + <p> |
| 131 | + Build files for all directives are distributed in several flavours: minified for production usage, un-minified |
| 132 | + for development, with or without templates. All the options are described and can be |
| 133 | + <a href="https://github.com/angular-ui/bootstrap/tree/gh-pages">downloaded from here</a>. |
| 134 | + </p> |
| 135 | + <p>Alternativelly, if you are only interested in a subset of directives, you can |
| 136 | + <a ng-click="showBuildModal()">create your own build</a>. |
| 137 | + </p> |
| 138 | + <p>Whichever method you choose the good news that the overall size of a download is very small: |
| 139 | + <20kB for all directives (~5kB with gzip compression!)</p> |
| 140 | + </div> |
| 141 | + </div> |
| 142 | + </section> |
| 143 | + |
104 | 144 | <% modules.forEach(function(module) { %>
|
105 | 145 | <section id="<%= module.name %>">
|
106 | 146 | <div class="page-header">
|
@@ -152,14 +192,14 @@ <h1><%= module.displayName %></h1>
|
152 | 192 | <h3 style="text-align: center;">{{buildErrorText}}</h3>
|
153 | 193 | </div>
|
154 | 194 | <div ng-hide="buildErrorText">
|
155 |
| - <h3 style="text-align: center;">Select the modules you wish to download:</h3> |
| 195 | + <label>Select the modules you wish to download: |
156 | 196 | <select style="width: 100%;" ui-select2 multiple
|
157 | 197 | ui-options="{multiple: true}"
|
158 | 198 | ng-model="selectedModules">
|
159 | 199 | <% modules.forEach(function(module) { %>
|
160 | 200 | <option value="<%= module.name %>"><%= module.displayName %></option>
|
161 | 201 | <% }); %>
|
162 |
| - </select> |
| 202 | + </select></label> |
163 | 203 | </div>
|
164 | 204 | </div>
|
165 | 205 | <div class="modal-footer">
|
|
0 commit comments