aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.html
blob: 4939dc9cea07e70a73d0d505a04e553979b96c17 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org/" xmlns:doc="http://docs.angularjs.org/">
<head>
  <title>&lt;Angular/&gt; Docs</title>
  <link rel="stylesheet" href="wiki_widgets.css" type="text/css" media="screen">
  <link rel="stylesheet" href="doc_widgets.css" type="text/css" media="screen" />
  <link rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" type="text/css" media="screen" />
  <link rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" type="text/css" media="screen" />
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  <script type="text/javascript" src="../angular.min.js" ng:autobind></script>
  <script type="text/javascript" src="doc_widgets.js"></script>
  <script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"></script>
  <script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js"></script>
  <script type="text/javascript" src="docs-data.js"></script>
  <script type="text/javascript">
    SyntaxHighlighter['defaults'].toolbar = false;

    DocsController.$inject = ['$location']
  	function DocsController($location) {
  	  this.docs = NG_DOC;
  	  window.$root = this.$root;

  	  this.getUrl = function(page){
  	    return '#' + encodeURIComponent(page.name);
  	  };

  	  this.getTitle = function() {
        if ($location.hashPath.match(/^angular\./)) {
          return $location.hashPath;
        }
        return '';
	    };

  	  this.getCurrentPartial = function(){
  	    if ($location.hashPath.match(/^angular\./)) {
  	      this.partialUrl = './' + $location.hashPath + '.html';
  	    }
  	    return this.partialUrl;
  	  };
  	}
  </script>
  <style type="text/css" media="screen">
    body {
      font-family: Arial, sans-serif;
      font-size: 14px;
      margin: 0;
      padding: 0;
    }

    #sidebar {
      width: 15em;
      float: left;
    }

    #header {
      background-color: #F2C200;
      margin-bottom: 1em;
    }

    #header h1 {
      font-weight: normal;
      font-size: 30px;
      line-height: 30px;
      margin: 0;
      padding: 10px 10px;
      height: 30px;
    }

    #header .angular {
      font-family: Courier New, monospace;
      font-weight: bold;
    }

    #header h1 a {
      color: black;
      text-decoration: none;
    }

    #header h1 a:hover {
      text-decoration: underline;
    }

    #section {
      position: absolute;
      z-index: -1;
      width: 100%;
    }

    #section ng\:include {
      margin: 0 1em 1em 15em;
      display: block;
    }

    #section h1 {
      font-family: monospace;
      margin-top: 0;
    }

    #sidebar h2 {
      font-size: 1.2em;
      margin: 5px 5px 5px 0.8em;
    }

    #sidebar ul {
      list-style-type: none;
      /*TODO(esprehn): Can we just reset globally and not break examples?*/
      margin: 0;
      padding: 0;
    }

    #sidebar ul li {
      margin: 0;
      padding: 1px 1px 1px 1.5em;
    }

    .nav-section {
      margin-left: 1em;
      margin-top: 0.5em;
    }
    
    .section-title {
      float: right;
    }
  </style>
</head>
<body ng:controller="DocsController">
  <div id="header">
    <h1>
      <span class="section-title">{{getTitle()}}</span>
      <a href="index.html"><span class="angular">&lt;angular/&gt;</span> Docs</a>
    </h1>
  </div>
  <div id="sidebar" class="nav">
    <div ng:repeat="(name, type) in docs.section" class="nav-section">
      <h2>{{name}}</h2>
      <ul>
        <li ng:repeat="page in type">
          <a href="{{getUrl(page)}}" ng:click="">{{page.shortName}}</a>
        </li>
      </ul>
    </div>
  </div>
  <div id="section">
    <ng:include src="getCurrentPartial()"></ng:include>
  </div>
</body>
</html>