-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tmpl
183 lines (174 loc) · 5.77 KB
/
index.tmpl
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" />
<meta name="generator" content="JsDoc Toolkit" />
<title>{!
if (JSDOC.opt.D.project) {
output += JSDOC.opt.D.project;
} else {
output += "jsDoc";
}
!} Reference</title>
<!-- Le styles -->
<style type="text/css">
{+include("css/bootstrap.min.swatch.css")+}
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
{+include("css/bootstrap-responsive.css")+}
.attributes {
width: 100px;
}
.light {
font-weight: 200;
font-style: italic;
}
.dropdown-menu {
max-height: 500px;
overflow-y: auto;
overflow-x: hidden;
}
{+include("css/rainbow.css")+}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">
{!
if (JSDOC.opt.D.project) {
output += JSDOC.opt.D.project;
} else {
output += "jsDoc";
}
!}
</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="index.html">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
<ul class="dropdown-menu">
{!
output += publish.classesIndex;
!}
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Files<b class="caret"></b></a>
<ul class="dropdown-menu">
{!
output += publish.filesIndex;
!}
</ul>
</li>
</ul>
<form class="navbar-search pull-right">
<input name="q" type="text" class="search-query" placeholder="Search">
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container" id="docbody">
<div class="hero-unit">
<h1>documentation</h1>
<p>generated by jsDoc-toolkit</p>
</div>
</div> <!-- /container -->
<div class="container">
<!-- jsDoc footer -->
<div class="fineprint" style="clear:both">
<if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+} </if>
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+} using <a href="https://github.com/Armen138/BootDoc">BootDoc</a>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script>
{+include("js/jquery.min.js")+}
{+include("js/bootstrap.min.js")+}
{+include("js/rainbow.min.js")+}
var classList = JSON.parse("{+publish.classesObject+}");
function updateLocation(className) {
var loc = window.location.toString();
loc = loc.split('#')[0];
if(loc.indexOf('?') !== -1) {
loc = loc.split('?')[0];
}
loc += "#!" + className;
window.location = loc;
}
function loadHashInfo() {
var locationDetails = window.location.toString().split('#!')[1];
if(locationDetails) {
var locationComponents = locationDetails.split('#'),
locationFile = locationComponents[0],
locationHashtag = locationComponents[1] || "",
file = "symbols/" + locationFile + ".html#" + locationHashtag;
loadPage(file);
}
}
function loadPage(href) {
var findClass = /symbols.(.*).html/,
matches = href.match(findClass),//findClass.exec(href);
className = matches ? matches[1] : "";
updateLocation(className);
$("#docbody").load(href, function() {
//$('.popinheritance a').popover({title: $(this).html(), content: "le loading"} );
$('.popinheritance a').each(function() {
var popTarget = $(this);
$.get($(this).attr("href"), function(data) {
var doc = $(data).find("#" + popTarget.html());
var title = doc.find(".title").detach();
popTarget.popover({title: title.html(), content: doc.html() });
}, "html");
});
Rainbow.color();
});
}
$('.popinheritance a').live("click", function(event) {
event.preventDefault();
$(this).popover("toggle");
});
$("a").live("click", function(event) {
if($(this).attr("href").indexOf("symbols") !== -1) {
event.preventDefault();
loadPage($(this).attr("href"));
}
});
$(window).bind("hashchange", function() {
loadHashInfo();
});
if(window.location.toString().indexOf('?q=') !== -1) {
var searchclass = window.location.toString().split('?q=')[1].replace("+", " "),
file = "symbols/" + searchclass + ".html";
loadPage(file);
} else {
loadHashInfo();
}
$('.search-query').typeahead({source: classList});
</script>
</body>
</html>