index.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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="Angular Timeline: {{partialTitle}}">Docs</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. origin, baseUrl, rUrl = /(\/?#!\/.*|\/(api)\/?(\?.*)*|\/index[^\.]*\.html.*)$/,
  22. headEl = document.getElementsByTagName('head')[0],
  23. sync = true;
  24. if (location.href.slice(0, 7) == 'file://') {
  25. baseUrl = location.href.replace(rUrl, '/' + indexFile);
  26. } else {
  27. origin = location.origin || (window.location.protocol + "//" + window.location.hostname +
  28. (window.location.port ? ':' + window.location.port: ''));
  29. baseUrl = origin + location.href.substr(origin.length).replace(rUrl, '/' + indexFile);
  30. }
  31. addTag('base', {href: baseUrl});
  32. addTag('link', {rel: 'stylesheet', href: 'css/bootstrap.min.css', type: 'text/css'});
  33. addTag('link', {rel: 'stylesheet', href: 'css/font-awesome.css', type: 'text/css'});
  34. addTag('link', {rel: 'stylesheet', href: 'css/prettify.css', type: 'text/css'});
  35. addTag('link', {rel: 'stylesheet', href: 'css/docs.css', type: 'text/css'});
  36. addTag('link', {rel: 'stylesheet', href: 'css/animations.css', type: 'text/css'});
  37. addTag('script', {src: 'js/google-code-prettify.js'}, sync);
  38. addTag('script', {src: 'js/marked.js'}, sync);
  39. addTag('script', {src: 'js/angular.min.js'}, sync);
  40. addTag('script', {src: 'js/angular-bootstrap.js'}, sync);
  41. addTag('script', {src: 'js/angular-bootstrap-prettify.js'}, sync);
  42. addTag('script', {src: 'js/docs-setup.js'}, sync);
  43. addTag('script', {src: 'js/docs.js'}, sync);
  44. function addTag(name, attributes, sync) {
  45. var el = document.createElement(name),
  46. attrName;
  47. for (attrName in attributes) {
  48. el.setAttribute(attrName, attributes[attrName]);
  49. }
  50. sync ? document.write(outerHTML(el)) : headEl.appendChild(el);
  51. }
  52. function outerHTML(node){
  53. // if IE, Chrome take the internal method otherwise build one
  54. return node.outerHTML || (
  55. function(n){
  56. var div = document.createElement('div'), h;
  57. div.appendChild(n);
  58. h = div.innerHTML;
  59. div = null;
  60. return h;
  61. })(node);
  62. }
  63. })();
  64. </script>
  65. </head>
  66. <body>
  67. <header class="header">
  68. <div class="navbar navbar-fixed-top">
  69. <div class="navbar-inner">
  70. <div class="container">
  71. <a class="brand">Angular Timeline</a>
  72. <ul class="nav">
  73. <li ng-repeat="(url, name) in sections" ng-class="{active: isActivePath(url)}">
  74. <a ng-href="{{url}}"><i class="icon-book icon-white"></i> {{name}}</a>
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. </div>
  80. </header>
  81. <div role="main" class="container">
  82. <div class="row clear-navbar"></div>
  83. <div class="row">
  84. <div class="span12">
  85. <!--[if lt IE 7]>
  86. <p class="alert alert-error">Your browser is <em>ancient!</em>
  87. <a href="http://browsehappy.com/">Upgrade to a different browser</a> or
  88. <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to
  89. experience this site.
  90. </p>
  91. <![endif]-->
  92. <!--[if lt IE 9]>
  93. <div class="alert">
  94. You are using an old version of Internet Explorer.
  95. For better and safer browsing experience please <a href="http://www.microsoft.com/IE9">upgrade IE</a>
  96. or install <a href="http://google.com/chrome">Google Chrome browser</a>.
  97. </div>
  98. <![endif]-->
  99. </div>
  100. </div>
  101. <div class="row">
  102. <div class="span3">
  103. <form class="form-search" ng-submit="submitForm()">
  104. <input type="text" ng-model="search" placeholder="search the docs"
  105. tabindex="1" accesskey="s" class="search-query">
  106. <div class="spacer"></div>
  107. <ul class="nav nav-list well" ng-show="pages.length">
  108. <li ng-repeat="page in pages track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  109. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  110. </li>
  111. </ul>
  112. <ul class="nav nav-list well" ng-repeat="module in modules track by module.url" class="api-list-item">
  113. <li class="nav-header module">
  114. <a class="guide">module</a>
  115. <a class="code" href="{{module.url}}" title="{{module.name}}">{{module.name}}</a>
  116. </li>
  117. <li ng-repeat="page in module.others track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  118. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  119. </li>
  120. <li class="nav-header section" ng-show="module.directives.length">
  121. <a class="guide">directive</a>
  122. </li>
  123. <li ng-repeat="page in module.directives track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  124. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  125. </li>
  126. <li class="nav-header section" ng-show="module.controllers.length">
  127. <a class="guide">controller</a>
  128. </li>
  129. <li ng-repeat="page in module.controllers track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  130. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  131. </li>
  132. <li class="nav-header section" ng-show="module.filters.length">
  133. <a class="guide">filter</a>
  134. </li>
  135. <li ng-repeat="page in module.filters track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  136. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  137. </li>
  138. <li class="nav-header section" ng-show="module.services.length">
  139. <a class="guide">service</a>
  140. </li>
  141. <li ng-repeat="service in module.services track by (service.instance.url || service.provider.url)" ng-class="navClass(service.instance, service.provider)" class="api-list-item expand">
  142. <a ng-show="service.provider" class="pull-right" href="{{service.provider.url}}" tabindex="2"><i class="icon-cog"></i></a>
  143. <a href="{{service.instance ? service.instance.url : service.provider.url}}" tabindex="2">{{service.name}}</a>
  144. </li>
  145. <li class="nav-header section" ng-show="module.types.length">
  146. <a class="guide">Types</a>
  147. </li>
  148. <li ng-repeat="page in module.types track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  149. <a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
  150. </li>
  151. <li class="nav-header section" ng-show="module.globals.length">
  152. <a class="global guide">global APIs</a>
  153. &nbsp;
  154. </li>
  155. <li ng-repeat="page in module.globals track by page.url" ng-class="navClass(page)" class="api-list-item expand">
  156. <a href="{{page.url}}" tabindex="2">{{page.id}}</a>
  157. </li>
  158. </ul>
  159. </form>
  160. </div>
  161. <div class="span9">
  162. <ul class="breadcrumb">
  163. <li ng-repeat="crumb in breadcrumb">
  164. <span ng-hide="crumb.url">{{crumb.name}}</span>
  165. <a ng-show="crumb.url" href="{{crumb.url}}">{{crumb.name}}</a>
  166. <span ng-show="crumb.url" class="divider">/</span>
  167. </li>
  168. </ul>
  169. <div id="loading" ng-show="loading">Loading...</div>
  170. <div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content slide-reveal"></div>
  171. </div>
  172. </div>
  173. </div>
  174. </body>
  175. </html>