forked from sofa/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (142 loc) · 7.55 KB
/
index.html
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
148
149
150
151
152
153
154
155
156
157
158
<!doctype html>
<html lang="en" ng-app="docsApp" ng-controller="DocsController">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Description" content="">
<meta name="fragment" content="!">
<title ng-bind-template="Sofa.io {{ currentArea.name }}: {{ currentPage.name || 'Error: Page not found'}}">Sofa.io</title>
<link href='http://fonts.googleapis.com/css?family=Bitter:400,700,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,400italic,600italic,700italic' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
// dynamically add base tag as well as css and javascript files.
// we can't add css/js the usual way, because some browsers (FF) eagerly prefetch resources
// before the base attribute is added, causing 404 and terribly slow loading of the docs app.
(function() {
var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
rUrl = /(#!\/|api|guide|misc|tutorial|error|index[^\.]*\.html).*$/,
baseUrl = location.href.replace(rUrl, indexFile),
headEl = document.getElementsByTagName('head')[0],
sync = true;
addTag('base', {href: baseUrl});
addTag('link', {rel: 'stylesheet', href: 'components/bootstrap-3.2.0/css/bootstrap.css', type: 'text/css'});
addTag('link', {rel: 'stylesheet', href: 'css/docs.css', type: 'text/css'});
addTag('script', {src: 'components/lunr.js-0.5.2/lunr.js' }, sync);
addTag('script', {src: 'components/angular-1.2.16/angular.js' }, sync);
addTag('script', {src: 'components/angular-route-1.2.16/angular-route.js' }, sync);
addTag('script', {src: 'components/angular-cookies-1.2.16/angular-cookies.js' }, sync);
addTag('script', {src: 'js/versions-data.js' }, sync);
addTag('script', {src: 'js/pages-data.js' }, sync);
addTag('script', {src: 'js/docs.js' }, sync);
function addTag(name, attributes, sync) {
var el = document.createElement(name),
attrName;
for (attrName in attributes) {
el.setAttribute(attrName, attributes[attrName]);
}
sync ? document.write(outerHTML(el)) : headEl.appendChild(el);
}
function outerHTML(node){
// if IE, Chrome take the internal method otherwise build one
return node.outerHTML || (
function(n){
var div = document.createElement('div'), h;
div.appendChild(n);
h = div.innerHTML;
div = null;
return h;
})(node);
}
})();
// 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);
// GA asynchronous tracker
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8594346-3']);
_gaq.push(['_setDomainName', '.sofa.io']);
(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);
})();
</script>
</head>
<body>
<!-- <div class="header"> -->
<!-- <div class="container-fluid"> -->
<!-- <a href="http://sofa.io" title="Sofa.io"><img width="180" alt="Sofa Icon" class="sofa-header-icon" src="img/sofa-logo.jpg"></a> -->
<!-- <ul class="nav nav-pills pull-right"> -->
<!-- <li><a href="http://sofa.io/docs" title="Sofa API Documentation"><i class="fa fa-code"></i> API Reference</a></li> -->
<!-- <li><a href="http://github.com/sofa" title="Sofa on GitHub"><i class="fa fa-github"></i> View on GitHub</a></li> -->
<!-- </ul> -->
<!-- </div> -->
<!-- </div> -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-3 sidebar">
<img alt="Sofa Icon" class="sofa-logo" src="img/sofa-logo-white.png">
<!-- <div ng-controller="DocsSearchCtrl"> -->
<!-- <form ng-class="{focus:focus}" ng-submit="submit()"> -->
<!-- <input type="text" -->
<!-- name="as_q" -->
<!-- class="search-query" -->
<!-- placeholder="Click or press / to search" -->
<!-- ng-focus="focus=true" -->
<!-- ng-blur="focus=false" -->
<!-- ng-change="search(q)" -->
<!-- ng-model="q" -->
<!-- docs-search-input -->
<!-- autocomplete="off" /> -->
<!-- </form> -->
<!-- <ul> -->
<!-- <li ng-repeat="(key, value) in results"> -->
<!-- {{ key }} -->
<!-- <ul> -->
<!-- <li ng-repeat="item in value"> -->
<!-- <a ng-click="hideResults()" ng-href="#!/{{ item.path }}">{{ item.name }}</a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </div> -->
<ul class="nav-list">
<li class="nav-group" ng-repeat="navGroup in currentArea.navGroups track by navGroup.name">
<!-- <span class="nav-group-title">{{ navGroup.name }}</span> -->
<ul>
<li class="component-group" ng-repeat="componentGroup in navGroup.components track by componentGroup.name">
<span class="component-group-title">{{ componentGroup.name }}</span>
<ul class="component-list">
<li class="component-list-item" ng-repeat="component in componentGroup.components">
<a href="#!/{{ component.href }}">{{ component.name }}</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="col-md-9 main">
<!-- <ul class="breadcrumbs"> -->
<!-- <li class="breadcrumb-item" ng-repeat="crumb in breadcrumb"> -->
<!-- <a ng-href="{{crumb.url}}">{{crumb.name}}</a> -->
<!-- </li> -->
<!-- </ul> -->
<div ng-include="currentPage.outputPath || 'Error404.html'" onload="afterPartialLoaded()" autoscroll></div>
<footer>
<p>Built on a couch with <3 for the web by the <a href="http://couchcommerce.com">CouchCommerce</a> team.<br>
Code licensed under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU GENERAL PUBLIC LICENSE</a>.</p>
</footer>
</div>
</div>
</div>
</div>
</body>
</html>