/app/public/js/libs/angular/docs/index.html
HTML | 339 lines | 280 code | 38 blank | 21 comment | 0 complexity | 4b15e152570697738951561b94df949a MD5 | raw file
1<!doctype html>
2<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 ng-app: docsApp;" lang="en" ng-controller="DocsController"> <![endif]-->
3<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ng-app: docsApp;" lang="en" ng-controller="DocsController"> <![endif]-->
4<!--[if IE 8]> <html class="no-js lt-ie9 ng-app: docsApp;" lang="en" ng-controller="DocsController"> <![endif]-->
5<!--[if gt IE 8]><!--> <html class="no-js ng-app: docsApp;" lang="en" ng-controller="DocsController"> <!--<![endif]-->
6<head>
7 <meta charset="utf-8">
8 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9 <meta name="Description"
10 content="AngularJS is what HTML would have been, had it been designed for building web-apps.
11 Declarative templates with data-binding, MVC, dependency injection and great
12 testability story all implemented with pure client-side JavaScript!">
13 <meta name="fragment" content="!">
14 <title ng-bind-template="AngularJS: {{partialTitle}}">AngularJS</title>
15 <script type="text/javascript">
16 // dynamically add base tag as well as css and javascript files.
17 // we can't add css/js the usual way, because some browsers (FF) eagerly prefetch resources
18 // before the base attribute is added, causing 404 and terribly slow loading of the docs app.
19 (function() {
20 var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
21 rUrl = /(#!\/|api|guide|misc|tutorial|cookbook|index[^\.]*\.html).*$/,
22 baseUrl = location.href.replace(rUrl, indexFile),
23 jQuery = /index-jq[^\.]*\.html$/.test(baseUrl),
24 debug = /index[^\.]*-debug\.html$/.test(baseUrl),
25 gae = (baseUrl.split('/').length == 4),
26 headEl = document.getElementsByTagName('head')[0],
27 sync = true,
28 angularVersion = {
29 current: '1.0.2', // rewrite during build
30 stable: '1.0.1'
31 };
32
33 addTag('base', {href: baseUrl});
34 addTag('link', {rel: 'stylesheet', href: 'css/bootstrap.min.css', type: 'text/css'});
35 addTag('link', {rel: 'stylesheet', href: 'css/font-awesome.css', type: 'text/css'});
36 addTag('link', {rel: 'stylesheet', href: 'css/docs.css', type: 'text/css'});
37 if (jQuery) addTag('script', {src: debug ? 'js/jquery.js' : 'js/jquery.min.js'});
38 addTag('script', {src: path('angular.js')}, sync);
39 addTag('script', {src: path('angular-resource.js') }, sync);
40 addTag('script', {src: path('angular-cookies.js') }, sync);
41 addTag('script', {src: path('angular-sanitize.js') }, sync);
42 addTag('script', {src: path('angular-bootstrap.js') }, sync);
43 addTag('script', {src: path('angular-bootstrap-prettify.js') }, sync);
44 addTag('script', {src: 'js/docs.js'}, sync);
45 addTag('script', {src: 'docs-keywords.js'}, sync);
46
47 function path(name) {
48 if (gae) {
49 if (name.match(/^angular(-\w+)?\.js/) && !name.match(/bootstrap/)) {
50 name = '//ajax.googleapis.com/ajax/libs/angularjs/' +
51 angularVersion.stable +
52 '/' +
53 name.replace(/\.js$/, '.min.js');
54 } else {
55 name = 'http://code.angularjs.org/' +
56 angularVersion.stable +
57 '/' +
58 name.replace(/\.js$/, '-' + angularVersion.stable +'.min.js');
59 }
60 return name;
61 }
62 return '../' + name.replace(/\.js$/, debug ? '.js' : '.min.js');
63 }
64
65 function addTag(name, attributes, sync) {
66 var el = document.createElement(name),
67 attrName;
68
69 for (attrName in attributes) {
70 el.setAttribute(attrName, attributes[attrName]);
71 }
72
73 sync ? document.write(outerHTML(el)) : headEl.appendChild(el);
74 }
75
76 function outerHTML(node){
77 // if IE, Chrome take the internal method otherwise build one
78 return node.outerHTML || (
79 function(n){
80 var div = document.createElement('div'), h;
81 div.appendChild(n);
82 h = div.innerHTML;
83 div = null;
84 return h;
85 })(node);
86 }
87 })();
88
89
90 // force page reload when new update is available
91 window.applicationCache && window.applicationCache.addEventListener('updateready', function(e) {
92 if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
93 window.applicationCache.swapCache();
94 window.location.reload();
95 }
96 }, false);
97
98
99 // GA asynchronous tracker
100 var _gaq = _gaq || [];
101 _gaq.push(['_setAccount', 'UA-8594346-3']);
102 _gaq.push(['_setDomainName', '.angularjs.org']);
103
104 (function() {
105 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
106 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
107 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
108 })();
109 </script>
110</head>
111
112<body>
113 <header class="header">
114 <div class="navbar navbar-fixed-top">
115 <div class="navbar-inner">
116 <div class="container">
117 <a class="brand" href="http://angularjs.org" style="padding-top: 6px; padding-bottom: 0px;">
118 <img class="AngularJS-small" src="http://angularjs.org/img/AngularJS-small.png">
119 </a>
120 <ul class="nav">
121 <li class="divider-vertical"></li>
122 <li><a href="http://angularjs.org"><i class="icon-home icon-white"></i> Home</a></li>
123 <li class="divider-vertical"></li>
124 <li class="dropdown">
125 <a href="" class="dropdown-toggle" data-toggle="dropdown">
126 <i class="icon-eye-open icon-white"></i> Learn <b class="caret"></b>
127 </a>
128 <ul class="dropdown-menu">
129 <li class="disabled"><a href="">Why AngularJS?</a></li>
130 <li><a href="http://www.youtube.com/user/angularjs">Watch</a></li>
131 <li><a href="tutorial">Tutorial</a></li>
132 <li><a href="https://github.com/angular/angular.js/wiki/Projects-using-AngularJS">Case Studies</a></li>
133 <li><a href="misc/faq">FAQ</a></li>
134 </ul>
135 </li>
136 <li class="divider-vertical"></li>
137 <li class="dropdown active">
138 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
139 <i class="icon-book icon-white"></i> Develop <b class="caret"></b>
140 </a>
141 <ul class="dropdown-menu">
142 <li><a href="tutorial">Tutorial</a></li>
143 <li><a href="guide/">Developer Guide</a></li>
144 <li><a href="api/">API Reference</a></li>
145 <li><a href="misc/contribute">Contribute</a></li>
146 <li><a href="http://code.angularjs.org/">Download</a></li>
147 </ul>
148 </li>
149 <li class="divider-vertical"></li>
150 <li class="dropdown">
151 <a href="" class="dropdown-toggle" data-toggle="dropdown">
152 <i class="icon-comment icon-white"></i> Discuss <b class="caret"></b>
153 </a>
154 <ul class="dropdown-menu">
155 <li><a href="http://groups.google.com/group/angular">Mailing List</a></li>
156 <li><a href="http://webchat.freenode.net/?channels=angularjs&uio=d4">Chat Room</a></li>
157 <li class="divider"></li>
158 <li><a href="https://twitter.com/#!/angularjs">Twitter</a></li>
159 <li><a href="https://plus.google.com/110323587230527980117">Google+</a></li>
160 <li class="divider"></li>
161 <li><a href="https://github.com/angular/angular.js">GitHub</a></li>
162 <li><a href="https://github.com/angular/angular.js/issues">Issue Tracker</a></li>
163 </ul>
164 </li>
165 <li class="divider-vertical"></li>
166 </ul>
167 <form class="navbar-search pull-right" method="GET" action="https://www.google.com/search">
168 <input type="text" name="as_q" class="search-query" placeholder="Search">
169 <input type="hidden" name="as_sitesearch" value="angularjs.org">
170 </form>
171 </div>
172 </div>
173 </div>
174 </header>
175
176 <div role="main" class="container">
177 <div class="row clear-navbar"></div>
178
179 <div class="row">
180 <div class="span12">
181 <!--[if lt IE 7]>
182 <p class="alert alert-error">Your browser is <em>ancient!</em>
183 <a href="http://browsehappy.com/">Upgrade to a different browser</a> or
184 <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to
185 experience this site.
186 </p>
187 <![endif]-->
188
189 <!--[if lt IE 9]>
190 <div class="alert">
191 You are using an old version of Internet Explorer.
192 For better and safer browsing experience please <a href="http://www.microsoft.com/IE9">upgrade IE</a>
193 or install <a href="http://google.com/chrome">Google Chrome browser</a>.
194 </div>
195 <![endif]-->
196 </div>
197
198 </div>
199
200 <div class="row">
201 <div class="span3">
202 <form class="well form-search" ng-submit="submitForm()">
203 <div class="dropdown search"
204 ng-class="{open: focused && bestMatch.rank > 0 && bestMatch.page != currentPage}">
205 <input type="text" ng-model="search" placeholder="search the docs"
206 tabindex="1" accesskey="s" class="input-medium search-query" focused="focused">
207 <ul class="dropdown-menu">
208 <li>
209 <a href="{{bestMatch.page.url}}">{{bestMatch.page.shortName}}</a>
210 </li>
211 </ul>
212 </div>
213
214 <div class="spacer"></div>
215 <div ng-show="search">Filtered results:</div>
216
217 <ul class="nav nav-list" ng-hide="page">
218 <li ng-repeat="page in pages" ng-class="navClass(page)">
219 <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
220 </li>
221 </ul>
222
223
224 <ul class="nav nav-list well" ng-repeat="module in modules">
225 <li class="nav-header module">
226 <a class="guide" href="{{URL.module}}">module</a>
227 <a class="code" href="{{module.url}}">{{module.name}}</a>
228 </li>
229
230 <li class="nav-header section" ng-show="module.directives">
231 <a href="{{URL.directive}}" class="guide">directive</a>
232 </li>
233 <li ng-repeat="page in module.directives" ng-class="navClass(page)">
234 <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
235 </li>
236
237 <li class="nav-header section" ng-show="module.filters">
238 <a href="{{URL.filter}}" class="guide">filter</a>
239 </li>
240 <li ng-repeat="page in module.filters" ng-class="navClass(page)">
241 <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
242 </li>
243
244 <li class="nav-header section" ng-show="module.services">
245 <a href="{{URL.service}}" class="guide">service</a>
246 </li>
247 <li ng-repeat="service in module.services" ng-class="navClass(service.instance, service.provider)">
248 <a ng-show="service.provider" class="pull-right" href="{{service.provider.url}}" tabindex="2"><i class="icon-cog"></i></a>
249 <a href="{{service.instance.url}}" tabindex="2">{{service.name}}</a>
250 </li>
251
252 <li class="nav-header section" ng-show="module.types">
253 <a href="{{URL.type}}" class="guide">Types</a>
254 </li>
255 <li ng-repeat="page in module.types" ng-class="navClass(page)">
256 <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
257 </li>
258
259 <li class="nav-header section" ng-show="module.globals">
260 <a href="{{URL.api}}" class="global guide">global APIs</a>
261
262 </li>
263 <li ng-repeat="page in module.globals" ng-class="navClass(page)">
264 <a href="{{page.url}}" tabindex="2">{{page.id}}</a>
265 </li>
266
267 </ul>
268
269 </form>
270 </div>
271 <div class="span9">
272
273 <ul class="breadcrumb">
274 <li ng-repeat="crumb in breadcrumb">
275 <span ng-hide="crumb.url">{{crumb.name}}</span>
276 <a ng-show="crumb.url" href="{{crumb.url}}">{{crumb.name}}</a>
277 <span ng-show="crumb.url" class="divider">/</span>
278 </li>
279 </ul>
280
281 <div id="loading" ng-show="loading">Loading...</div>
282
283 <div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content"></div>
284
285 <div id="disqus" class="disqus">
286 <h2>Discussion</h2>
287 <div id="disqus_thread" class="content-panel-content"></div>
288 </div>
289 </div>
290 </div>
291 </div>
292
293
294
295 <div id="fader" ng-show="subpage" style="display: none"></div>
296 <div id="subpage" ng-show="subpage" style="display: none">
297 <div>
298 <h2>Would you like full offline support for this AngularJS Docs App?</h2>
299 <a ng-click="subpage=false">✕</a>
300 <p>
301 If you want to be able to access the entire AngularJS documentation offline, click the
302 button below. This will reload the current page and trigger background downloads of all the
303 necessary files (approximately 3.5MB). The next time you load the docs, the browser will
304 use these cached files.
305 <br><br>
306 This feature is supported on all modern browsers, except for IE9 which lacks application
307 cache support.
308 </p>
309 <button id="cacheButton" ng-click="enableOffline()">Let me have them all!</button>
310 </div>
311 </div>
312
313 <footer class="footer">
314 <div class="container">
315 <p class="pull-right"><a href="#">Back to top</a></p>
316
317 <p>
318 Super-powered by Google 2010-2012
319 ( <a id="version"
320 ng-href="https://github.com/angular/angular.js/blob/master/CHANGELOG.md#{{versionNumber}}"
321 ng-bind-template="v{{version}}">
322 </a>
323 <!-- TODO(i): enable
324 <a ng-hide="offlineEnabled" ng-click ="subpage = true">(enable offline support)</a>
325 <span ng-show="offlineEnabled">(offline support enabled)</span>
326 -->
327 )
328 </p>
329 <p>
330 Code licensed under the
331 <a href="https://github.com/angular/angular.js/blob/master/LICENSE" target="_blank">The
332 MIT License</a>. Documentation licensed under <a
333 href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
334 </p>
335 </div>
336 </footer>
337
338</body>
339</html>