aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/index.html
blob: cdd04e1d77b03cfa976c3d5921828ae9c7ae42a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html xmlns:ng="http://angularjs.org/"
      xmlns:doc="http://docs.angularjs.org/"
      ng:controller="DocsController"
      manifest="app-cache.manifest">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title ng:bind-template="&lt;angular/&gt;: {{partialTitle}}">&lt;angular/&gt;</title>
  <meta name="fragment" content="!">
  <link rel="stylesheet" href="docs-combined.css" type="text/css"/>
  <link rel="stylesheet" href="syntaxhighlighter/syntaxhighlighter-combined.css" type="text/css"/>

  <script>
    // GA asynchronous tracker
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-8594346-3']);
    _gaq.push(['_setDomainName', '.angularjs.org']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    // force page reload when new update is available
    window.applicationCache && window.applicationCache.addEventListener('updateready', function(e) {
      if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
        window.applicationCache.swapCache();
        window.location.reload();
      }
    }, false);
  </script>
</head>

<body>
  <div id="container">

    <!--[if lt IE 9]>
      <div id="oldIePrompt">
        You are using an old version of Internet Explorer.
        For better and safer browsing experience please <a href="http://www.microsoft.com/IE9">upgrade IE</a>
        or install <a href="http://google.com/chrome">Google Chrome browser</a>.
      </div>
    <![endif]-->

    <ul id="navbar">
      <li><a href="http://angularjs.org/">&lt;angular/&gt;</a></li>
      <li><a href="#!/guide" ng:class="selectedSection('guide')">Developer Guide</a></li>
      <li><a href="#!/api" ng:class="selectedSection('api')">API Reference</a></li>
      <li><a href="#!/cookbook" ng:class="selectedSection('cookbook')">Examples</a></li>
      <li><a href="#!/misc/started" ng:class="selectedSection('misc')">Getting Started</a></li>
      <li><a href="#!/tutorial" ng:class="selectedSection('tutorial')">Tutorial</a></li>
    </ul>

    <div id="sidebar">
      <input type="text" name="search" id="search-box" placeholder="search the docs"
             tabindex="1" accesskey="s">

      <ul id="content-list">
        <li ng:repeat="page in pages.$filter(search)" ng:class="getClass(page)">
          <a href="{{getUrl(page)}}" ng:class="selectedPartial(page)"
             ng:bind="page.shortName"
             tabindex="2"></a>
        </li>
      </ul>
    </div>


    <div id="content-panel">
      <h2 ng:bind="partialTitle"></h2>
      <a id="feedback" ng:href="{{getFeedbackUrl()}}">Report an Issue or Ask a Question</a>
      <ng:include id="content" src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
    </div>

    <div id="footer">© 2010-2011 angular</div>
  </div>

  <script src="jquery.min.js"></script>
  <script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script>
  <script src="../angular.min.js" ng:autobind></script>
  <script src="docs-combined.js"></script>
  <script src="docs-keywords.js"></script>
</body>
</html>