/app/public/js/libs/angular/docs/index.html

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