Merge lp:~mhall119/ubuntu-html5-theme/add-docs-package into lp:ubuntu-html5-theme
- add-docs-package
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Alexandre Abreu |
Approved revision: | 203 |
Merged at revision: | 201 |
Proposed branch: | lp:~mhall119/ubuntu-html5-theme/add-docs-package |
Merge into: | lp:ubuntu-html5-theme |
Diff against target: |
12349 lines (+12009/-14) 55 files modified
0.1/ambiance/js/docsbuild/api.js (+57/-0) 0.1/ambiance/js/docsbuild/assets/css/main.css (+429/-0) 0.1/ambiance/js/docsbuild/assets/index.html (+10/-0) 0.1/ambiance/js/docsbuild/assets/js/api-filter.js (+80/-0) 0.1/ambiance/js/docsbuild/assets/js/api-list.js (+279/-0) 0.1/ambiance/js/docsbuild/assets/js/api-search.js (+126/-0) 0.1/ambiance/js/docsbuild/assets/js/apidocs.js (+398/-0) 0.1/ambiance/js/docsbuild/assets/js/tabs.js (+67/-0) 0.1/ambiance/js/docsbuild/assets/js/yui-prettify.js (+44/-0) 0.1/ambiance/js/docsbuild/assets/vendor/prettify/CHANGES.html (+130/-0) 0.1/ambiance/js/docsbuild/assets/vendor/prettify/COPYING (+202/-0) 0.1/ambiance/js/docsbuild/assets/vendor/prettify/README.html (+203/-0) 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.css (+1/-0) 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.js (+28/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Button.html (+170/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Dialog.html (+188/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Header.html (+171/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.List.html (+310/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.OptionSelector.html (+133/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Page.html (+248/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Pagestack.html (+265/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Popover.html (+210/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Progress.html (+157/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Shape.html (+169/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tab.html (+205/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tabs.html (+186/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Toolbar.html (+193/-0) 0.1/ambiance/js/docsbuild/classes/UbuntuUI.html (+491/-0) 0.1/ambiance/js/docsbuild/data.json (+1978/-0) 0.1/ambiance/js/docsbuild/files/buttons.js.html (+159/-0) 0.1/ambiance/js/docsbuild/files/core.js.html (+713/-0) 0.1/ambiance/js/docsbuild/files/dialogs.js.html (+175/-0) 0.1/ambiance/js/docsbuild/files/fast-buttons.js.html (+253/-0) 0.1/ambiance/js/docsbuild/files/header.js.html (+174/-0) 0.1/ambiance/js/docsbuild/files/list.js.html (+292/-0) 0.1/ambiance/js/docsbuild/files/option-selector.js.html (+303/-0) 0.1/ambiance/js/docsbuild/files/page.js.html (+329/-0) 0.1/ambiance/js/docsbuild/files/pagestacks.js.html (+305/-0) 0.1/ambiance/js/docsbuild/files/popovers.js.html (+331/-0) 0.1/ambiance/js/docsbuild/files/progress.js.html (+199/-0) 0.1/ambiance/js/docsbuild/files/shape.js.html (+160/-0) 0.1/ambiance/js/docsbuild/files/tab.js.html (+250/-0) 0.1/ambiance/js/docsbuild/files/tabs.js.html (+427/-0) 0.1/ambiance/js/docsbuild/files/toolbars.js.html (+420/-0) 0.1/ambiance/js/docsbuild/index.html (+132/-0) 0.1/ambiance/js/docsbuild/modules/UbuntuUI.html (+115/-0) 0.1/ambiance/js/fix_copyright_header.py (+60/-0) 0.1/ambiance/js/yuidoc-build.sh (+1/-1) 0.1/ambiance/js/yuidoc.json (+5/-5) debian/changelog (+10/-0) debian/control (+10/-0) debian/copyright (+46/-8) debian/rules (+3/-0) debian/ubuntu-html5-ui-toolkit-doc.docs (+1/-0) update-docs (+8/-0) |
To merge this branch: | bzr merge lp:~mhall119/ubuntu-html5-theme/add-docs-package |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Barth | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email: mp+255279@code.launchpad.net |
Commit message
Add -doc package, whose contents have to be generated locally (use the ./update-docs command) because not all of its node dependencies are in the archive. This is done, so we can more easily update developer.
Description of the change
This is based on dholbach's MP https:/
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:203
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Daniel Holbach (dholbach) wrote : | # |
Thanks for your great work on this, both Alex and Michael!
I took your work and pushed another small change in the hope of fixing the tests.
→ module "QtTest" is not installed
MP is up at https:/
David Barth (dbarth) : | # |
Preview Diff
1 | === added directory '0.1/ambiance/js/docsbuild' |
2 | === added file '0.1/ambiance/js/docsbuild/api.js' |
3 | --- 0.1/ambiance/js/docsbuild/api.js 1970-01-01 00:00:00 +0000 |
4 | +++ 0.1/ambiance/js/docsbuild/api.js 2015-04-07 17:56:01 +0000 |
5 | @@ -0,0 +1,57 @@ |
6 | + |
7 | +/* |
8 | + * Copyright 2011 Yahoo! Inc. |
9 | + * All rights reserved. |
10 | + * |
11 | + * Redistribution and use in source and binary forms, with or without |
12 | + * modification, are permitted provided that the following conditions are met: |
13 | + * * Redistributions of source code must retain the above copyright |
14 | + * notice, this list of conditions and the following disclaimer. |
15 | + * * Redistributions in binary form must reproduce the above copyright |
16 | + * notice, this list of conditions and the following disclaimer in the |
17 | + * documentation and/or other materials provided with the distribution. |
18 | + * * Neither the name of the Yahoo! Inc. nor the |
19 | + * names of its contributors may be used to endorse or promote products |
20 | + * derived from this software without specific prior written permission. |
21 | + * |
22 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
23 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
24 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
25 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
26 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
27 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
28 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
29 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
30 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
31 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
32 | + */ |
33 | + |
34 | +YUI.add("yuidoc-meta", function(Y) { |
35 | + Y.YUIDoc = { meta: { |
36 | + "classes": [ |
37 | + "UbuntuUI", |
38 | + "UbuntuUI.Button", |
39 | + "UbuntuUI.Dialog", |
40 | + "UbuntuUI.Header", |
41 | + "UbuntuUI.List", |
42 | + "UbuntuUI.OptionSelector", |
43 | + "UbuntuUI.Page", |
44 | + "UbuntuUI.Pagestack", |
45 | + "UbuntuUI.Popover", |
46 | + "UbuntuUI.Progress", |
47 | + "UbuntuUI.Shape", |
48 | + "UbuntuUI.Tab", |
49 | + "UbuntuUI.Tabs", |
50 | + "UbuntuUI.Toolbar" |
51 | + ], |
52 | + "modules": [ |
53 | + "UbuntuUI" |
54 | + ], |
55 | + "allModules": [ |
56 | + { |
57 | + "displayName": "UbuntuUI", |
58 | + "name": "UbuntuUI" |
59 | + } |
60 | + ] |
61 | +} }; |
62 | +}); |
63 | \ No newline at end of file |
64 | |
65 | === added directory '0.1/ambiance/js/docsbuild/assets' |
66 | === added directory '0.1/ambiance/js/docsbuild/assets/css' |
67 | === added file '0.1/ambiance/js/docsbuild/assets/css/external-small.png' |
68 | Binary files 0.1/ambiance/js/docsbuild/assets/css/external-small.png 1970-01-01 00:00:00 +0000 and 0.1/ambiance/js/docsbuild/assets/css/external-small.png 2015-04-07 17:56:01 +0000 differ |
69 | === added file '0.1/ambiance/js/docsbuild/assets/css/logo.png' |
70 | Binary files 0.1/ambiance/js/docsbuild/assets/css/logo.png 1970-01-01 00:00:00 +0000 and 0.1/ambiance/js/docsbuild/assets/css/logo.png 2015-04-07 17:56:01 +0000 differ |
71 | === added file '0.1/ambiance/js/docsbuild/assets/css/main.css' |
72 | --- 0.1/ambiance/js/docsbuild/assets/css/main.css 1970-01-01 00:00:00 +0000 |
73 | +++ 0.1/ambiance/js/docsbuild/assets/css/main.css 2015-04-07 17:56:01 +0000 |
74 | @@ -0,0 +1,429 @@ |
75 | +/* |
76 | +Font sizes for all selectors other than the body are given in percentages, |
77 | +with 100% equal to 13px. To calculate a font size percentage, multiply the |
78 | +desired size in pixels by 7.6923076923. |
79 | + |
80 | +Here's a quick lookup table: |
81 | + |
82 | +10px - 76.923% |
83 | +11px - 84.615% |
84 | +12px - 92.308% |
85 | +13px - 100% |
86 | +14px - 107.692% |
87 | +15px - 115.385% |
88 | +16px - 123.077% |
89 | +17px - 130.769% |
90 | +18px - 138.462% |
91 | +19px - 146.154% |
92 | +20px - 153.846% |
93 | +*/ |
94 | + |
95 | +html { |
96 | + background: #fff; |
97 | + color: #333; |
98 | + overflow-y: scroll; |
99 | +} |
100 | + |
101 | +body { |
102 | + font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; |
103 | + margin: 0; |
104 | + padding: 0; |
105 | +} |
106 | + |
107 | +/* -- Links ----------------------------------------------------------------- */ |
108 | +a { |
109 | + color: #DD4814; |
110 | + text-decoration: none; |
111 | +} |
112 | + |
113 | +a:hover { text-decoration: underline; } |
114 | + |
115 | +/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from |
116 | + sight until it's focused. */ |
117 | +.jump { |
118 | + position: absolute; |
119 | + padding: 3px 6px; |
120 | + left: -99999px; |
121 | + top: 0; |
122 | +} |
123 | + |
124 | +.jump:focus { left: 40%; } |
125 | + |
126 | +/* -- Paragraphs ------------------------------------------------------------ */ |
127 | +p { margin: 1.3em 0; } |
128 | +dd p, td p { margin-bottom: 0; } |
129 | +dd p:first-child, td p:first-child { margin-top: 0; } |
130 | + |
131 | +/* -- Headings -------------------------------------------------------------- */ |
132 | +h1, h2, h3, h4, h5, h6 { |
133 | + color: #DD4814 |
134 | + font-family: 'Ubuntu', sans-serif; |
135 | + font-weight: bold; |
136 | + line-height: 1.1; |
137 | + margin: 1.1em 0 0.5em; |
138 | +} |
139 | + |
140 | +h1 { |
141 | + font-size: 184.6%; |
142 | + color: #30418C; |
143 | + margin: 0.75em 0 0.5em; |
144 | +} |
145 | + |
146 | +h2 { |
147 | + font-size: 153.846%; |
148 | + color: #E48A2B; |
149 | +} |
150 | + |
151 | +h3 { font-size: 138.462%; } |
152 | + |
153 | +h4 { |
154 | + border-bottom: 1px solid #DBDFEA; |
155 | + color: #E48A2B; |
156 | + font-size: 115.385%; |
157 | + font-weight: normal; |
158 | + padding-bottom: 2px; |
159 | +} |
160 | + |
161 | +h5, h6 { font-size: 107.692%; } |
162 | + |
163 | +/* -- Code and examples ----------------------------------------------------- */ |
164 | +code, kbd, pre, samp { |
165 | + font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; |
166 | + font-size: 92.308%; |
167 | + line-height: 1.35; |
168 | +} |
169 | + |
170 | +p code, p kbd, p samp { |
171 | + background: #FCFBFA; |
172 | + border: 1px solid #EFEEED; |
173 | + padding: 0 3px; |
174 | +} |
175 | + |
176 | +a code, a kbd, a samp, |
177 | +pre code, pre kbd, pre samp, |
178 | +table code, table kbd, table samp, |
179 | +.intro code, .intro kbd, .intro samp, |
180 | +.toc code, .toc kbd, .toc samp { |
181 | + background: none; |
182 | + border: none; |
183 | + padding: 0; |
184 | +} |
185 | + |
186 | +pre.code, pre.terminal, pre.cmd { |
187 | + overflow-x: auto; |
188 | + *overflow-x: scroll; |
189 | + padding: 0.3em 0.6em; |
190 | +} |
191 | + |
192 | +pre.code { |
193 | + background: #FCFBFA; |
194 | + border: 1px solid #EFEEED; |
195 | + border-left-width: 5px; |
196 | +} |
197 | + |
198 | +pre.terminal, pre.cmd { |
199 | + background: #F0EFFC; |
200 | + border: 1px solid #D0CBFB; |
201 | + border-left: 5px solid #D0CBFB; |
202 | +} |
203 | + |
204 | +/* Don't reduce the font size of <code>/<kbd>/<samp> elements inside <pre> |
205 | + blocks. */ |
206 | +pre code, pre kbd, pre samp { font-size: 100%; } |
207 | + |
208 | +/* Used to denote text that shouldn't be selectable, such as line numbers or |
209 | + shell prompts. Guess which browser this doesn't work in. */ |
210 | +.noselect { |
211 | + -moz-user-select: -moz-none; |
212 | + -khtml-user-select: none; |
213 | + -webkit-user-select: none; |
214 | + -o-user-select: none; |
215 | + user-select: none; |
216 | +} |
217 | + |
218 | +/* -- Lists ----------------------------------------------------------------- */ |
219 | +dd { margin: 0.2em 0 0.7em 1em; } |
220 | +dl { margin: 1em 0; } |
221 | +dt { font-weight: bold; } |
222 | + |
223 | +/* -- Tables ---------------------------------------------------------------- */ |
224 | +caption, th { text-align: left; } |
225 | + |
226 | +table { |
227 | + border-collapse: collapse; |
228 | + width: 100%; |
229 | +} |
230 | + |
231 | +td, th { |
232 | + border: 1px solid #fff; |
233 | + padding: 5px 12px; |
234 | + vertical-align: top; |
235 | +} |
236 | + |
237 | +td { background: #E6E9F5; } |
238 | +td dl { margin: 0; } |
239 | +td dl dl { margin: 1em 0; } |
240 | +td pre:first-child { margin-top: 0; } |
241 | + |
242 | +th { |
243 | + background: #D2D7E6;/*#97A0BF*/ |
244 | + border-bottom: none; |
245 | + border-top: none; |
246 | + color: #000;/*#FFF1D5*/ |
247 | + font-family: 'Trebuchet MS', sans-serif; |
248 | + font-weight: bold; |
249 | + line-height: 1.3; |
250 | + white-space: nowrap; |
251 | +} |
252 | + |
253 | + |
254 | +/* -- Layout and Content ---------------------------------------------------- */ |
255 | +#doc { |
256 | + margin: auto; |
257 | + min-width: 1024px; |
258 | +} |
259 | + |
260 | +#main { width: 754px; } |
261 | +#sidebar { width: 270px; margin: 0 15px; } |
262 | + |
263 | +.content { padding: 0 20px 0 25px; } |
264 | + |
265 | +/* -- Sidebar --------------------------------------------------------------- */ |
266 | +.sidebox { |
267 | + background: #F9F9FC;/*E6E9F5*/ |
268 | + border: 1px solid #D4D8EB; |
269 | + |
270 | + -moz-border-radius: 4px; |
271 | + -webkit-border-radius: 4px; |
272 | + border-radius: 4px; |
273 | + -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); |
274 | + -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); |
275 | + box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); |
276 | + font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica', 'Arial', sans-serif; |
277 | + margin: 0 0 15px 0; |
278 | + padding-bottom: 1px; |
279 | +} |
280 | + |
281 | +.sidebox h2 { |
282 | + background: #E5E6F1; |
283 | + -moz-border-radius: 4px 4px 0 0; |
284 | + -webkit-border-radius: 4px 4px 0 0; |
285 | + border-radius: 4px 4px 0 0; |
286 | + color: #5E6BA4; |
287 | + font-weight: bold; |
288 | + font-size: 107.692%; |
289 | + margin: 0; |
290 | + padding: 4px 7px 5px; |
291 | +} |
292 | + |
293 | +.sidebox .bd { |
294 | + font-size: 84.615%; |
295 | + padding: 0 5px 0 8px; |
296 | +} |
297 | + |
298 | +.sidebox li { list-style-type: disc; color:#D4D5E3; } |
299 | + |
300 | +.sidebox ol, .sidebox ul { |
301 | + margin-left: 0; |
302 | + padding-left: 16px; |
303 | +} |
304 | + |
305 | +.sidebox ol ol, .sidebox ol ul, |
306 | +.sidebox ul ol, .sidebox ul ul { |
307 | + margin: 0; |
308 | + padding-left: 16px; |
309 | +} |
310 | + |
311 | +/* -- Table of Contents ----------------------------------------------------- */ |
312 | + |
313 | +/* The #toc id refers to the single global table of contents, while the .toc |
314 | + class refers to generic TOC lists that could be used throughout the page. */ |
315 | + |
316 | +.toc code, .toc kbd, .toc samp { font-size: 100%; } |
317 | +.toc li { font-weight: bold; } |
318 | +.toc li li { font-weight: normal; } |
319 | + |
320 | +/* -- Intro and Example Boxes ----------------------------------------------- */ |
321 | +.intro, .example { margin-bottom: 2em; } |
322 | + |
323 | +.example { |
324 | + -moz-border-radius: 4px; |
325 | + -webkit-border-radius: 4px; |
326 | + border-radius: 4px; |
327 | + -moz-box-shadow: 0 0 5px #bfbfbf; |
328 | + -webkit-box-shadow: 0 0 5px #bfbfbf; |
329 | + box-shadow: 0 0 5px #bfbfbf; |
330 | + padding: 1em; |
331 | +} |
332 | + |
333 | +.intro { |
334 | + background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em; |
335 | +} |
336 | + |
337 | +/* -- Other Styles ---------------------------------------------------------- */ |
338 | + |
339 | +/* These are probably YUI-specific, and should be moved out of Selleck's default |
340 | + theme. */ |
341 | + |
342 | +.button { |
343 | + border: 1px solid #dadada; |
344 | + -moz-border-radius: 3px; |
345 | + -webkit-border-radius: 3px; |
346 | + border-radius: 3px; |
347 | + color: #444; |
348 | + display: inline-block; |
349 | + font-family: Helvetica, Arial, sans-serif; |
350 | + font-size: 92.308%; |
351 | + font-weight: bold; |
352 | + padding: 4px 13px 3px; |
353 | + -moz-text-shadow: 1px 1px 0 #fff; |
354 | + -webkit-text-shadow: 1px 1px 0 #fff; |
355 | + text-shadow: 1px 1px 0 #fff; |
356 | + white-space: nowrap; |
357 | + |
358 | + background: #EFEFEF; /* old browsers */ |
359 | + background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */ |
360 | + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */ |
361 | + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */ |
362 | +} |
363 | + |
364 | +.button:hover { |
365 | + border-color: #466899; |
366 | + color: #fff; |
367 | + text-decoration: none; |
368 | + -moz-text-shadow: 1px 1px 0 #222; |
369 | + -webkit-text-shadow: 1px 1px 0 #222; |
370 | + text-shadow: 1px 1px 0 #222; |
371 | + |
372 | + background: #6396D8; /* old browsers */ |
373 | + background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */ |
374 | + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */ |
375 | + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */ |
376 | +} |
377 | + |
378 | +.newwindow { text-align: center; } |
379 | + |
380 | +.header .version em { |
381 | + display: block; |
382 | + text-align: right; |
383 | +} |
384 | + |
385 | +.yui3-skin-sam #classdocs .yui3-tabview-panel { |
386 | + background-color: transparent; |
387 | +} |
388 | + |
389 | +.yui3-skin-sam #classdocs .yui3-tabview-panel { |
390 | + border: none; |
391 | +} |
392 | + |
393 | +.yui3-skin-sam .yui3-tabview .yui3-tab, |
394 | +.yui3-skin-sam .yui3-tabview .yui3-tab-selected, |
395 | +.yui3-skin-sam .yui3-tabview .yui3-tab-hover { |
396 | + background: -moz-linear-gradient(center top , #F4F0EC 0%, #D6D2CE 100%) repeat scroll 0 0 transparent; |
397 | + border-bottom: 1px solid #DEDCD9; |
398 | + border-right: 1px solid #CDCBC8; |
399 | + border-left: 1px solid #CDCBC8; |
400 | + border-top: 1px solid #DADADA; |
401 | + color: #333333; |
402 | + text-decoration: none; |
403 | +} |
404 | +.yui3-skin-sam .yui3-tabview .yui3-tab-label, |
405 | +.yui3-skin-sam .yui3-tabview .yui3-tab-selected .yui3-tab-label { |
406 | + border: none; |
407 | + background: none; |
408 | + font-size: 100%; |
409 | + color: #000; |
410 | +} |
411 | + |
412 | +.yui3-skin-sam .yui3-tabview .yui3-tab-selected, |
413 | +.yui3-skin-sam .yui3-tabview .yui3-tab-hover { |
414 | + background: none; |
415 | + background-color: #fff; |
416 | + border-bottom-color: #FFFFFF; |
417 | + border-top: 2px solid #8193C9; |
418 | + font-weight: bold; |
419 | + color: #000; |
420 | + |
421 | +} |
422 | + |
423 | +.yui3-skin-sam .yui3-tabview-list { |
424 | + border-color: #DFDFDF; |
425 | + border-width: 0 0 1px; |
426 | +} |
427 | + |
428 | + |
429 | +a.external { |
430 | + background-image: url(external-small.png); |
431 | + background-repeat: no-repeat; |
432 | + background-position: 0 0; |
433 | + padding-left: 16px; |
434 | +} |
435 | + |
436 | +#classdocs .item { |
437 | + border-bottom: 1px solid #466899; |
438 | + margin: 1em 0; |
439 | + padding: 1.5em; |
440 | +} |
441 | + |
442 | +#classdocs .item .params p, |
443 | + #classdocs .item .returns p,{ |
444 | + display: inline; |
445 | +} |
446 | + |
447 | +#classdocs .item em code, #classdocs .item em.comment { |
448 | + color: green; |
449 | +} |
450 | + |
451 | +#classdocs .item em.comment a { |
452 | + color: green; |
453 | + text-decoration: underline; |
454 | +} |
455 | + |
456 | +#classdocs .foundat { |
457 | + font-size: 11px; |
458 | + font-style: normal; |
459 | +} |
460 | + |
461 | +.attrs .emits { |
462 | + margin-left: 2em; |
463 | + padding: .5em; |
464 | + border-left: 1px dashed #ccc; |
465 | +} |
466 | + |
467 | +abbr { |
468 | + border-bottom: 1px dashed #ccc; |
469 | + font-size: 80%; |
470 | + cursor: help; |
471 | +} |
472 | + |
473 | +.prettyprint li.L0, |
474 | +.prettyprint li.L1, |
475 | +.prettyprint li.L2, |
476 | +.prettyprint li.L3, |
477 | +.prettyprint li.L5, |
478 | +.prettyprint li.L6, |
479 | +.prettyprint li.L7, |
480 | +.prettyprint li.L8 { |
481 | + list-style: decimal; |
482 | +} |
483 | + |
484 | +ul li p { |
485 | + margin-top: 0; |
486 | +} |
487 | + |
488 | +.method .name { |
489 | + font-size: 110%; |
490 | +} |
491 | + |
492 | +#hd { |
493 | + background: -moz-linear-gradient(center top , #DCDBD9 0%, #F6F5F3 100%) repeat scroll 0 0 transparent; |
494 | + border-bottom: 1px solid #DFDFDF; |
495 | + padding: 0 15px 1px 20px; |
496 | + margin-bottom: 15px; |
497 | +} |
498 | + |
499 | +#hd img { |
500 | + margin-right: 10px; |
501 | + vertical-align: middle; |
502 | +} |
503 | + |
504 | |
505 | === added file '0.1/ambiance/js/docsbuild/assets/favicon.ico' |
506 | Binary files 0.1/ambiance/js/docsbuild/assets/favicon.ico 1970-01-01 00:00:00 +0000 and 0.1/ambiance/js/docsbuild/assets/favicon.ico 2015-04-07 17:56:01 +0000 differ |
507 | === added directory '0.1/ambiance/js/docsbuild/assets/img' |
508 | === added file '0.1/ambiance/js/docsbuild/assets/img/spinner.gif' |
509 | Binary files 0.1/ambiance/js/docsbuild/assets/img/spinner.gif 1970-01-01 00:00:00 +0000 and 0.1/ambiance/js/docsbuild/assets/img/spinner.gif 2015-04-07 17:56:01 +0000 differ |
510 | === added file '0.1/ambiance/js/docsbuild/assets/index.html' |
511 | --- 0.1/ambiance/js/docsbuild/assets/index.html 1970-01-01 00:00:00 +0000 |
512 | +++ 0.1/ambiance/js/docsbuild/assets/index.html 2015-04-07 17:56:01 +0000 |
513 | @@ -0,0 +1,10 @@ |
514 | +<!doctype html> |
515 | +<html> |
516 | + <head> |
517 | + <title>Redirector</title> |
518 | + <meta http-equiv="refresh" content="0;url=../"> |
519 | + </head> |
520 | + <body> |
521 | + <a href="../">Click here to redirect</a> |
522 | + </body> |
523 | +</html> |
524 | |
525 | === added directory '0.1/ambiance/js/docsbuild/assets/js' |
526 | === added file '0.1/ambiance/js/docsbuild/assets/js/api-filter.js' |
527 | --- 0.1/ambiance/js/docsbuild/assets/js/api-filter.js 1970-01-01 00:00:00 +0000 |
528 | +++ 0.1/ambiance/js/docsbuild/assets/js/api-filter.js 2015-04-07 17:56:01 +0000 |
529 | @@ -0,0 +1,80 @@ |
530 | + |
531 | +/* |
532 | + * Copyright 2011 Yahoo! Inc. |
533 | + * All rights reserved. |
534 | + * |
535 | + * Redistribution and use in source and binary forms, with or without |
536 | + * modification, are permitted provided that the following conditions are met: |
537 | + * * Redistributions of source code must retain the above copyright |
538 | + * notice, this list of conditions and the following disclaimer. |
539 | + * * Redistributions in binary form must reproduce the above copyright |
540 | + * notice, this list of conditions and the following disclaimer in the |
541 | + * documentation and/or other materials provided with the distribution. |
542 | + * * Neither the name of the Yahoo! Inc. nor the |
543 | + * names of its contributors may be used to endorse or promote products |
544 | + * derived from this software without specific prior written permission. |
545 | + * |
546 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
547 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
548 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
549 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
550 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
551 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
552 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
553 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
554 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
555 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
556 | + */ |
557 | + |
558 | +YUI.add('api-filter', function (Y) { |
559 | + |
560 | +Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { |
561 | + // -- Initializer ---------------------------------------------------------- |
562 | + initializer: function () { |
563 | + this._bindUIACBase(); |
564 | + this._syncUIACBase(); |
565 | + }, |
566 | + getDisplayName: function(name) { |
567 | + |
568 | + Y.each(Y.YUIDoc.meta.allModules, function(i) { |
569 | + if (i.name === name && i.displayName) { |
570 | + name = i.displayName; |
571 | + } |
572 | + }); |
573 | + |
574 | + return name; |
575 | + } |
576 | + |
577 | +}, { |
578 | + // -- Attributes ----------------------------------------------------------- |
579 | + ATTRS: { |
580 | + resultHighlighter: { |
581 | + value: 'phraseMatch' |
582 | + }, |
583 | + |
584 | + // May be set to "classes" or "modules". |
585 | + queryType: { |
586 | + value: 'classes' |
587 | + }, |
588 | + |
589 | + source: { |
590 | + valueFn: function() { |
591 | + var self = this; |
592 | + return function(q) { |
593 | + var data = Y.YUIDoc.meta[self.get('queryType')], |
594 | + out = []; |
595 | + Y.each(data, function(v) { |
596 | + if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { |
597 | + out.push(v); |
598 | + } |
599 | + }); |
600 | + return out; |
601 | + }; |
602 | + } |
603 | + } |
604 | + } |
605 | +}); |
606 | + |
607 | +}, '3.4.0', {requires: [ |
608 | + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' |
609 | +]}); |
610 | |
611 | === added file '0.1/ambiance/js/docsbuild/assets/js/api-list.js' |
612 | --- 0.1/ambiance/js/docsbuild/assets/js/api-list.js 1970-01-01 00:00:00 +0000 |
613 | +++ 0.1/ambiance/js/docsbuild/assets/js/api-list.js 2015-04-07 17:56:01 +0000 |
614 | @@ -0,0 +1,279 @@ |
615 | + |
616 | +/* |
617 | + * Copyright 2011 Yahoo! Inc. |
618 | + * All rights reserved. |
619 | + * |
620 | + * Redistribution and use in source and binary forms, with or without |
621 | + * modification, are permitted provided that the following conditions are met: |
622 | + * * Redistributions of source code must retain the above copyright |
623 | + * notice, this list of conditions and the following disclaimer. |
624 | + * * Redistributions in binary form must reproduce the above copyright |
625 | + * notice, this list of conditions and the following disclaimer in the |
626 | + * documentation and/or other materials provided with the distribution. |
627 | + * * Neither the name of the Yahoo! Inc. nor the |
628 | + * names of its contributors may be used to endorse or promote products |
629 | + * derived from this software without specific prior written permission. |
630 | + * |
631 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
632 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
633 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
634 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
635 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
636 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
637 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
638 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
639 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
640 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
641 | + */ |
642 | + |
643 | +YUI.add('api-list', function (Y) { |
644 | + |
645 | +var Lang = Y.Lang, |
646 | + YArray = Y.Array, |
647 | + |
648 | + APIList = Y.namespace('APIList'), |
649 | + |
650 | + classesNode = Y.one('#api-classes'), |
651 | + inputNode = Y.one('#api-filter'), |
652 | + modulesNode = Y.one('#api-modules'), |
653 | + tabviewNode = Y.one('#api-tabview'), |
654 | + |
655 | + tabs = APIList.tabs = {}, |
656 | + |
657 | + filter = APIList.filter = new Y.APIFilter({ |
658 | + inputNode : inputNode, |
659 | + maxResults: 1000, |
660 | + |
661 | + on: { |
662 | + results: onFilterResults |
663 | + } |
664 | + }), |
665 | + |
666 | + search = APIList.search = new Y.APISearch({ |
667 | + inputNode : inputNode, |
668 | + maxResults: 100, |
669 | + |
670 | + on: { |
671 | + clear : onSearchClear, |
672 | + results: onSearchResults |
673 | + } |
674 | + }), |
675 | + |
676 | + tabview = APIList.tabview = new Y.TabView({ |
677 | + srcNode : tabviewNode, |
678 | + panelNode: '#api-tabview-panel', |
679 | + render : true, |
680 | + |
681 | + on: { |
682 | + selectionChange: onTabSelectionChange |
683 | + } |
684 | + }), |
685 | + |
686 | + focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { |
687 | + circular : true, |
688 | + descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', |
689 | + keys : {next: 'down:40', previous: 'down:38'} |
690 | + }).focusManager, |
691 | + |
692 | + LIST_ITEM_TEMPLATE = |
693 | + '<li class="api-list-item {typeSingular}">' + |
694 | + '<a href="{rootPath}{typePlural}/{name}.html">{displayName}</a>' + |
695 | + '</li>'; |
696 | + |
697 | +// -- Init --------------------------------------------------------------------- |
698 | + |
699 | +// Duckpunch FocusManager's key event handling to prevent it from handling key |
700 | +// events when a modifier is pressed. |
701 | +Y.before(function (e, activeDescendant) { |
702 | + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { |
703 | + return new Y.Do.Prevent(); |
704 | + } |
705 | +}, focusManager, '_focusPrevious', focusManager); |
706 | + |
707 | +Y.before(function (e, activeDescendant) { |
708 | + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { |
709 | + return new Y.Do.Prevent(); |
710 | + } |
711 | +}, focusManager, '_focusNext', focusManager); |
712 | + |
713 | +// Create a mapping of tabs in the tabview so we can refer to them easily later. |
714 | +tabview.each(function (tab, index) { |
715 | + var name = tab.get('label').toLowerCase(); |
716 | + |
717 | + tabs[name] = { |
718 | + index: index, |
719 | + name : name, |
720 | + tab : tab |
721 | + }; |
722 | +}); |
723 | + |
724 | +// Switch tabs on Ctrl/Cmd-Left/Right arrows. |
725 | +tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); |
726 | + |
727 | +// Focus the filter input when the `/` key is pressed. |
728 | +Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); |
729 | + |
730 | +// Keep the Focus Manager up to date. |
731 | +inputNode.on('focus', function () { |
732 | + focusManager.set('activeDescendant', inputNode); |
733 | +}); |
734 | + |
735 | +// Update all tabview links to resolved URLs. |
736 | +tabview.get('panelNode').all('a').each(function (link) { |
737 | + link.setAttribute('href', link.get('href')); |
738 | +}); |
739 | + |
740 | +// -- Private Functions -------------------------------------------------------- |
741 | +function getFilterResultNode() { |
742 | + return filter.get('queryType') === 'classes' ? classesNode : modulesNode; |
743 | +} |
744 | + |
745 | +// -- Event Handlers ----------------------------------------------------------- |
746 | +function onFilterResults(e) { |
747 | + var frag = Y.one(Y.config.doc.createDocumentFragment()), |
748 | + resultNode = getFilterResultNode(), |
749 | + typePlural = filter.get('queryType'), |
750 | + typeSingular = typePlural === 'classes' ? 'class' : 'module'; |
751 | + |
752 | + if (e.results.length) { |
753 | + YArray.each(e.results, function (result) { |
754 | + frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { |
755 | + rootPath : APIList.rootPath, |
756 | + displayName : filter.getDisplayName(result.highlighted), |
757 | + name : result.text, |
758 | + typePlural : typePlural, |
759 | + typeSingular: typeSingular |
760 | + })); |
761 | + }); |
762 | + } else { |
763 | + frag.append( |
764 | + '<li class="message">' + |
765 | + 'No ' + typePlural + ' found.' + |
766 | + '</li>' |
767 | + ); |
768 | + } |
769 | + |
770 | + resultNode.empty(true); |
771 | + resultNode.append(frag); |
772 | + |
773 | + focusManager.refresh(); |
774 | +} |
775 | + |
776 | +function onSearchClear(e) { |
777 | + |
778 | + focusManager.refresh(); |
779 | +} |
780 | + |
781 | +function onSearchKey(e) { |
782 | + var target = e.target; |
783 | + |
784 | + if (target.test('input,select,textarea') |
785 | + || target.get('isContentEditable')) { |
786 | + return; |
787 | + } |
788 | + |
789 | + e.preventDefault(); |
790 | + |
791 | + inputNode.focus(); |
792 | + focusManager.refresh(); |
793 | +} |
794 | + |
795 | +function onSearchResults(e) { |
796 | + var frag = Y.one(Y.config.doc.createDocumentFragment()); |
797 | + |
798 | + if (e.results.length) { |
799 | + YArray.each(e.results, function (result) { |
800 | + frag.append(result.display); |
801 | + }); |
802 | + } else { |
803 | + frag.append( |
804 | + '<li class="message">' + |
805 | + 'No results found. Maybe you\'ll have better luck with a ' + |
806 | + 'different query?' + |
807 | + '</li>' |
808 | + ); |
809 | + } |
810 | + |
811 | + |
812 | + focusManager.refresh(); |
813 | +} |
814 | + |
815 | +function onTabSelectionChange(e) { |
816 | + var tab = e.newVal, |
817 | + name = tab.get('label').toLowerCase(); |
818 | + |
819 | + tabs.selected = { |
820 | + index: tab.get('index'), |
821 | + name : name, |
822 | + tab : tab |
823 | + }; |
824 | + |
825 | + switch (name) { |
826 | + case 'classes': // fallthru |
827 | + case 'modules': |
828 | + filter.setAttrs({ |
829 | + minQueryLength: 0, |
830 | + queryType : name |
831 | + }); |
832 | + |
833 | + search.set('minQueryLength', -1); |
834 | + |
835 | + // Only send a request if this isn't the initially-selected tab. |
836 | + if (e.prevVal) { |
837 | + filter.sendRequest(filter.get('value')); |
838 | + } |
839 | + break; |
840 | + |
841 | + case 'everything': |
842 | + filter.set('minQueryLength', -1); |
843 | + search.set('minQueryLength', 1); |
844 | + |
845 | + if (search.get('value')) { |
846 | + search.sendRequest(search.get('value')); |
847 | + } else { |
848 | + inputNode.focus(); |
849 | + } |
850 | + break; |
851 | + |
852 | + default: |
853 | + // WTF? We shouldn't be here! |
854 | + filter.set('minQueryLength', -1); |
855 | + search.set('minQueryLength', -1); |
856 | + } |
857 | + |
858 | + if (focusManager) { |
859 | + setTimeout(function () { |
860 | + focusManager.refresh(); |
861 | + }, 1); |
862 | + } |
863 | +} |
864 | + |
865 | +function onTabSwitchKey(e) { |
866 | + var currentTabIndex = tabs.selected.index; |
867 | + |
868 | + if (!(e.ctrlKey || e.metaKey)) { |
869 | + return; |
870 | + } |
871 | + |
872 | + e.preventDefault(); |
873 | + |
874 | + switch (e.keyCode) { |
875 | + case 37: // left arrow |
876 | + if (currentTabIndex > 0) { |
877 | + tabview.selectChild(currentTabIndex - 1); |
878 | + inputNode.focus(); |
879 | + } |
880 | + break; |
881 | + |
882 | + case 39: // right arrow |
883 | + if (currentTabIndex < (Y.Object.size(tabs) - 2)) { |
884 | + tabview.selectChild(currentTabIndex + 1); |
885 | + inputNode.focus(); |
886 | + } |
887 | + break; |
888 | + } |
889 | +} |
890 | + |
891 | +}, '3.4.0', {requires: [ |
892 | + 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' |
893 | +]}); |
894 | |
895 | === added file '0.1/ambiance/js/docsbuild/assets/js/api-search.js' |
896 | --- 0.1/ambiance/js/docsbuild/assets/js/api-search.js 1970-01-01 00:00:00 +0000 |
897 | +++ 0.1/ambiance/js/docsbuild/assets/js/api-search.js 2015-04-07 17:56:01 +0000 |
898 | @@ -0,0 +1,126 @@ |
899 | + |
900 | +/* |
901 | + * Copyright 2011 Yahoo! Inc. |
902 | + * All rights reserved. |
903 | + * |
904 | + * Redistribution and use in source and binary forms, with or without |
905 | + * modification, are permitted provided that the following conditions are met: |
906 | + * * Redistributions of source code must retain the above copyright |
907 | + * notice, this list of conditions and the following disclaimer. |
908 | + * * Redistributions in binary form must reproduce the above copyright |
909 | + * notice, this list of conditions and the following disclaimer in the |
910 | + * documentation and/or other materials provided with the distribution. |
911 | + * * Neither the name of the Yahoo! Inc. nor the |
912 | + * names of its contributors may be used to endorse or promote products |
913 | + * derived from this software without specific prior written permission. |
914 | + * |
915 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
916 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
917 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
918 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
919 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
920 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
921 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
922 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
923 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
924 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
925 | + */ |
926 | + |
927 | +YUI.add('api-search', function (Y) { |
928 | + |
929 | +var Lang = Y.Lang, |
930 | + Node = Y.Node, |
931 | + YArray = Y.Array; |
932 | + |
933 | +Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { |
934 | + // -- Public Properties ---------------------------------------------------- |
935 | + RESULT_TEMPLATE: |
936 | + '<li class="result {resultType}">' + |
937 | + '<a href="{url}">' + |
938 | + '<h3 class="title">{name}</h3>' + |
939 | + '<span class="type">{resultType}</span>' + |
940 | + '<div class="description">{description}</div>' + |
941 | + '<span class="className">{class}</span>' + |
942 | + '</a>' + |
943 | + '</li>', |
944 | + |
945 | + // -- Initializer ---------------------------------------------------------- |
946 | + initializer: function () { |
947 | + this._bindUIACBase(); |
948 | + this._syncUIACBase(); |
949 | + }, |
950 | + |
951 | + // -- Protected Methods ---------------------------------------------------- |
952 | + _apiResultFilter: function (query, results) { |
953 | + // Filter components out of the results. |
954 | + return YArray.filter(results, function (result) { |
955 | + return result.raw.resultType === 'component' ? false : result; |
956 | + }); |
957 | + }, |
958 | + |
959 | + _apiResultFormatter: function (query, results) { |
960 | + return YArray.map(results, function (result) { |
961 | + var raw = Y.merge(result.raw), // create a copy |
962 | + desc = raw.description || ''; |
963 | + |
964 | + // Convert description to text and truncate it if necessary. |
965 | + desc = Node.create('<div>' + desc + '</div>').get('text'); |
966 | + |
967 | + if (desc.length > 65) { |
968 | + desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; |
969 | + } else { |
970 | + desc = Y.Escape.html(desc); |
971 | + } |
972 | + |
973 | + raw['class'] || (raw['class'] = ''); |
974 | + raw.description = desc; |
975 | + |
976 | + // Use the highlighted result name. |
977 | + raw.name = result.highlighted; |
978 | + |
979 | + return Lang.sub(this.RESULT_TEMPLATE, raw); |
980 | + }, this); |
981 | + }, |
982 | + |
983 | + _apiTextLocator: function (result) { |
984 | + return result.displayName || result.name; |
985 | + } |
986 | +}, { |
987 | + // -- Attributes ----------------------------------------------------------- |
988 | + ATTRS: { |
989 | + resultFormatter: { |
990 | + valueFn: function () { |
991 | + return this._apiResultFormatter; |
992 | + } |
993 | + }, |
994 | + |
995 | + resultFilters: { |
996 | + valueFn: function () { |
997 | + return this._apiResultFilter; |
998 | + } |
999 | + }, |
1000 | + |
1001 | + resultHighlighter: { |
1002 | + value: 'phraseMatch' |
1003 | + }, |
1004 | + |
1005 | + resultListLocator: { |
1006 | + value: 'data.results' |
1007 | + }, |
1008 | + |
1009 | + resultTextLocator: { |
1010 | + valueFn: function () { |
1011 | + return this._apiTextLocator; |
1012 | + } |
1013 | + }, |
1014 | + |
1015 | + source: { |
1016 | + value: '/api/v1/search?q={query}&count={maxResults}' |
1017 | + } |
1018 | + } |
1019 | +}); |
1020 | + |
1021 | +}, '3.4.0', {requires: [ |
1022 | + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', |
1023 | + 'escape' |
1024 | +]}); |
1025 | |
1026 | === added file '0.1/ambiance/js/docsbuild/assets/js/apidocs.js' |
1027 | --- 0.1/ambiance/js/docsbuild/assets/js/apidocs.js 1970-01-01 00:00:00 +0000 |
1028 | +++ 0.1/ambiance/js/docsbuild/assets/js/apidocs.js 2015-04-07 17:56:01 +0000 |
1029 | @@ -0,0 +1,398 @@ |
1030 | + |
1031 | +/* |
1032 | + * Copyright 2011 Yahoo! Inc. |
1033 | + * All rights reserved. |
1034 | + * |
1035 | + * Redistribution and use in source and binary forms, with or without |
1036 | + * modification, are permitted provided that the following conditions are met: |
1037 | + * * Redistributions of source code must retain the above copyright |
1038 | + * notice, this list of conditions and the following disclaimer. |
1039 | + * * Redistributions in binary form must reproduce the above copyright |
1040 | + * notice, this list of conditions and the following disclaimer in the |
1041 | + * documentation and/or other materials provided with the distribution. |
1042 | + * * Neither the name of the Yahoo! Inc. nor the |
1043 | + * names of its contributors may be used to endorse or promote products |
1044 | + * derived from this software without specific prior written permission. |
1045 | + * |
1046 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
1047 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
1048 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
1049 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
1050 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
1051 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
1052 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
1053 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
1054 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
1055 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
1056 | + */ |
1057 | + |
1058 | +YUI().use( |
1059 | + 'yuidoc-meta', |
1060 | + 'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax', |
1061 | +function (Y) { |
1062 | + |
1063 | +var win = Y.config.win, |
1064 | + localStorage = win.localStorage, |
1065 | + |
1066 | + bdNode = Y.one('#bd'), |
1067 | + |
1068 | + pjax, |
1069 | + defaultRoute, |
1070 | + |
1071 | + classTabView, |
1072 | + selectedTab; |
1073 | + |
1074 | +// Kill pjax functionality unless serving over HTTP. |
1075 | +if (!Y.getLocation().protocol.match(/^https?\:/)) { |
1076 | + Y.Router.html5 = false; |
1077 | +} |
1078 | + |
1079 | +// Create the default route with middleware which enables syntax highlighting |
1080 | +// on the loaded content. |
1081 | +defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) { |
1082 | + prettyPrint(); |
1083 | + bdNode.removeClass('loading'); |
1084 | + |
1085 | + next(); |
1086 | +}); |
1087 | + |
1088 | +pjax = new Y.Pjax({ |
1089 | + container : '#docs-main', |
1090 | + contentSelector: '#docs-main > .content', |
1091 | + linkSelector : '#bd a', |
1092 | + titleSelector : '#xhr-title', |
1093 | + |
1094 | + navigateOnHash: true, |
1095 | + root : '/', |
1096 | + routes : [ |
1097 | + // -- / ---------------------------------------------------------------- |
1098 | + { |
1099 | + path : '/(index.html)?', |
1100 | + callbacks: defaultRoute |
1101 | + }, |
1102 | + |
1103 | + // -- /classes/* ------------------------------------------------------- |
1104 | + { |
1105 | + path : '/classes/:class.html*', |
1106 | + callbacks: [defaultRoute, 'handleClasses'] |
1107 | + }, |
1108 | + |
1109 | + // -- /files/* --------------------------------------------------------- |
1110 | + { |
1111 | + path : '/files/*file', |
1112 | + callbacks: [defaultRoute, 'handleFiles'] |
1113 | + }, |
1114 | + |
1115 | + // -- /modules/* ------------------------------------------------------- |
1116 | + { |
1117 | + path : '/modules/:module.html*', |
1118 | + callbacks: defaultRoute |
1119 | + } |
1120 | + ] |
1121 | +}); |
1122 | + |
1123 | +// -- Utility Functions -------------------------------------------------------- |
1124 | + |
1125 | +pjax.checkVisibility = function (tab) { |
1126 | + tab || (tab = selectedTab); |
1127 | + |
1128 | + if (!tab) { return; } |
1129 | + |
1130 | + var panelNode = tab.get('panelNode'), |
1131 | + visibleItems; |
1132 | + |
1133 | + // If no items are visible in the tab panel due to the current visibility |
1134 | + // settings, display a message to that effect. |
1135 | + visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) { |
1136 | + if (itemNode.getComputedStyle('display') !== 'none') { |
1137 | + return true; |
1138 | + } |
1139 | + }); |
1140 | + |
1141 | + panelNode.all('.no-visible-items').remove(); |
1142 | + |
1143 | + if (!visibleItems) { |
1144 | + if (Y.one('#index .index-item')) { |
1145 | + panelNode.append( |
1146 | + '<div class="no-visible-items">' + |
1147 | + '<p>' + |
1148 | + 'Some items are not shown due to the current visibility ' + |
1149 | + 'settings. Use the checkboxes at the upper right of this ' + |
1150 | + 'page to change the visibility settings.' + |
1151 | + '</p>' + |
1152 | + '</div>' |
1153 | + ); |
1154 | + } else { |
1155 | + panelNode.append( |
1156 | + '<div class="no-visible-items">' + |
1157 | + '<p>' + |
1158 | + 'This class doesn\'t provide any methods, properties, ' + |
1159 | + 'attributes, or events.' + |
1160 | + '</p>' + |
1161 | + '</div>' |
1162 | + ); |
1163 | + } |
1164 | + } |
1165 | + |
1166 | + // Hide index sections without any visible items. |
1167 | + Y.all('.index-section').each(function (section) { |
1168 | + var items = 0, |
1169 | + visibleItems = 0; |
1170 | + |
1171 | + section.all('.index-item').each(function (itemNode) { |
1172 | + items += 1; |
1173 | + |
1174 | + if (itemNode.getComputedStyle('display') !== 'none') { |
1175 | + visibleItems += 1; |
1176 | + } |
1177 | + }); |
1178 | + |
1179 | + section.toggleClass('hidden', !visibleItems); |
1180 | + section.toggleClass('no-columns', visibleItems < 4); |
1181 | + }); |
1182 | +}; |
1183 | + |
1184 | +pjax.initClassTabView = function () { |
1185 | + if (!Y.all('#classdocs .api-class-tab').size()) { |
1186 | + return; |
1187 | + } |
1188 | + |
1189 | + if (classTabView) { |
1190 | + classTabView.destroy(); |
1191 | + selectedTab = null; |
1192 | + } |
1193 | + |
1194 | + classTabView = new Y.TabView({ |
1195 | + srcNode: '#classdocs', |
1196 | + |
1197 | + on: { |
1198 | + selectionChange: pjax.onTabSelectionChange |
1199 | + } |
1200 | + }); |
1201 | + |
1202 | + pjax.updateTabState(); |
1203 | + classTabView.render(); |
1204 | +}; |
1205 | + |
1206 | +pjax.initLineNumbers = function () { |
1207 | + var hash = win.location.hash.substring(1), |
1208 | + container = pjax.get('container'), |
1209 | + hasLines, node; |
1210 | + |
1211 | + // Add ids for each line number in the file source view. |
1212 | + container.all('.linenums>li').each(function (lineNode, index) { |
1213 | + lineNode.set('id', 'l' + (index + 1)); |
1214 | + lineNode.addClass('file-line'); |
1215 | + hasLines = true; |
1216 | + }); |
1217 | + |
1218 | + // Scroll to the desired line. |
1219 | + if (hasLines && /^l\d+$/.test(hash)) { |
1220 | + if ((node = container.getById(hash))) { |
1221 | + win.scroll(0, node.getY()); |
1222 | + } |
1223 | + } |
1224 | +}; |
1225 | + |
1226 | +pjax.initRoot = function () { |
1227 | + var terminators = /^(?:classes|files|modules)$/, |
1228 | + parts = pjax._getPathRoot().split('/'), |
1229 | + root = [], |
1230 | + i, len, part; |
1231 | + |
1232 | + for (i = 0, len = parts.length; i < len; i += 1) { |
1233 | + part = parts[i]; |
1234 | + |
1235 | + if (part.match(terminators)) { |
1236 | + // Makes sure the path will end with a "/". |
1237 | + root.push(''); |
1238 | + break; |
1239 | + } |
1240 | + |
1241 | + root.push(part); |
1242 | + } |
1243 | + |
1244 | + pjax.set('root', root.join('/')); |
1245 | +}; |
1246 | + |
1247 | +pjax.updateTabState = function (src) { |
1248 | + var hash = win.location.hash.substring(1), |
1249 | + defaultTab, node, tab, tabPanel; |
1250 | + |
1251 | + function scrollToNode() { |
1252 | + if (node.hasClass('protected')) { |
1253 | + Y.one('#api-show-protected').set('checked', true); |
1254 | + pjax.updateVisibility(); |
1255 | + } |
1256 | + |
1257 | + if (node.hasClass('private')) { |
1258 | + Y.one('#api-show-private').set('checked', true); |
1259 | + pjax.updateVisibility(); |
1260 | + } |
1261 | + |
1262 | + setTimeout(function () { |
1263 | + // For some reason, unless we re-get the node instance here, |
1264 | + // getY() always returns 0. |
1265 | + var node = Y.one('#classdocs').getById(hash); |
1266 | + win.scrollTo(0, node.getY() - 70); |
1267 | + }, 1); |
1268 | + } |
1269 | + |
1270 | + if (!classTabView) { |
1271 | + return; |
1272 | + } |
1273 | + |
1274 | + if (src === 'hashchange' && !hash) { |
1275 | + defaultTab = 'index'; |
1276 | + } else { |
1277 | + if (localStorage) { |
1278 | + defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || |
1279 | + 'index'; |
1280 | + } else { |
1281 | + defaultTab = 'index'; |
1282 | + } |
1283 | + } |
1284 | + |
1285 | + if (hash && (node = Y.one('#classdocs').getById(hash))) { |
1286 | + if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { |
1287 | + if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { |
1288 | + if (classTabView.get('rendered')) { |
1289 | + Y.Widget.getByNode(tab).set('selected', 1); |
1290 | + } else { |
1291 | + tab.addClass('yui3-tab-selected'); |
1292 | + } |
1293 | + } |
1294 | + } |
1295 | + |
1296 | + // Scroll to the desired element if this is a hash URL. |
1297 | + if (node) { |
1298 | + if (classTabView.get('rendered')) { |
1299 | + scrollToNode(); |
1300 | + } else { |
1301 | + classTabView.once('renderedChange', scrollToNode); |
1302 | + } |
1303 | + } |
1304 | + } else { |
1305 | + tab = Y.one('#classdocs .api-class-tab.' + defaultTab); |
1306 | + |
1307 | + // When the `defaultTab` node isn't found, `localStorage` is stale. |
1308 | + if (!tab && defaultTab !== 'index') { |
1309 | + tab = Y.one('#classdocs .api-class-tab.index'); |
1310 | + } |
1311 | + |
1312 | + if (classTabView.get('rendered')) { |
1313 | + Y.Widget.getByNode(tab).set('selected', 1); |
1314 | + } else { |
1315 | + tab.addClass('yui3-tab-selected'); |
1316 | + } |
1317 | + } |
1318 | +}; |
1319 | + |
1320 | +pjax.updateVisibility = function () { |
1321 | + var container = pjax.get('container'); |
1322 | + |
1323 | + container.toggleClass('hide-inherited', |
1324 | + !Y.one('#api-show-inherited').get('checked')); |
1325 | + |
1326 | + container.toggleClass('show-deprecated', |
1327 | + Y.one('#api-show-deprecated').get('checked')); |
1328 | + |
1329 | + container.toggleClass('show-protected', |
1330 | + Y.one('#api-show-protected').get('checked')); |
1331 | + |
1332 | + container.toggleClass('show-private', |
1333 | + Y.one('#api-show-private').get('checked')); |
1334 | + |
1335 | + pjax.checkVisibility(); |
1336 | +}; |
1337 | + |
1338 | +// -- Route Handlers ----------------------------------------------------------- |
1339 | + |
1340 | +pjax.handleClasses = function (req, res, next) { |
1341 | + var status = res.ioResponse.status; |
1342 | + |
1343 | + // Handles success and local filesystem XHRs. |
1344 | + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { |
1345 | + pjax.initClassTabView(); |
1346 | + } |
1347 | + |
1348 | + next(); |
1349 | +}; |
1350 | + |
1351 | +pjax.handleFiles = function (req, res, next) { |
1352 | + var status = res.ioResponse.status; |
1353 | + |
1354 | + // Handles success and local filesystem XHRs. |
1355 | + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { |
1356 | + pjax.initLineNumbers(); |
1357 | + } |
1358 | + |
1359 | + next(); |
1360 | +}; |
1361 | + |
1362 | +// -- Event Handlers ----------------------------------------------------------- |
1363 | + |
1364 | +pjax.onNavigate = function (e) { |
1365 | + var hash = e.hash, |
1366 | + originTarget = e.originEvent && e.originEvent.target, |
1367 | + tab; |
1368 | + |
1369 | + if (hash) { |
1370 | + tab = originTarget && originTarget.ancestor('.yui3-tab', true); |
1371 | + |
1372 | + if (hash === win.location.hash) { |
1373 | + pjax.updateTabState('hashchange'); |
1374 | + } else if (!tab) { |
1375 | + win.location.hash = hash; |
1376 | + } |
1377 | + |
1378 | + e.preventDefault(); |
1379 | + return; |
1380 | + } |
1381 | + |
1382 | + // Only scroll to the top of the page when the URL doesn't have a hash. |
1383 | + this.set('scrollToTop', !e.url.match(/#.+$/)); |
1384 | + |
1385 | + bdNode.addClass('loading'); |
1386 | +}; |
1387 | + |
1388 | +pjax.onOptionClick = function (e) { |
1389 | + pjax.updateVisibility(); |
1390 | +}; |
1391 | + |
1392 | +pjax.onTabSelectionChange = function (e) { |
1393 | + var tab = e.newVal, |
1394 | + tabId = tab.get('contentBox').getAttribute('href').substring(1); |
1395 | + |
1396 | + selectedTab = tab; |
1397 | + |
1398 | + // If switching from a previous tab (i.e., this is not the default tab), |
1399 | + // replace the history entry with a hash URL that will cause this tab to |
1400 | + // be selected if the user navigates away and then returns using the back |
1401 | + // or forward buttons. |
1402 | + if (e.prevVal && localStorage) { |
1403 | + localStorage.setItem('tab_' + pjax.getPath(), tabId); |
1404 | + } |
1405 | + |
1406 | + pjax.checkVisibility(tab); |
1407 | +}; |
1408 | + |
1409 | +// -- Init --------------------------------------------------------------------- |
1410 | + |
1411 | +pjax.on('navigate', pjax.onNavigate); |
1412 | + |
1413 | +pjax.initRoot(); |
1414 | +pjax.upgrade(); |
1415 | +pjax.initClassTabView(); |
1416 | +pjax.initLineNumbers(); |
1417 | +pjax.updateVisibility(); |
1418 | + |
1419 | +Y.APIList.rootPath = pjax.get('root'); |
1420 | + |
1421 | +Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); |
1422 | + |
1423 | +Y.on('hashchange', function (e) { |
1424 | + pjax.updateTabState('hashchange'); |
1425 | +}, win); |
1426 | + |
1427 | +}); |
1428 | |
1429 | === added file '0.1/ambiance/js/docsbuild/assets/js/tabs.js' |
1430 | --- 0.1/ambiance/js/docsbuild/assets/js/tabs.js 1970-01-01 00:00:00 +0000 |
1431 | +++ 0.1/ambiance/js/docsbuild/assets/js/tabs.js 2015-04-07 17:56:01 +0000 |
1432 | @@ -0,0 +1,67 @@ |
1433 | +/* |
1434 | + * Copyright 2011 Yahoo! Inc. |
1435 | + * All rights reserved. |
1436 | + * |
1437 | + * Redistribution and use in source and binary forms, with or without |
1438 | + * modification, are permitted provided that the following conditions are met: |
1439 | + * * Redistributions of source code must retain the above copyright |
1440 | + * notice, this list of conditions and the following disclaimer. |
1441 | + * * Redistributions in binary form must reproduce the above copyright |
1442 | + * notice, this list of conditions and the following disclaimer in the |
1443 | + * documentation and/or other materials provided with the distribution. |
1444 | + * * Neither the name of the Yahoo! Inc. nor the |
1445 | + * names of its contributors may be used to endorse or promote products |
1446 | + * derived from this software without specific prior written permission. |
1447 | + * |
1448 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
1449 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
1450 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
1451 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
1452 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
1453 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
1454 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
1455 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
1456 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
1457 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
1458 | + */ |
1459 | + |
1460 | + |
1461 | + |
1462 | +YUI({ |
1463 | + insertBefore: 'site_styles' |
1464 | +}).use('tabview', function(Y) { |
1465 | + var classdocs = Y.one('#classdocs'), |
1466 | + tabviewIndexTable = {}; |
1467 | + if (classdocs) { |
1468 | + if (classdocs.all('li').size()) { |
1469 | + var tabview = new Y.TabView({ srcNode: classdocs }); |
1470 | + tabview.render(); |
1471 | + classdocs.all('li a').each(function (item, index) { |
1472 | + var hash = item.get(['hash']); |
1473 | + type = hash.substring(1); |
1474 | + if (!tabviewIndexTable[type]) { |
1475 | + tabviewIndexTable[type] = index; |
1476 | + } |
1477 | + }) |
1478 | + Y.all('.sidebox.on-page').each(function (item, index) { |
1479 | + var children = item.all('li a'); |
1480 | + children.each(function (cItem, cIndex) { |
1481 | + return function () { |
1482 | + var handleClick = function (e) { |
1483 | + var node = Y.one(this), |
1484 | + hash = node.get(['hash']), |
1485 | + hashValue = hash.substring(1).split('_'), |
1486 | + type = hashValue.shift(), |
1487 | + ogKey = hashValue.join('_'); // in case the hash had other underscores |
1488 | + if (tabviewIndexTable[type] > -1 && tabviewIndexTable[type] !== currentTab) { |
1489 | + currentTab = tabviewIndexTable[type]; |
1490 | + tabview.selectChild(tabviewIndexTable[type]); |
1491 | + } |
1492 | + } |
1493 | + Y.on('click', handleClick, cItem) |
1494 | + }() |
1495 | + }) |
1496 | + }); |
1497 | + } |
1498 | + } |
1499 | +}); |
1500 | |
1501 | === added file '0.1/ambiance/js/docsbuild/assets/js/yui-prettify.js' |
1502 | --- 0.1/ambiance/js/docsbuild/assets/js/yui-prettify.js 1970-01-01 00:00:00 +0000 |
1503 | +++ 0.1/ambiance/js/docsbuild/assets/js/yui-prettify.js 2015-04-07 17:56:01 +0000 |
1504 | @@ -0,0 +1,44 @@ |
1505 | +/* |
1506 | + * Copyright 2011 Yahoo! Inc. |
1507 | + * All rights reserved. |
1508 | + *- |
1509 | + * Redistribution and use in source and binary forms, with or without |
1510 | + * modification, are permitted provided that the following conditions are met: |
1511 | + * * Redistributions of source code must retain the above copyright |
1512 | + * notice, this list of conditions and the following disclaimer. |
1513 | + * * Redistributions in binary form must reproduce the above copyright |
1514 | + * notice, this list of conditions and the following disclaimer in the |
1515 | + * documentation and/or other materials provided with the distribution. |
1516 | + * * Neither the name of the Yahoo! Inc. nor the |
1517 | + * names of its contributors may be used to endorse or promote products |
1518 | + * derived from this software without specific prior written permission. |
1519 | + *- |
1520 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
1521 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
1522 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
1523 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
1524 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
1525 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
1526 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
1527 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
1528 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
1529 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
1530 | + */ |
1531 | + |
1532 | +YUI().use('node', function(Y) { |
1533 | + var code = Y.all('.prettyprint.linenums'); |
1534 | + if (code.size()) { |
1535 | + code.each(function(c) { |
1536 | + var lis = c.all('ol li'), |
1537 | + l = 1; |
1538 | + lis.each(function(n) { |
1539 | + n.prepend('<a name="LINENUM_' + l + '"></a>'); |
1540 | + l++; |
1541 | + }); |
1542 | + }); |
1543 | + var h = location.hash; |
1544 | + location.hash = ''; |
1545 | + h = h.replace('LINE_', 'LINENUM_'); |
1546 | + location.hash = h; |
1547 | + } |
1548 | +}); |
1549 | |
1550 | === added directory '0.1/ambiance/js/docsbuild/assets/vendor' |
1551 | === added directory '0.1/ambiance/js/docsbuild/assets/vendor/prettify' |
1552 | === added file '0.1/ambiance/js/docsbuild/assets/vendor/prettify/CHANGES.html' |
1553 | --- 0.1/ambiance/js/docsbuild/assets/vendor/prettify/CHANGES.html 1970-01-01 00:00:00 +0000 |
1554 | +++ 0.1/ambiance/js/docsbuild/assets/vendor/prettify/CHANGES.html 2015-04-07 17:56:01 +0000 |
1555 | @@ -0,0 +1,130 @@ |
1556 | +<html> |
1557 | + <head> |
1558 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
1559 | + <title>Change Log</title> |
1560 | + </head> |
1561 | + <body bgcolor="white"> |
1562 | + <a style="float:right" href="README.html">README</a> |
1563 | + |
1564 | + <h1>Known Issues</h1> |
1565 | + <ul> |
1566 | + <li>Perl formatting is really crappy. Partly because the author is lazy and |
1567 | + partly because Perl is |
1568 | + <a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse. |
1569 | + <li>On some browsers, <code><code></code> elements with newlines in the text |
1570 | + which use CSS to specify <code>white-space:pre</code> will have the newlines |
1571 | + improperly stripped if the element is not attached to the document at the time |
1572 | + the stripping is done. Also, on IE 6, all newlines will be stripped from |
1573 | + <code><code></code> elements because of the way IE6 produces |
1574 | + <code>innerHTML</code>. Workaround: use <code><pre></code> for code with |
1575 | + newlines. |
1576 | + </ul> |
1577 | + |
1578 | + <h1>Change Log</h1> |
1579 | + <h2>29 March 2007</h2> |
1580 | + <ul> |
1581 | + <li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support |
1582 | + to address |
1583 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3" |
1584 | + >issue 3</a>. |
1585 | + <li>Fixed |
1586 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6" |
1587 | + >bug</a>: <code>prettyPrintOne</code> was not halting. This was not |
1588 | + reachable through the normal entry point. |
1589 | + <li>Fixed |
1590 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4" |
1591 | + >bug</a>: recursing into a script block or PHP tag that was not properly |
1592 | + closed would not silently drop the content. |
1593 | + (<a href="tests/prettify_test.html#issue4">test</a>) |
1594 | + <li>Fixed |
1595 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8" |
1596 | + >bug</a>: was eating tabs |
1597 | + (<a href="tests/prettify_test.html#issue8">test</a>) |
1598 | + <li>Fixed entity handling so that the caveat |
1599 | + <blockquote> |
1600 | + <p>Caveats: please properly escape less-thans. <tt>x&lt;y</tt> |
1601 | + instead of <tt>x<y</tt>, and use <tt>"</tt> instead of |
1602 | + <tt>&quot;</tt> for string delimiters.</p> |
1603 | + </blockquote> |
1604 | + is no longer applicable. |
1605 | + <li>Added noisefree's C# |
1606 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4" |
1607 | + >patch</a> |
1608 | + <li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and |
1609 | + whitespace removed to reduce download size from 45.5kB to 12.8kB. |
1610 | + </ul> |
1611 | + <h2>4 Jul 2008</h2> |
1612 | + <ul> |
1613 | + <li>Added <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=17">language specific formatters</a> that are triggered by the presence |
1614 | + of a <code>lang-<language-file-extension></code></li> |
1615 | + <li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code> |
1616 | + <li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code> |
1617 | + </ul> |
1618 | + <h2>5 Jul 2008</h2> |
1619 | + <ul> |
1620 | + <li>Defined language extensions for Lisp and Lua</code> |
1621 | + </ul> |
1622 | + <h2>14 Jul 2008</h2> |
1623 | + <ul> |
1624 | + <li>Language handlers for F#, OCAML, SQL</code> |
1625 | + <li>Support for <code>nocode</code> spans to allow embedding of line |
1626 | + numbers and code annotations which should not be styled or otherwise |
1627 | + affect the tokenization of prettified code. |
1628 | + See the issue 22 |
1629 | + <a href="tests/prettify_test.html#issue22">testcase</a>.</code> |
1630 | + </ul> |
1631 | + <h2>6 Jan 2009</h2> |
1632 | + <ul> |
1633 | + <li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li> |
1634 | + <li>Added <tt>.mxml</tt> extension to the markup style handler for |
1635 | + Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See |
1636 | + <a |
1637 | + href="http://code.google.com/p/google-code-prettify/issues/detail?id=37" |
1638 | + >issue 37</a>. |
1639 | + <li>Added <tt>.m</tt> extension to the C style handler so that Objective |
1640 | + C source files properly highlight. See |
1641 | + <a |
1642 | + href="http://code.google.com/p/google-code-prettify/issues/detail?id=58" |
1643 | + >issue 58</a>. |
1644 | + <li>Changed HTML lexer to use the same embedded source mechanism as the |
1645 | + wiki language handler, and changed to use the registered |
1646 | + CSS handler for STYLE element content. |
1647 | + </ul> |
1648 | + <h2>21 May 2009</h2> |
1649 | + <ul> |
1650 | + <li>Rewrote to improve performance on large files. |
1651 | + See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li> |
1652 | + <li>Fixed bugs with highlighting of Haskell line comments, Lisp |
1653 | + number literals, Lua strings, C preprocessor directives, |
1654 | + newlines in Wiki code on Windows, and newlines in IE6.</li> |
1655 | + </ul> |
1656 | + <h2>14 August 2009</h2> |
1657 | + <ul> |
1658 | + <li>Fixed prettifying of <code><code></code> blocks with embedded newlines. |
1659 | + </ul> |
1660 | + <h2>3 October 2009</h2> |
1661 | + <ul> |
1662 | + <li>Fixed prettifying of XML/HTML tags that contain uppercase letters. |
1663 | + </ul> |
1664 | + <h2>19 July 2010</h2> |
1665 | + <ul> |
1666 | + <li>Added support for line numbers. Bug |
1667 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22" |
1668 | + >22</a></li> |
1669 | + <li>Added YAML support. Bug |
1670 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123" |
1671 | + >123</a></li> |
1672 | + <li>Added VHDL support courtesy Le Poussin.</li> |
1673 | + <li>IE performance improvements. Bug |
1674 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102" |
1675 | + >102</a> courtesy jacobly.</li> |
1676 | + <li>A variety of markup formatting fixes courtesy smain and thezbyg.</li> |
1677 | + <li>Fixed copy and paste in IE[678]. |
1678 | + <li>Changed output to use <code>&#160;</code> instead of |
1679 | + <code>&nbsp;</code> so that the output works when embedded in XML. |
1680 | + Bug |
1681 | + <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108" |
1682 | + >108</a>.</li> |
1683 | + </ul> |
1684 | + </body> |
1685 | +</html> |
1686 | |
1687 | === added file '0.1/ambiance/js/docsbuild/assets/vendor/prettify/COPYING' |
1688 | --- 0.1/ambiance/js/docsbuild/assets/vendor/prettify/COPYING 1970-01-01 00:00:00 +0000 |
1689 | +++ 0.1/ambiance/js/docsbuild/assets/vendor/prettify/COPYING 2015-04-07 17:56:01 +0000 |
1690 | @@ -0,0 +1,202 @@ |
1691 | + |
1692 | + Apache License |
1693 | + Version 2.0, January 2004 |
1694 | + http://www.apache.org/licenses/ |
1695 | + |
1696 | + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
1697 | + |
1698 | + 1. Definitions. |
1699 | + |
1700 | + "License" shall mean the terms and conditions for use, reproduction, |
1701 | + and distribution as defined by Sections 1 through 9 of this document. |
1702 | + |
1703 | + "Licensor" shall mean the copyright owner or entity authorized by |
1704 | + the copyright owner that is granting the License. |
1705 | + |
1706 | + "Legal Entity" shall mean the union of the acting entity and all |
1707 | + other entities that control, are controlled by, or are under common |
1708 | + control with that entity. For the purposes of this definition, |
1709 | + "control" means (i) the power, direct or indirect, to cause the |
1710 | + direction or management of such entity, whether by contract or |
1711 | + otherwise, or (ii) ownership of fifty percent (50%) or more of the |
1712 | + outstanding shares, or (iii) beneficial ownership of such entity. |
1713 | + |
1714 | + "You" (or "Your") shall mean an individual or Legal Entity |
1715 | + exercising permissions granted by this License. |
1716 | + |
1717 | + "Source" form shall mean the preferred form for making modifications, |
1718 | + including but not limited to software source code, documentation |
1719 | + source, and configuration files. |
1720 | + |
1721 | + "Object" form shall mean any form resulting from mechanical |
1722 | + transformation or translation of a Source form, including but |
1723 | + not limited to compiled object code, generated documentation, |
1724 | + and conversions to other media types. |
1725 | + |
1726 | + "Work" shall mean the work of authorship, whether in Source or |
1727 | + Object form, made available under the License, as indicated by a |
1728 | + copyright notice that is included in or attached to the work |
1729 | + (an example is provided in the Appendix below). |
1730 | + |
1731 | + "Derivative Works" shall mean any work, whether in Source or Object |
1732 | + form, that is based on (or derived from) the Work and for which the |
1733 | + editorial revisions, annotations, elaborations, or other modifications |
1734 | + represent, as a whole, an original work of authorship. For the purposes |
1735 | + of this License, Derivative Works shall not include works that remain |
1736 | + separable from, or merely link (or bind by name) to the interfaces of, |
1737 | + the Work and Derivative Works thereof. |
1738 | + |
1739 | + "Contribution" shall mean any work of authorship, including |
1740 | + the original version of the Work and any modifications or additions |
1741 | + to that Work or Derivative Works thereof, that is intentionally |
1742 | + submitted to Licensor for inclusion in the Work by the copyright owner |
1743 | + or by an individual or Legal Entity authorized to submit on behalf of |
1744 | + the copyright owner. For the purposes of this definition, "submitted" |
1745 | + means any form of electronic, verbal, or written communication sent |
1746 | + to the Licensor or its representatives, including but not limited to |
1747 | + communication on electronic mailing lists, source code control systems, |
1748 | + and issue tracking systems that are managed by, or on behalf of, the |
1749 | + Licensor for the purpose of discussing and improving the Work, but |
1750 | + excluding communication that is conspicuously marked or otherwise |
1751 | + designated in writing by the copyright owner as "Not a Contribution." |
1752 | + |
1753 | + "Contributor" shall mean Licensor and any individual or Legal Entity |
1754 | + on behalf of whom a Contribution has been received by Licensor and |
1755 | + subsequently incorporated within the Work. |
1756 | + |
1757 | + 2. Grant of Copyright License. Subject to the terms and conditions of |
1758 | + this License, each Contributor hereby grants to You a perpetual, |
1759 | + worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
1760 | + copyright license to reproduce, prepare Derivative Works of, |
1761 | + publicly display, publicly perform, sublicense, and distribute the |
1762 | + Work and such Derivative Works in Source or Object form. |
1763 | + |
1764 | + 3. Grant of Patent License. Subject to the terms and conditions of |
1765 | + this License, each Contributor hereby grants to You a perpetual, |
1766 | + worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
1767 | + (except as stated in this section) patent license to make, have made, |
1768 | + use, offer to sell, sell, import, and otherwise transfer the Work, |
1769 | + where such license applies only to those patent claims licensable |
1770 | + by such Contributor that are necessarily infringed by their |
1771 | + Contribution(s) alone or by combination of their Contribution(s) |
1772 | + with the Work to which such Contribution(s) was submitted. If You |
1773 | + institute patent litigation against any entity (including a |
1774 | + cross-claim or counterclaim in a lawsuit) alleging that the Work |
1775 | + or a Contribution incorporated within the Work constitutes direct |
1776 | + or contributory patent infringement, then any patent licenses |
1777 | + granted to You under this License for that Work shall terminate |
1778 | + as of the date such litigation is filed. |
1779 | + |
1780 | + 4. Redistribution. You may reproduce and distribute copies of the |
1781 | + Work or Derivative Works thereof in any medium, with or without |
1782 | + modifications, and in Source or Object form, provided that You |
1783 | + meet the following conditions: |
1784 | + |
1785 | + (a) You must give any other recipients of the Work or |
1786 | + Derivative Works a copy of this License; and |
1787 | + |
1788 | + (b) You must cause any modified files to carry prominent notices |
1789 | + stating that You changed the files; and |
1790 | + |
1791 | + (c) You must retain, in the Source form of any Derivative Works |
1792 | + that You distribute, all copyright, patent, trademark, and |
1793 | + attribution notices from the Source form of the Work, |
1794 | + excluding those notices that do not pertain to any part of |
1795 | + the Derivative Works; and |
1796 | + |
1797 | + (d) If the Work includes a "NOTICE" text file as part of its |
1798 | + distribution, then any Derivative Works that You distribute must |
1799 | + include a readable copy of the attribution notices contained |
1800 | + within such NOTICE file, excluding those notices that do not |
1801 | + pertain to any part of the Derivative Works, in at least one |
1802 | + of the following places: within a NOTICE text file distributed |
1803 | + as part of the Derivative Works; within the Source form or |
1804 | + documentation, if provided along with the Derivative Works; or, |
1805 | + within a display generated by the Derivative Works, if and |
1806 | + wherever such third-party notices normally appear. The contents |
1807 | + of the NOTICE file are for informational purposes only and |
1808 | + do not modify the License. You may add Your own attribution |
1809 | + notices within Derivative Works that You distribute, alongside |
1810 | + or as an addendum to the NOTICE text from the Work, provided |
1811 | + that such additional attribution notices cannot be construed |
1812 | + as modifying the License. |
1813 | + |
1814 | + You may add Your own copyright statement to Your modifications and |
1815 | + may provide additional or different license terms and conditions |
1816 | + for use, reproduction, or distribution of Your modifications, or |
1817 | + for any such Derivative Works as a whole, provided Your use, |
1818 | + reproduction, and distribution of the Work otherwise complies with |
1819 | + the conditions stated in this License. |
1820 | + |
1821 | + 5. Submission of Contributions. Unless You explicitly state otherwise, |
1822 | + any Contribution intentionally submitted for inclusion in the Work |
1823 | + by You to the Licensor shall be under the terms and conditions of |
1824 | + this License, without any additional terms or conditions. |
1825 | + Notwithstanding the above, nothing herein shall supersede or modify |
1826 | + the terms of any separate license agreement you may have executed |
1827 | + with Licensor regarding such Contributions. |
1828 | + |
1829 | + 6. Trademarks. This License does not grant permission to use the trade |
1830 | + names, trademarks, service marks, or product names of the Licensor, |
1831 | + except as required for reasonable and customary use in describing the |
1832 | + origin of the Work and reproducing the content of the NOTICE file. |
1833 | + |
1834 | + 7. Disclaimer of Warranty. Unless required by applicable law or |
1835 | + agreed to in writing, Licensor provides the Work (and each |
1836 | + Contributor provides its Contributions) on an "AS IS" BASIS, |
1837 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
1838 | + implied, including, without limitation, any warranties or conditions |
1839 | + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
1840 | + PARTICULAR PURPOSE. You are solely responsible for determining the |
1841 | + appropriateness of using or redistributing the Work and assume any |
1842 | + risks associated with Your exercise of permissions under this License. |
1843 | + |
1844 | + 8. Limitation of Liability. In no event and under no legal theory, |
1845 | + whether in tort (including negligence), contract, or otherwise, |
1846 | + unless required by applicable law (such as deliberate and grossly |
1847 | + negligent acts) or agreed to in writing, shall any Contributor be |
1848 | + liable to You for damages, including any direct, indirect, special, |
1849 | + incidental, or consequential damages of any character arising as a |
1850 | + result of this License or out of the use or inability to use the |
1851 | + Work (including but not limited to damages for loss of goodwill, |
1852 | + work stoppage, computer failure or malfunction, or any and all |
1853 | + other commercial damages or losses), even if such Contributor |
1854 | + has been advised of the possibility of such damages. |
1855 | + |
1856 | + 9. Accepting Warranty or Additional Liability. While redistributing |
1857 | + the Work or Derivative Works thereof, You may choose to offer, |
1858 | + and charge a fee for, acceptance of support, warranty, indemnity, |
1859 | + or other liability obligations and/or rights consistent with this |
1860 | + License. However, in accepting such obligations, You may act only |
1861 | + on Your own behalf and on Your sole responsibility, not on behalf |
1862 | + of any other Contributor, and only if You agree to indemnify, |
1863 | + defend, and hold each Contributor harmless for any liability |
1864 | + incurred by, or claims asserted against, such Contributor by reason |
1865 | + of your accepting any such warranty or additional liability. |
1866 | + |
1867 | + END OF TERMS AND CONDITIONS |
1868 | + |
1869 | + APPENDIX: How to apply the Apache License to your work. |
1870 | + |
1871 | + To apply the Apache License to your work, attach the following |
1872 | + boilerplate notice, with the fields enclosed by brackets "[]" |
1873 | + replaced with your own identifying information. (Don't include |
1874 | + the brackets!) The text should be enclosed in the appropriate |
1875 | + comment syntax for the file format. We also recommend that a |
1876 | + file or class name and description of purpose be included on the |
1877 | + same "printed page" as the copyright notice for easier |
1878 | + identification within third-party archives. |
1879 | + |
1880 | + Copyright [yyyy] [name of copyright owner] |
1881 | + |
1882 | + Licensed under the Apache License, Version 2.0 (the "License"); |
1883 | + you may not use this file except in compliance with the License. |
1884 | + You may obtain a copy of the License at |
1885 | + |
1886 | + http://www.apache.org/licenses/LICENSE-2.0 |
1887 | + |
1888 | + Unless required by applicable law or agreed to in writing, software |
1889 | + distributed under the License is distributed on an "AS IS" BASIS, |
1890 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
1891 | + See the License for the specific language governing permissions and |
1892 | + limitations under the License. |
1893 | |
1894 | === added file '0.1/ambiance/js/docsbuild/assets/vendor/prettify/README.html' |
1895 | --- 0.1/ambiance/js/docsbuild/assets/vendor/prettify/README.html 1970-01-01 00:00:00 +0000 |
1896 | +++ 0.1/ambiance/js/docsbuild/assets/vendor/prettify/README.html 2015-04-07 17:56:01 +0000 |
1897 | @@ -0,0 +1,203 @@ |
1898 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
1899 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
1900 | + |
1901 | +<html> |
1902 | + <head> |
1903 | + <title>Javascript code prettifier</title> |
1904 | + |
1905 | + <link href="src/prettify.css" type="text/css" rel="stylesheet" /> |
1906 | + |
1907 | + <script src="src/prettify.js" type="text/javascript"></script> |
1908 | + |
1909 | + <style type="text/css"> |
1910 | + body { margin-left: .5in } |
1911 | + h1, h2, h3, h4, .footer { margin-left: -.4in; } |
1912 | + </style> |
1913 | + </head> |
1914 | + |
1915 | + <body onload="prettyPrint()" bgcolor="white"> |
1916 | + <small style="float: right">Languages : <a href="README-zh-Hans.html">CH</a></small> |
1917 | + <h1>Javascript code prettifier</h1> |
1918 | + |
1919 | + <h2>Setup</h2> |
1920 | + <ol> |
1921 | + <li><a href="http://code.google.com/p/google-code-prettify/downloads/list">Download</a> a distribution |
1922 | + <li>Include the script and stylesheets in your document |
1923 | + (you will need to make sure the css and js file are on your server, and |
1924 | + adjust the paths in the <tt>script</tt> and <tt>link</tt> tag) |
1925 | + <pre class="prettyprint"> |
1926 | +<link href="prettify.css" type="text/css" rel="stylesheet" /> |
1927 | +<script type="text/javascript" src="prettify.js"></script></pre> |
1928 | + <li>Add <code class="prettyprint lang-html">onload="prettyPrint()"</code> to your |
1929 | + document's body tag. |
1930 | + <li>Modify the stylesheet to get the coloring you prefer</li> |
1931 | + </ol> |
1932 | + |
1933 | + <h2>Usage</h2> |
1934 | + <p>Put code snippets in |
1935 | + <tt><pre class="prettyprint">...</pre></tt> |
1936 | + or <tt><code class="prettyprint">...</code></tt> |
1937 | + and it will automatically be pretty printed. |
1938 | + |
1939 | + <table summary="code examples"> |
1940 | + <tr> |
1941 | + <th>The original |
1942 | + <th>Prettier |
1943 | + <tr> |
1944 | + <td><pre style="border: 1px solid #888;padding: 2px" |
1945 | + ><a name="voila1"></a>class Voila { |
1946 | +public: |
1947 | + // Voila |
1948 | + static const string VOILA = "Voila"; |
1949 | + |
1950 | + // will not interfere with embedded <a href="#voila1">tags</a>. |
1951 | +}</pre> |
1952 | + |
1953 | + <td><pre class="prettyprint"><a name="voila2"></a>class Voila { |
1954 | +public: |
1955 | + // Voila |
1956 | + static const string VOILA = "Voila"; |
1957 | + |
1958 | + // will not interfere with embedded <a href="#voila2">tags</a>. |
1959 | +}</pre> |
1960 | + </table> |
1961 | + |
1962 | + <h2>FAQ</h2> |
1963 | + <h3 id="langs">Which languages does it work for?</h3> |
1964 | + <p>The comments in <tt>prettify.js</tt> are authoritative but the lexer |
1965 | + should work on a number of languages including C and friends, |
1966 | + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. |
1967 | + It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl |
1968 | + and Ruby, but, because of commenting conventions, doesn't work on |
1969 | + Smalltalk, or CAML-like languages.</p> |
1970 | + |
1971 | + <p>LISPy languages are supported via an extension: |
1972 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js" |
1973 | + ><code>lang-lisp.js</code></a>.</p> |
1974 | + <p>And similarly for |
1975 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css.js" |
1976 | + ><code>CSS</code></a>, |
1977 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs.js" |
1978 | + ><code>Haskell</code></a>, |
1979 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js" |
1980 | + ><code>Lua</code></a>, |
1981 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js" |
1982 | + ><code>OCAML, SML, F#</code></a>, |
1983 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js" |
1984 | + ><code>Visual Basic</code></a>, |
1985 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js" |
1986 | + ><code>SQL</code></a>, |
1987 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js" |
1988 | + ><code>Protocol Buffers</code></a>, and |
1989 | + <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js" |
1990 | + ><code>WikiText</code></a>.. |
1991 | + |
1992 | + <p>If you'd like to add an extension for your favorite language, please |
1993 | + look at <tt>src/lang-lisp.js</tt> and file an |
1994 | + <a href="http://code.google.com/p/google-code-prettify/issues/list" |
1995 | + >issue</a> including your language extension, and a testcase.</p> |
1996 | + |
1997 | + <h3>How do I specify which language my code is in?</h3> |
1998 | + <p>You don't need to specify the language since <code>prettyprint()</code> |
1999 | + will guess. You can specify a language by specifying the language extension |
2000 | + along with the <code>prettyprint</code> class like so:</p> |
2001 | + <pre class="prettyprint lang-html" |
2002 | +><pre class="prettyprint <b>lang-html</b>"> |
2003 | + The lang-* class specifies the language file extensions. |
2004 | + File extensions supported by default include |
2005 | + "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", |
2006 | + "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", |
2007 | + "xhtml", "xml", "xsl". |
2008 | +</pre></pre> |
2009 | + |
2010 | + <h3>It doesn't work on <tt><obfuscated code sample></tt>?</h3> |
2011 | + <p>Yes. Prettifying obfuscated code is like putting lipstick on a pig |
2012 | + — i.e. outside the scope of this tool.</p> |
2013 | + |
2014 | + <h3>Which browsers does it work with?</h3> |
2015 | + <p>It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. |
2016 | + Look at <a href="tests/prettify_test.html">the test page</a> to see if it |
2017 | + works in your browser.</p> |
2018 | + |
2019 | + <h3>What's changed?</h3> |
2020 | + <p>See the <a href="CHANGES.html">change log</a></p> |
2021 | + |
2022 | + <h3>Why doesn't Prettyprinting of strings work on WordPress?</h3> |
2023 | + <p>Apparently wordpress does "smart quoting" which changes close quotes. |
2024 | + This causes end quotes to not match up with open quotes. |
2025 | + <p>This breaks prettifying as well as copying and pasting of code samples. |
2026 | + See |
2027 | + <a href="http://wordpress.org/support/topic/125038" |
2028 | + >WordPress's help center</a> for info on how to stop smart quoting of code |
2029 | + snippets.</p> |
2030 | + |
2031 | + <h3 id="linenums">How do I put line numbers in my code?</h3> |
2032 | + <p>You can use the <code>linenums</code> class to turn on line |
2033 | + numbering. If your code doesn't start at line number 1, you can |
2034 | + add a colon and a line number to the end of that class as in |
2035 | + <code>linenums:52</code>. |
2036 | + |
2037 | + <p>For example |
2038 | +<pre class="prettyprint"><pre class="prettyprint linenums:<b>4</b>" |
2039 | +>// This is line 4. |
2040 | +foo(); |
2041 | +bar(); |
2042 | +baz(); |
2043 | +boo(); |
2044 | +far(); |
2045 | +faz(); |
2046 | +<pre></pre> |
2047 | + produces |
2048 | +<pre class="prettyprint linenums:4" |
2049 | +>// This is line 4. |
2050 | +foo(); |
2051 | +bar(); |
2052 | +baz(); |
2053 | +boo(); |
2054 | +far(); |
2055 | +faz(); |
2056 | +</pre> |
2057 | + |
2058 | + <h3>How do I prevent a portion of markup from being marked as code?</h3> |
2059 | + <p>You can use the <code>nocode</code> class to identify a span of markup |
2060 | + that is not code. |
2061 | +<pre class="prettyprint"><pre class=prettyprint> |
2062 | +int x = foo(); /* This is a comment <span class="nocode">This is not code</span> |
2063 | + Continuation of comment */ |
2064 | +int y = bar(); |
2065 | +</pre></pre> |
2066 | +produces |
2067 | +<pre class="prettyprint"> |
2068 | +int x = foo(); /* This is a comment <span class="nocode">This is not code</span> |
2069 | + Continuation of comment */ |
2070 | +int y = bar(); |
2071 | +</pre> |
2072 | + |
2073 | + <p>For a more complete example see the issue22 |
2074 | + <a href="tests/prettify_test.html#issue22">testcase</a>.</p> |
2075 | + |
2076 | + <h3>I get an error message "a is not a function" or "opt_whenDone is not a function"</h3> |
2077 | + <p>If you are calling <code>prettyPrint</code> via an event handler, wrap it in a function. |
2078 | + Instead of doing |
2079 | + <blockquote> |
2080 | + <code class="prettyprint lang-js" |
2081 | + >addEventListener('load', prettyPrint, false);</code> |
2082 | + </blockquote> |
2083 | + wrap it in a closure like |
2084 | + <blockquote> |
2085 | + <code class="prettyprint lang-js" |
2086 | + >addEventListener('load', function (event) { prettyPrint() }, false);</code> |
2087 | + </blockquote> |
2088 | + so that the browser does not pass an event object to <code>prettyPrint</code> which |
2089 | + will confuse it. |
2090 | + |
2091 | + <br><br><br> |
2092 | + |
2093 | + <div class="footer"> |
2094 | +<!-- Created: Tue Oct 3 17:51:56 PDT 2006 --> |
2095 | +<!-- hhmts start --> |
2096 | +Last modified: Wed Jul 19 13:56:00 PST 2010 |
2097 | +<!-- hhmts end --> |
2098 | + </div> |
2099 | + </body> |
2100 | +</html> |
2101 | |
2102 | === added file '0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.css' |
2103 | --- 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.css 1970-01-01 00:00:00 +0000 |
2104 | +++ 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.css 2015-04-07 17:56:01 +0000 |
2105 | @@ -0,0 +1,1 @@ |
2106 | +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} |
2107 | \ No newline at end of file |
2108 | |
2109 | === added file '0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.js' |
2110 | --- 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.js 1970-01-01 00:00:00 +0000 |
2111 | +++ 0.1/ambiance/js/docsbuild/assets/vendor/prettify/prettify-min.js 2015-04-07 17:56:01 +0000 |
2112 | @@ -0,0 +1,28 @@ |
2113 | +/* |
2114 | + * Copyright 2011 Yahoo! Inc. |
2115 | + * All rights reserved. |
2116 | + *- |
2117 | + * Redistribution and use in source and binary forms, with or without |
2118 | + * modification, are permitted provided that the following conditions are met: |
2119 | + * * Redistributions of source code must retain the above copyright |
2120 | + * notice, this list of conditions and the following disclaimer. |
2121 | + * * Redistributions in binary form must reproduce the above copyright |
2122 | + * notice, this list of conditions and the following disclaimer in the |
2123 | + * documentation and/or other materials provided with the distribution. |
2124 | + * * Neither the name of the Yahoo! Inc. nor the |
2125 | + * names of its contributors may be used to endorse or promote products |
2126 | + * derived from this software without specific prior written permission. |
2127 | + *- |
2128 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
2129 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
2130 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
2131 | + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY |
2132 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
2133 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
2134 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
2135 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
2136 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
2137 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
2138 | + */ |
2139 | + |
2140 | +window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X<W;++X){var ag=ab[X];if(ag.ignoreCase){ae=true}else{if(/[a-z]/i.test(ag.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){U=true;ae=false;break}}}var aa={b:8,t:9,n:10,v:11,f:12,r:13};function ad(aj){var ai=aj.charCodeAt(0);if(ai!==92){return ai}var ah=aj.charAt(1);ai=aa[ah];if(ai){return ai}else{if("0"<=ah&&ah<="7"){return parseInt(aj.substring(1),8)}else{if(ah==="u"||ah==="x"){return parseInt(aj.substring(2),16)}else{return aj.charCodeAt(1)}}}}function V(ah){if(ah<32){return(ah<16?"\\x0":"\\x")+ah.toString(16)}var ai=String.fromCharCode(ah);return(ai==="\\"||ai==="-"||ai==="]"||ai==="^")?"\\"+ai:ai}function Z(an){var ar=an.substring(1,an.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));var ah=[];var ap=ar[0]==="^";var ao=["["];if(ap){ao.push("^")}for(var at=ap?1:0,al=ar.length;at<al;++at){var aj=ar[at];if(/\\[bdsw]/i.test(aj)){ao.push(aj)}else{var ai=ad(aj);var am;if(at+2<al&&"-"===ar[at+1]){am=ad(ar[at+2]);at+=2}else{am=ai}ah.push([ai,am]);if(!(am<65||ai>122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;at<ah.length;++at){var au=ah[at];if(au[0]<=aq[1]+1){aq[1]=Math.max(aq[1],au[1])}else{ak.push(aq=au)}}for(var at=0;at<ak.length;++at){var au=ak[at];ao.push(V(au[0]));if(au[1]>au[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am<aj;++am){var ai=al[am];if(ai==="("){++ao}else{if("\\"===ai.charAt(0)){var ah=+ai.substring(1);if(ah){if(ah<=ao){ap[ah]=-1}else{al[am]=V(ah)}}}}}for(var am=1;am<ap.length;++am){if(-1===ap[am]){ap[am]=++af}}for(var am=0,ao=0;am<aj;++am){var ai=al[am];if(ai==="("){++ao;if(!ap[ao]){al[am]="(?:"}}else{if("\\"===ai.charAt(0)){var ah=+ai.substring(1);if(ah&&ah<=ao){al[am]="\\"+ap[ah]}}}}for(var am=0;am<aj;++am){if("^"===al[am]&&"^"!==al[am+1]){al[am]=""}}if(an.ignoreCase&&U){for(var am=0;am<aj;++am){var ai=al[am];var ak=ai.charAt(0);if(ai.length>=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X<W;++X){var ag=ab[X];if(ag.global||ag.multiline){throw new Error(""+ag)}ac.push("(?:"+Y(ag)+")")}return new RegExp(ac.join("|"),ae?"gi":"g")}function b(aa,Y){var W=/(?:^|\s)nocode(?:\s|$)/;var ab=[];var Z=0;var X=[];var V=0;function U(ac){switch(ac.nodeType){case 1:if(W.test(ac.className)){return}for(var af=ac.firstChild;af;af=af.nextSibling){U(af)}var ae=ac.nodeName.toLowerCase();if("br"===ae||"li"===ae){ab[V]="\n";X[V<<1]=Z++;X[(V++<<1)|1]=ac}break;case 3:case 4:var ad=ac.nodeValue;if(ad.length){if(!Y){ad=ad.replace(/[ \t\r\n]+/g," ")}else{ad=ad.replace(/\r\n?/g,"\n")}ab[V]=ad;X[V<<1]=Z;Z+=ad.length;X[(V++<<1)|1]=ac}break}}U(aa);return{sourceCode:ab.join("").replace(/\n$/,""),spans:X}}function C(U,W,Y,V){if(!W){return}var X={sourceCode:W,basePos:U};Y(X);V.push.apply(V,X.decorations)}var w=/\S/;function p(U){var X=undefined;for(var W=U.firstChild;W;W=W.nextSibling){var V=W.nodeType;X=(V===1)?(X?U:W):(V===3)?(w.test(W.nodeValue)?U:X):X}return X===U?undefined:X}function h(W,V){var U={};var X;(function(){var af=W.concat(V);var aj=[];var ai={};for(var ad=0,ab=af.length;ad<ab;++ad){var aa=af[ad];var ae=aa[3];if(ae){for(var ag=ae.length;--ag>=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag<at;++ag){var ai=ap[ag];var ar=al[ai];var ak=void 0;var ao;if(typeof ar==="string"){ao=false}else{var ac=U[ai.charAt(0)];if(ac){ak=ai.match(ac[1]);ar=ac[0]}else{for(var aq=0;aq<Z;++aq){ac=V[aq];ak=ai.match(ac[1]);if(ak){ar=ac[0];break}}if(!ak){ar=G}}ao=ar.length>=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z<X.length;++Z){af(X[Z])}if(ah===(ah|0)){X[0].setAttribute("value",ah)}var ab=ad.createElement("ol");ab.className="linenums";var Y=Math.max(0,((ah-1))|0)||0;for(var Z=0,U=X.length;Z<U;++Z){ag=X[Z];ag.className="L"+((Z+Y)%10);if(!ag.firstChild){ag.appendChild(ad.createTextNode("\xA0"))}ab.appendChild(ag)}W.appendChild(ab)}function E(af){var X=/\bMSIE\s(\d+)/.exec(navigator.userAgent);X=X&&+X[1]<=8;var ao=/\n/g;var an=af.sourceCode;var ap=an.length;var Y=0;var ad=af.spans;var V=ad.length;var aj=0;var aa=af.decorations;var ab=aa.length;var ac=0;aa[ab]=ap;var av,at;for(at=av=0;at<ab;){if(aa[at]!==aa[at+2]){aa[av++]=aa[at++];aa[av++]=aa[at++]}else{at+=2}}ab=av;for(at=av=0;at<ab;){var aw=aa[at];var ae=aa[at+1];var Z=at+2;while(Z+2<=ab&&aa[Z+1]===ae){Z+=2}aa[av++]=aw;aa[av++]=ae;at=Z}ab=aa.length=av;var au=af.sourceNode;var ak;if(au){ak=au.style.display;au.style.display="none"}try{var ah=null;while(aj<V){var ai=ad[aj];var U=ad[aj+2]||ap;var ar=aa[ac+2]||ap;var Z=Math.min(U,ar);var am=ad[aj+1];var W;if(am.nodeType!==1&&(W=an.substring(Y,Z))){if(X){W=W.replace(ao,"\r")}am.nodeValue=W;var al=am.ownerDocument;var aq=al.createElement("span");aq.className=aa[ac+1];var ag=am.parentNode;ag.replaceChild(aq,am);aq.appendChild(am);if(Y<U){ad[aj+1]=am=al.createTextNode(an.substring(Z,U));ag.insertBefore(am,aq.nextSibling)}}Y=Z;if(Y>=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*</.test(U)?"default-markup":"default-code"}return u[V]}d(L,["default-code"]);d(h([],[[G,/^[^<?]+/],[F,/^<!\w[^>]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae<ah.length;++ae){for(var ac=0,Y=ah[ae].length;ac<Y;++ac){V.push(ah[ae][ac])}}ah=null;var Z=Date;if(!Z.now){Z={now:function(){return +(new Date)}}}var aa=0;var U;var af=/\blang(?:uage)?-([\w.]+)(?!\S)/;var ak=/\bprettyprint\b/;var W=/\bprettyprinted\b/;var ag=/pre|xmp/i;var ai=/^code$/i;var ad=/^(?:pre|code|xmp)$/i;function X(){var ar=(O.PR_SHOULD_USE_CONTINUATION?Z.now()+250:Infinity);for(;aa<V.length&&Z.now()<ar;aa++){var at=V[aa];var au=at.className;if(ak.test(au)&&!W.test(au)){var aw=false;for(var ao=at.parentNode;ao;ao=ao.parentNode){var ax=ao.tagName;if(ad.test(ax)&&ao.className&&ak.test(ao.className)){aw=true;break}}if(!aw){at.className+=" prettyprinted";var aq=au.match(af);var am;if(!aq&&(am=p(at))&&ai.test(am.tagName)){aq=am.className.match(af)}if(aq){aq=aq[1]}var ap;if(ag.test(at.tagName)){ap=1}else{var an=at.currentStyle;var al=(an?an.whiteSpace:(document.defaultView&&document.defaultView.getComputedStyle)?document.defaultView.getComputedStyle(at,null).getPropertyValue("white-space"):0);ap=al&&"pre"===al.substring(0,3)}var av=at.className.match(/\blinenums\b(?::(\d+))?/);av=av?av[1]&&av[1].length?+av[1]:true:false;if(av){S(at,av,ap)}U={langExtension:aq,sourceNode:at,numberLines:av,pre:ap};e(U)}}}if(aa<V.length){setTimeout(X,250)}else{if(aj){aj()}}}X()}var a=O.PR={createSimpleLexer:h,registerLangHandler:d,sourceDecorator:i,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:o,PR_COMMENT:k,PR_DECLARATION:F,PR_KEYWORD:A,PR_LITERAL:H,PR_NOCODE:P,PR_PLAIN:G,PR_PUNCTUATION:M,PR_SOURCE:K,PR_STRING:D,PR_TAG:n,PR_TYPE:Q,prettyPrintOne:O.prettyPrintOne=z,prettyPrint:O.prettyPrint=c};if(typeof define==="function"&&define.amd){define("google-code-prettify",[],function(){return a})}})();PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_DECLARATION,/^<!\w[^>]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:<!--|-->)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); |
2141 | |
2142 | === added directory '0.1/ambiance/js/docsbuild/classes' |
2143 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Button.html' |
2144 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Button.html 1970-01-01 00:00:00 +0000 |
2145 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Button.html 2015-04-07 17:56:01 +0000 |
2146 | @@ -0,0 +1,170 @@ |
2147 | +<!DOCTYPE html> |
2148 | +<html lang="en"> |
2149 | +<head> |
2150 | + <meta charset="utf-8"> |
2151 | + <title>UbuntuUI.Button - Ubuntu HTML5 API</title> |
2152 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
2153 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
2154 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
2155 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
2156 | +</head> |
2157 | +<body class="yui3-skin-sam"> |
2158 | + |
2159 | +<div id="doc"> |
2160 | + <div id="hd" class="yui3-g header"> |
2161 | + <div class="yui3-u-3-4"> |
2162 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Button</a></h1> |
2163 | + </div> |
2164 | + <div class="yui3-u-1-4 version"> |
2165 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
2166 | + </div> |
2167 | + </div> |
2168 | + <div class="yui3-g"> |
2169 | + |
2170 | + <div id="sidebar" class="yui3-u"> |
2171 | + <div id="modules" class="sidebox"> |
2172 | + <div class="hd"> |
2173 | + <h2 class="no-toc">Modules</h2> |
2174 | + </div> |
2175 | + <div class="bd"> |
2176 | + <ul> |
2177 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
2178 | + </li> |
2179 | + </ul> |
2180 | + </div> |
2181 | + </div> |
2182 | + |
2183 | + <div id="classes" class="sidebox"> |
2184 | + <div class="hd"> |
2185 | + <h2 class="no-toc">Classes</h2> |
2186 | + </div> |
2187 | + <div class="bd"> |
2188 | + <ul> |
2189 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
2190 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
2191 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
2192 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
2193 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
2194 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
2195 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
2196 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
2197 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
2198 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
2199 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
2200 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
2201 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
2202 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
2203 | + </ul> |
2204 | + </div> |
2205 | + </div> |
2206 | + |
2207 | + <div id="methods-on-page" class="sidebox on-page"> |
2208 | + <div class="hd"> |
2209 | + <h2 class="no-toc">Methods On Page</h2> |
2210 | + </div> |
2211 | + <div class="bd"> |
2212 | + <ul> |
2213 | + <li><a href="#methods_click">click</a></li> |
2214 | + <li><a href="#methods_element">element</a></li> |
2215 | + </ul> |
2216 | + </div> |
2217 | + </div> |
2218 | + |
2219 | + |
2220 | + |
2221 | + |
2222 | + <div id="fileTree" class="sidebox"> |
2223 | + <div class="hd"> |
2224 | + <h2 class="no-toc">Files</h2> |
2225 | + </div> |
2226 | + <div class="bd"> |
2227 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
2228 | + </div> |
2229 | + </div> |
2230 | + |
2231 | + </div> |
2232 | + |
2233 | + <div id="main" class="yui3-u"> |
2234 | + <div class="content"><h4>Class UbuntuUI.Button</h4> |
2235 | +<span class="foundat">Class defined in: <a href="../../files/buttons.js.html#l23"><code>buttons.js:23</code></a></span> |
2236 | +<div class="intro"><p>A Button.</p> |
2237 | +<p>Note the Ubuntu CSS style classes: <em>positive</em>, <em>information</em>, <em>secondary</em>, and <em>negative</em></p> |
2238 | +</div> |
2239 | + |
2240 | + <a name="methods_UbuntuUI.Button"></a> |
2241 | + <div class="method item"> |
2242 | + <strong class="name"><code>UbuntuUI.Button</code></strong>( <code> </code> ) |
2243 | + <br> |
2244 | + <span class="foundat"> |
2245 | + |
2246 | + <a href="../../files/buttons.js.html#l23"><code>buttons.js:23</code></a> |
2247 | + </span><br> |
2248 | + |
2249 | + <h5>Example</h5> |
2250 | + <pre class="code prettyprint"><code> <button data-role="button" id="buttonID">text</button> |
2251 | + |
2252 | + Javascript access: |
2253 | + var button = UI.button("buttonID");</code></pre> |
2254 | + |
2255 | + </div> |
2256 | + |
2257 | +<div id="classdocs"> |
2258 | + <ul> |
2259 | + <li><a href="#methods">Methods</a></li> |
2260 | + </ul> |
2261 | + <div> |
2262 | + <div id="methods"> |
2263 | + <a name="methods_click"></a> |
2264 | + <div class="method item"> |
2265 | + <strong class="name"><code>click</code></strong>( <code>callback </code> ) |
2266 | + <br> |
2267 | + <span class="foundat"> |
2268 | + |
2269 | + <a href="../../files/buttons.js.html#l42"><code>buttons.js:42</code></a> |
2270 | + </span><br> |
2271 | + <p>Associate a function with the button's Click event</p> |
2272 | + |
2273 | + <strong>Parameters:</strong> |
2274 | + <ul class="params"> |
2275 | + <li> |
2276 | + <code>callback</code> <strong><Function></strong> |
2277 | + <ul> |
2278 | + <li>The function to execute on click</li> |
2279 | + </ul> |
2280 | + |
2281 | + </li> |
2282 | + </ul> |
2283 | + <h5>Example</h5> |
2284 | + <pre class="code prettyprint"><code> UI.button("buttonid").click(function(){ |
2285 | + console.log("clicked"); |
2286 | + });</code></pre> |
2287 | + |
2288 | + </div> |
2289 | + <a name="methods_element"></a> |
2290 | + <div class="method item"> |
2291 | + DOMElement <strong class="name"><code>element</code></strong>( <code> </code> ) |
2292 | + <br> |
2293 | + <span class="foundat"> |
2294 | + |
2295 | + <a href="../../files/buttons.js.html#l57"><code>buttons.js:57</code></a> |
2296 | + </span><br> |
2297 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
2298 | + |
2299 | + <br><div class="returns"><strong>Returns:</strong> <DOMElement> </div> |
2300 | + <h5>Example</h5> |
2301 | + <pre class="code prettyprint"><code> var mybutton = UI.button("buttonid").element();</code></pre> |
2302 | + |
2303 | + </div> |
2304 | + </div> |
2305 | + </div> |
2306 | +</div> |
2307 | +</div> |
2308 | + </div> |
2309 | + </div> |
2310 | +</div> |
2311 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
2312 | +<script>prettyPrint();</script> |
2313 | +<script src="../assets/js/yui-prettify.js"></script> |
2314 | +<script src="../assets/js/tabs.js"></script> |
2315 | +</body> |
2316 | +</html> |
2317 | |
2318 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Dialog.html' |
2319 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Dialog.html 1970-01-01 00:00:00 +0000 |
2320 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Dialog.html 2015-04-07 17:56:01 +0000 |
2321 | @@ -0,0 +1,188 @@ |
2322 | +<!DOCTYPE html> |
2323 | +<html lang="en"> |
2324 | +<head> |
2325 | + <meta charset="utf-8"> |
2326 | + <title>UbuntuUI.Dialog - Ubuntu HTML5 API</title> |
2327 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
2328 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
2329 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
2330 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
2331 | +</head> |
2332 | +<body class="yui3-skin-sam"> |
2333 | + |
2334 | +<div id="doc"> |
2335 | + <div id="hd" class="yui3-g header"> |
2336 | + <div class="yui3-u-3-4"> |
2337 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Dialog</a></h1> |
2338 | + </div> |
2339 | + <div class="yui3-u-1-4 version"> |
2340 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
2341 | + </div> |
2342 | + </div> |
2343 | + <div class="yui3-g"> |
2344 | + |
2345 | + <div id="sidebar" class="yui3-u"> |
2346 | + <div id="modules" class="sidebox"> |
2347 | + <div class="hd"> |
2348 | + <h2 class="no-toc">Modules</h2> |
2349 | + </div> |
2350 | + <div class="bd"> |
2351 | + <ul> |
2352 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
2353 | + </li> |
2354 | + </ul> |
2355 | + </div> |
2356 | + </div> |
2357 | + |
2358 | + <div id="classes" class="sidebox"> |
2359 | + <div class="hd"> |
2360 | + <h2 class="no-toc">Classes</h2> |
2361 | + </div> |
2362 | + <div class="bd"> |
2363 | + <ul> |
2364 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
2365 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
2366 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
2367 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
2368 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
2369 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
2370 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
2371 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
2372 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
2373 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
2374 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
2375 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
2376 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
2377 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
2378 | + </ul> |
2379 | + </div> |
2380 | + </div> |
2381 | + |
2382 | + <div id="methods-on-page" class="sidebox on-page"> |
2383 | + <div class="hd"> |
2384 | + <h2 class="no-toc">Methods On Page</h2> |
2385 | + </div> |
2386 | + <div class="bd"> |
2387 | + <ul> |
2388 | + <li><a href="#methods_element">element</a></li> |
2389 | + <li><a href="#methods_hide">hide</a></li> |
2390 | + <li><a href="#methods_show">show</a></li> |
2391 | + <li><a href="#methods_toggle">toggle</a></li> |
2392 | + </ul> |
2393 | + </div> |
2394 | + </div> |
2395 | + |
2396 | + |
2397 | + |
2398 | + |
2399 | + <div id="fileTree" class="sidebox"> |
2400 | + <div class="hd"> |
2401 | + <h2 class="no-toc">Files</h2> |
2402 | + </div> |
2403 | + <div class="bd"> |
2404 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
2405 | + </div> |
2406 | + </div> |
2407 | + |
2408 | + </div> |
2409 | + |
2410 | + <div id="main" class="yui3-u"> |
2411 | + <div class="content"><h4>Class UbuntuUI.Dialog</h4> |
2412 | +<span class="foundat">Class defined in: <a href="../../files/dialogs.js.html#l23"><code>dialogs.js:23</code></a></span> |
2413 | +<div class="intro"><p>Dialogs are modal full-screen popups that prevent other GUI interactions with the application until dismissed.</p> |
2414 | +<p>Dialogs wrap arbitrary markup.</p> |
2415 | +<p>Dialogs are declared at the top level inside the <em>content</em> div.</p> |
2416 | +</div> |
2417 | + |
2418 | + <a name="methods_UbuntuUI.Dialog"></a> |
2419 | + <div class="method item"> |
2420 | + <strong class="name"><code>UbuntuUI.Dialog</code></strong>( <code> </code> ) |
2421 | + <br> |
2422 | + <span class="foundat"> |
2423 | + |
2424 | + <a href="../../files/dialogs.js.html#l23"><code>dialogs.js:23</code></a> |
2425 | + </span><br> |
2426 | + |
2427 | + <h5>Example</h5> |
2428 | + <pre class="code prettyprint"><code> <div data-role="content"> |
2429 | + <div data-role="pagestack"> |
2430 | + [...] |
2431 | + </div> |
2432 | + <div data-role="dialog" id="dialogID"> |
2433 | + [...] |
2434 | + </div> |
2435 | + </div> |
2436 | + |
2437 | + JavaScript access: |
2438 | + var dialog = UI.dialog("dialogID"); |
2439 | + </code></pre> |
2440 | + |
2441 | + </div> |
2442 | + |
2443 | +<div id="classdocs"> |
2444 | + <ul> |
2445 | + <li><a href="#methods">Methods</a></li> |
2446 | + </ul> |
2447 | + <div> |
2448 | + <div id="methods"> |
2449 | + <a name="methods_element"></a> |
2450 | + <div class="method item"> |
2451 | + DOMElement <strong class="name"><code>element</code></strong>( <code> </code> ) |
2452 | + <br> |
2453 | + <span class="foundat"> |
2454 | + |
2455 | + <a href="../../files/dialogs.js.html#l73"><code>dialogs.js:73</code></a> |
2456 | + </span><br> |
2457 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
2458 | + |
2459 | + <br><div class="returns"><strong>Returns:</strong> <DOMElement> </div> |
2460 | + <h5>Example</h5> |
2461 | + <pre class="code prettyprint"><code> var mydialog = UI.dialog("dialogid").element();</code></pre> |
2462 | + |
2463 | + </div> |
2464 | + <a name="methods_hide"></a> |
2465 | + <div class="method item"> |
2466 | + <strong class="name"><code>hide</code></strong>( <code> </code> ) |
2467 | + <br> |
2468 | + <span class="foundat"> |
2469 | + |
2470 | + <a href="../../files/dialogs.js.html#l59"><code>dialogs.js:59</code></a> |
2471 | + </span><br> |
2472 | + <p>Hide a dialog by removing 'active' class</p> |
2473 | + |
2474 | + </div> |
2475 | + <a name="methods_show"></a> |
2476 | + <div class="method item"> |
2477 | + <strong class="name"><code>show</code></strong>( <code> </code> ) |
2478 | + <br> |
2479 | + <span class="foundat"> |
2480 | + |
2481 | + <a href="../../files/dialogs.js.html#l52"><code>dialogs.js:52</code></a> |
2482 | + </span><br> |
2483 | + <p>Display a dialog by adding 'active' CSS class</p> |
2484 | + |
2485 | + </div> |
2486 | + <a name="methods_toggle"></a> |
2487 | + <div class="method item"> |
2488 | + <strong class="name"><code>toggle</code></strong>( <code> </code> ) |
2489 | + <br> |
2490 | + <span class="foundat"> |
2491 | + |
2492 | + <a href="../../files/dialogs.js.html#l66"><code>dialogs.js:66</code></a> |
2493 | + </span><br> |
2494 | + <p>Toggle a dialog, which means removing its 'active' class if it has one, or adding the 'active' class if it does not have one</p> |
2495 | + |
2496 | + </div> |
2497 | + </div> |
2498 | + </div> |
2499 | +</div> |
2500 | +</div> |
2501 | + </div> |
2502 | + </div> |
2503 | +</div> |
2504 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
2505 | +<script>prettyPrint();</script> |
2506 | +<script src="../assets/js/yui-prettify.js"></script> |
2507 | +<script src="../assets/js/tabs.js"></script> |
2508 | +</body> |
2509 | +</html> |
2510 | |
2511 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Header.html' |
2512 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Header.html 1970-01-01 00:00:00 +0000 |
2513 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Header.html 2015-04-07 17:56:01 +0000 |
2514 | @@ -0,0 +1,171 @@ |
2515 | +<!DOCTYPE html> |
2516 | +<html lang="en"> |
2517 | +<head> |
2518 | + <meta charset="utf-8"> |
2519 | + <title>UbuntuUI.Header - Ubuntu HTML5 API</title> |
2520 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
2521 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
2522 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
2523 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
2524 | +</head> |
2525 | +<body class="yui3-skin-sam"> |
2526 | + |
2527 | +<div id="doc"> |
2528 | + <div id="hd" class="yui3-g header"> |
2529 | + <div class="yui3-u-3-4"> |
2530 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Header</a></h1> |
2531 | + </div> |
2532 | + <div class="yui3-u-1-4 version"> |
2533 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
2534 | + </div> |
2535 | + </div> |
2536 | + <div class="yui3-g"> |
2537 | + |
2538 | + <div id="sidebar" class="yui3-u"> |
2539 | + <div id="modules" class="sidebox"> |
2540 | + <div class="hd"> |
2541 | + <h2 class="no-toc">Modules</h2> |
2542 | + </div> |
2543 | + <div class="bd"> |
2544 | + <ul> |
2545 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
2546 | + </li> |
2547 | + </ul> |
2548 | + </div> |
2549 | + </div> |
2550 | + |
2551 | + <div id="classes" class="sidebox"> |
2552 | + <div class="hd"> |
2553 | + <h2 class="no-toc">Classes</h2> |
2554 | + </div> |
2555 | + <div class="bd"> |
2556 | + <ul> |
2557 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
2558 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
2559 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
2560 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
2561 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
2562 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
2563 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
2564 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
2565 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
2566 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
2567 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
2568 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
2569 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
2570 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
2571 | + </ul> |
2572 | + </div> |
2573 | + </div> |
2574 | + |
2575 | + <div id="methods-on-page" class="sidebox on-page"> |
2576 | + <div class="hd"> |
2577 | + <h2 class="no-toc">Methods On Page</h2> |
2578 | + </div> |
2579 | + <div class="bd"> |
2580 | + <ul> |
2581 | + <li><a href="#methods_element">element</a></li> |
2582 | + </ul> |
2583 | + </div> |
2584 | + </div> |
2585 | + |
2586 | + |
2587 | + |
2588 | + |
2589 | + <div id="fileTree" class="sidebox"> |
2590 | + <div class="hd"> |
2591 | + <h2 class="no-toc">Files</h2> |
2592 | + </div> |
2593 | + <div class="bd"> |
2594 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
2595 | + </div> |
2596 | + </div> |
2597 | + |
2598 | + </div> |
2599 | + |
2600 | + <div id="main" class="yui3-u"> |
2601 | + <div class="content"><h4>Class UbuntuUI.Header</h4> |
2602 | +<span class="foundat">Class defined in: <a href="../../files/header.js.html#l23"><code>header.js:23</code></a></span> |
2603 | +<div class="intro"><p>An Ubuntu Header wraps the general Tabs definitions and interaction in the case of a Tab |
2604 | +navigation pattern or is used to display the title of the current page when using a PageStack navigation pattern.</p> |
2605 | +<p>In the case of a Tab navigation pattern, declare the Header and its Tabs in HTML as a direct child |
2606 | +of the top level MainView as a sibling to the <em>content</em> div.</p> |
2607 | +<p>In the case of a PageStack navigation pattern, the Ubuntu Header HTML element should be present |
2608 | +and can be left empty. It will be automatically updated to hold the Title of the current Page being |
2609 | +visited. The value of such a title is taken from the data-title attribute of the currently visited |
2610 | +Page as it is being pushed at the top of the stack (see PageStack.push()).</p> |
2611 | +<p>######Contained list provides Page navigation |
2612 | +A contained unordered list has list items, each of which has "data-page" data attribute whose value of a Page ID that it targets. Clicking the Header/Tabs allows the user to navigate to the Pages identified by these IDs.</p> |
2613 | +</div> |
2614 | + |
2615 | + <a name="methods_UbuntuUI.Header"></a> |
2616 | + <div class="method item"> |
2617 | + <strong class="name"><code>UbuntuUI.Header</code></strong>( <code> </code> ) |
2618 | + <br> |
2619 | + <span class="foundat"> |
2620 | + |
2621 | + <a href="../../files/header.js.html#l23"><code>header.js:23</code></a> |
2622 | + </span><br> |
2623 | + |
2624 | + <h5>Example</h5> |
2625 | + <pre class="code prettyprint"><code> <body> |
2626 | + <div data-role="mainview"> |
2627 | + |
2628 | + <header data-role="header" id="headerID"> |
2629 | + <ul data-role="tabs"> |
2630 | + <li data-role="tabitem" data-page="main">Main</li> |
2631 | + <li data-role="tabitem" data-page="two">Two</li> |
2632 | + </ul> |
2633 | + </header> |
2634 | + |
2635 | + <div data-role="content"> |
2636 | + <div data-role="tab" id="main"> |
2637 | + [...] |
2638 | + </div> |
2639 | + <div data-role="tab" id="two"> |
2640 | + [...] |
2641 | + </div> |
2642 | + </div> |
2643 | + |
2644 | + </div> |
2645 | + </body> |
2646 | + |
2647 | + JavaScript access: |
2648 | + var header = UI.header("headerID");</code></pre> |
2649 | + |
2650 | + </div> |
2651 | + |
2652 | +<div id="classdocs"> |
2653 | + <ul> |
2654 | + <li><a href="#methods">Methods</a></li> |
2655 | + </ul> |
2656 | + <div> |
2657 | + <div id="methods"> |
2658 | + <a name="methods_element"></a> |
2659 | + <div class="method item"> |
2660 | + DOMElement <strong class="name"><code>element</code></strong>( <code> </code> ) |
2661 | + <br> |
2662 | + <span class="foundat"> |
2663 | + |
2664 | + <a href="../../files/header.js.html#l72"><code>header.js:72</code></a> |
2665 | + </span><br> |
2666 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
2667 | + |
2668 | + <br><div class="returns"><strong>Returns:</strong> <DOMElement> </div> |
2669 | + <h5>Example</h5> |
2670 | + <pre class="code prettyprint"><code> var myheader = UI.header("headerid").element();</code></pre> |
2671 | + |
2672 | + </div> |
2673 | + </div> |
2674 | + </div> |
2675 | +</div> |
2676 | +</div> |
2677 | + </div> |
2678 | + </div> |
2679 | +</div> |
2680 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
2681 | +<script>prettyPrint();</script> |
2682 | +<script src="../assets/js/yui-prettify.js"></script> |
2683 | +<script src="../assets/js/tabs.js"></script> |
2684 | +</body> |
2685 | +</html> |
2686 | |
2687 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.List.html' |
2688 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.List.html 1970-01-01 00:00:00 +0000 |
2689 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.List.html 2015-04-07 17:56:01 +0000 |
2690 | @@ -0,0 +1,310 @@ |
2691 | +<!DOCTYPE html> |
2692 | +<html lang="en"> |
2693 | +<head> |
2694 | + <meta charset="utf-8"> |
2695 | + <title>UbuntuUI.List - Ubuntu HTML5 API</title> |
2696 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
2697 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
2698 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
2699 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
2700 | +</head> |
2701 | +<body class="yui3-skin-sam"> |
2702 | + |
2703 | +<div id="doc"> |
2704 | + <div id="hd" class="yui3-g header"> |
2705 | + <div class="yui3-u-3-4"> |
2706 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.List</a></h1> |
2707 | + </div> |
2708 | + <div class="yui3-u-1-4 version"> |
2709 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
2710 | + </div> |
2711 | + </div> |
2712 | + <div class="yui3-g"> |
2713 | + |
2714 | + <div id="sidebar" class="yui3-u"> |
2715 | + <div id="modules" class="sidebox"> |
2716 | + <div class="hd"> |
2717 | + <h2 class="no-toc">Modules</h2> |
2718 | + </div> |
2719 | + <div class="bd"> |
2720 | + <ul> |
2721 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
2722 | + </li> |
2723 | + </ul> |
2724 | + </div> |
2725 | + </div> |
2726 | + |
2727 | + <div id="classes" class="sidebox"> |
2728 | + <div class="hd"> |
2729 | + <h2 class="no-toc">Classes</h2> |
2730 | + </div> |
2731 | + <div class="bd"> |
2732 | + <ul> |
2733 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
2734 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
2735 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
2736 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
2737 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
2738 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
2739 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
2740 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
2741 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
2742 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
2743 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
2744 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
2745 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
2746 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
2747 | + </ul> |
2748 | + </div> |
2749 | + </div> |
2750 | + |
2751 | + <div id="methods-on-page" class="sidebox on-page"> |
2752 | + <div class="hd"> |
2753 | + <h2 class="no-toc">Methods On Page</h2> |
2754 | + </div> |
2755 | + <div class="bd"> |
2756 | + <ul> |
2757 | + <li><a href="#methods_append">append</a></li> |
2758 | + <li><a href="#methods_at">at</a></li> |
2759 | + <li><a href="#methods_element">element</a></li> |
2760 | + <li><a href="#methods_forEach">forEach</a></li> |
2761 | + <li><a href="#methods_remove">remove</a></li> |
2762 | + <li><a href="#methods_removeAllItems">removeAllItems</a></li> |
2763 | + <li><a href="#methods_setHeader">setHeader</a></li> |
2764 | + </ul> |
2765 | + </div> |
2766 | + </div> |
2767 | + |
2768 | + |
2769 | + |
2770 | + |
2771 | + <div id="fileTree" class="sidebox"> |
2772 | + <div class="hd"> |
2773 | + <h2 class="no-toc">Files</h2> |
2774 | + </div> |
2775 | + <div class="bd"> |
2776 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
2777 | + </div> |
2778 | + </div> |
2779 | + |
2780 | + </div> |
2781 | + |
2782 | + <div id="main" class="yui3-u"> |
2783 | + <div class="content"><h4>Class UbuntuUI.List</h4> |
2784 | +<span class="foundat">Class defined in: <a href="../../files/list.js.html#l23"><code>list.js:23</code></a></span> |
2785 | +<div class="intro"><p>A List comes with various options, including: a <em>header</em>, main text (pushed left), an icon (pushed left), and a secondary label (pushed right).</p> |
2786 | +</div> |
2787 | + |
2788 | + <a name="methods_UbuntuUI.List"></a> |
2789 | + <div class="method item"> |
2790 | + <strong class="name"><code>UbuntuUI.List</code></strong>( <code> </code> ) |
2791 | + <br> |
2792 | + <span class="foundat"> |
2793 | + |
2794 | + <a href="../../files/list.js.html#l23"><code>list.js:23</code></a> |
2795 | + </span><br> |
2796 | + |
2797 | + <h5>Example</h5> |
2798 | + <pre class="code prettyprint"><code><section data-role="list" id="testlist"> |
2799 | + <header>My header text</header> |
2800 | + <ul> |
2801 | + <li> |
2802 | + <a href="#">Main text, to the left</a> |
2803 | + </li> |
2804 | + <li> |
2805 | + <a href="#">Main text</a> |
2806 | + <label>Right text</label> |
2807 | + </li> |
2808 | + <li> |
2809 | + <aside> |
2810 | + <img src="someicon.png"> |
2811 | + </aside> |
2812 | + <a href="#">Main text</a> |
2813 | + <label>Right</label> |
2814 | + </li> |
2815 | + </ul> |
2816 | + </section> |
2817 | + |
2818 | + JavaScript access: |
2819 | + var list = UI.list('[id="testlist"]');</code></pre> |
2820 | + |
2821 | + </div> |
2822 | + |
2823 | +<div id="classdocs"> |
2824 | + <ul> |
2825 | + <li><a href="#methods">Methods</a></li> |
2826 | + </ul> |
2827 | + <div> |
2828 | + <div id="methods"> |
2829 | + <a name="methods_append"></a> |
2830 | + <div class="method item"> |
2831 | + Element <strong class="name"><code>append</code></strong>( <code>text, label, id, onclick, user_data </code> ) |
2832 | + <br> |
2833 | + <span class="foundat"> |
2834 | + |
2835 | + <a href="../../files/list.js.html#l104"><code>list.js:104</code></a> |
2836 | + </span><br> |
2837 | + <p>Append an item to a list</p> |
2838 | + |
2839 | + <strong>Parameters:</strong> |
2840 | + <ul class="params"> |
2841 | + <li> |
2842 | + <code>text</code> <strong><String></strong> |
2843 | + <ul> |
2844 | + <li>The main text, flushed left (no markup)</li> |
2845 | + </ul> |
2846 | + |
2847 | + </li> |
2848 | + <li> |
2849 | + <code>label</code> <strong><String></strong> |
2850 | + <ul> |
2851 | + <li>Additional text, flushed right (no markup)</li> |
2852 | + </ul> |
2853 | + |
2854 | + </li> |
2855 | + <li> |
2856 | + <code>id</code> <strong><ID></strong> |
2857 | + <ul> |
2858 | + <li>An id attribute value set for the new list item (must be unique in DOM)</li> |
2859 | + </ul> |
2860 | + |
2861 | + </li> |
2862 | + <li> |
2863 | + <code>onclick</code> <strong><Function></strong> |
2864 | + <ul> |
2865 | + <li>The click callback function</li> |
2866 | + </ul> |
2867 | + |
2868 | + </li> |
2869 | + <li> |
2870 | + <code>user_data</code> <strong><Object></strong> |
2871 | + <ul> |
2872 | + <li>Additional data that is passed to the click callback</li> |
2873 | + </ul> |
2874 | + |
2875 | + </li> |
2876 | + </ul> |
2877 | + <br><div class="returns"><strong>Returns:</strong> <Element> <ul> |
2878 | + <li>The created list item, or null on failure ot create</li> |
2879 | + </ul> |
2880 | + </div> |
2881 | + </div> |
2882 | + <a name="methods_at"></a> |
2883 | + <div class="method item"> |
2884 | + <strong class="name"><code>at</code></strong>( <code>index </code> ) |
2885 | + <br> |
2886 | + <span class="foundat"> |
2887 | + |
2888 | + <a href="../../files/list.js.html#l144"><code>list.js:144</code></a> |
2889 | + </span><br> |
2890 | + <p>Gets a list item <li> by its index, where index counting starts from 1</p> |
2891 | + |
2892 | + <strong>Parameters:</strong> |
2893 | + <ul class="params"> |
2894 | + <li> |
2895 | + <code>index</code> <strong><Number></strong> |
2896 | + |
2897 | + </li> |
2898 | + </ul> |
2899 | + <br><div class="returns"><strong>Returns:</strong> <p>The list item, or null on failure</p> |
2900 | + </div> |
2901 | + </div> |
2902 | + <a name="methods_element"></a> |
2903 | + <div class="method item"> |
2904 | + DOMElement <strong class="name"><code>element</code></strong>( <code> </code> ) |
2905 | + <br> |
2906 | + <span class="foundat"> |
2907 | + |
2908 | + <a href="../../files/list.js.html#l187"><code>list.js:187</code></a> |
2909 | + </span><br> |
2910 | + <p>Returns the DOM element associated with the selector this widget is bind to.</p> |
2911 | + |
2912 | + <br><div class="returns"><strong>Returns:</strong> <DOMElement> </div> |
2913 | + <h5>Example</h5> |
2914 | + <pre class="code prettyprint"><code> var mylist = UI.list("#listid").element();</code></pre> |
2915 | + |
2916 | + </div> |
2917 | + <a name="methods_forEach"></a> |
2918 | + <div class="method item"> |
2919 | + <strong class="name"><code>forEach</code></strong>( <code>func </code> ) |
2920 | + <br> |
2921 | + <span class="foundat"> |
2922 | + |
2923 | + <a href="../../files/list.js.html#l174"><code>list.js:174</code></a> |
2924 | + </span><br> |
2925 | + <p>Iterates over all list items and runs a provided function on each</p> |
2926 | + |
2927 | + <strong>Parameters:</strong> |
2928 | + <ul class="params"> |
2929 | + <li> |
2930 | + <code>func</code> <strong><Function></strong> |
2931 | + <ul> |
2932 | + <li>The function to run on each list item</li> |
2933 | + </ul> |
2934 | + |
2935 | + </li> |
2936 | + </ul> |
2937 | + </div> |
2938 | + <a name="methods_remove"></a> |
2939 | + <div class="method item"> |
2940 | + <strong class="name"><code>remove</code></strong>( <code>index </code> ) |
2941 | + <br> |
2942 | + <span class="foundat"> |
2943 | + |
2944 | + <a href="../../files/list.js.html#l155"><code>list.js:155</code></a> |
2945 | + </span><br> |
2946 | + <p>Removes a list item <li> by its index, where index counting starts from 1</p> |
2947 | + |
2948 | + <strong>Parameters:</strong> |
2949 | + <ul class="params"> |
2950 | + <li> |
2951 | + <code>index</code> <strong><Number></strong> |
2952 | + |
2953 | + </li> |
2954 | + </ul> |
2955 | + </div> |
2956 | + <a name="methods_removeAllItems"></a> |
2957 | + <div class="method item"> |
2958 | + <strong class="name"><code>removeAllItems</code></strong>( <code> </code> ) |
2959 | + <br> |
2960 | + <span class="foundat"> |
2961 | + |
2962 | + <a href="../../files/list.js.html#l166"><code>list.js:166</code></a> |
2963 | + </span><br> |
2964 | + <p>Removes all items from a list</p> |
2965 | + |
2966 | + </div> |
2967 | + <a name="methods_setHeader"></a> |
2968 | + <div class="method item"> |
2969 | + <strong class="name"><code>setHeader</code></strong>( <code>text </code> ) |
2970 | + <br> |
2971 | + <span class="foundat"> |
2972 | + |
2973 | + <a href="../../files/list.js.html#l77"><code>list.js:77</code></a> |
2974 | + </span><br> |
2975 | + <p>Add or Set the List Header</p> |
2976 | + |
2977 | + <strong>Parameters:</strong> |
2978 | + <ul class="params"> |
2979 | + <li> |
2980 | + <code>text</code> <strong><String></strong> |
2981 | + <ul> |
2982 | + <li>The header text</li> |
2983 | + </ul> |
2984 | + |
2985 | + </li> |
2986 | + </ul> |
2987 | + </div> |
2988 | + </div> |
2989 | + </div> |
2990 | +</div> |
2991 | +</div> |
2992 | + </div> |
2993 | + </div> |
2994 | +</div> |
2995 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
2996 | +<script>prettyPrint();</script> |
2997 | +<script src="../assets/js/yui-prettify.js"></script> |
2998 | +<script src="../assets/js/tabs.js"></script> |
2999 | +</body> |
3000 | +</html> |
3001 | |
3002 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.OptionSelector.html' |
3003 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.OptionSelector.html 1970-01-01 00:00:00 +0000 |
3004 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.OptionSelector.html 2015-04-07 17:56:01 +0000 |
3005 | @@ -0,0 +1,133 @@ |
3006 | +<!DOCTYPE html> |
3007 | +<html lang="en"> |
3008 | +<head> |
3009 | + <meta charset="utf-8"> |
3010 | + <title>UbuntuUI.OptionSelector - Ubuntu HTML5 API</title> |
3011 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
3012 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
3013 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
3014 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
3015 | +</head> |
3016 | +<body class="yui3-skin-sam"> |
3017 | + |
3018 | +<div id="doc"> |
3019 | + <div id="hd" class="yui3-g header"> |
3020 | + <div class="yui3-u-3-4"> |
3021 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.OptionSelector</a></h1> |
3022 | + </div> |
3023 | + <div class="yui3-u-1-4 version"> |
3024 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
3025 | + </div> |
3026 | + </div> |
3027 | + <div class="yui3-g"> |
3028 | + |
3029 | + <div id="sidebar" class="yui3-u"> |
3030 | + <div id="modules" class="sidebox"> |
3031 | + <div class="hd"> |
3032 | + <h2 class="no-toc">Modules</h2> |
3033 | + </div> |
3034 | + <div class="bd"> |
3035 | + <ul> |
3036 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
3037 | + </li> |
3038 | + </ul> |
3039 | + </div> |
3040 | + </div> |
3041 | + |
3042 | + <div id="classes" class="sidebox"> |
3043 | + <div class="hd"> |
3044 | + <h2 class="no-toc">Classes</h2> |
3045 | + </div> |
3046 | + <div class="bd"> |
3047 | + <ul> |
3048 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
3049 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
3050 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
3051 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
3052 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
3053 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
3054 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
3055 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
3056 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
3057 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
3058 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
3059 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
3060 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
3061 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
3062 | + </ul> |
3063 | + </div> |
3064 | + </div> |
3065 | + |
3066 | + |
3067 | + |
3068 | + |
3069 | + |
3070 | + <div id="fileTree" class="sidebox"> |
3071 | + <div class="hd"> |
3072 | + <h2 class="no-toc">Files</h2> |
3073 | + </div> |
3074 | + <div class="bd"> |
3075 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
3076 | + </div> |
3077 | + </div> |
3078 | + |
3079 | + </div> |
3080 | + |
3081 | + <div id="main" class="yui3-u"> |
3082 | + <div class="content"><h4>Class UbuntuUI.OptionSelector</h4> |
3083 | +<span class="foundat">Class defined in: <a href="../../files/option-selector.js.html#l23"><code>option-selector.js:23</code></a></span> |
3084 | +<div class="intro"><p>OptionSelector is a component displaying either a single selected value or expanded multiple choice with an optional image and subtext when not expanded, when expanding it opens a |
3085 | +listing of all the possible values for selection with an additional option of always being expanded. If multiple choice is selected the list is expanded automatically.</p> |
3086 | +</div> |
3087 | + |
3088 | + <a name="methods_UbuntuUI.OptionSelector"></a> |
3089 | + <div class="method item"> |
3090 | + <strong class="name"><code>UbuntuUI.OptionSelector</code></strong>( <code> </code> ) |
3091 | + <br> |
3092 | + <span class="foundat"> |
3093 | + |
3094 | + <a href="../../files/option-selector.js.html#l23"><code>option-selector.js:23</code></a> |
3095 | + </span><br> |
3096 | + |
3097 | + <h5>Example</h5> |
3098 | + <pre class="code prettyprint"><code> <section data-role="option-selector" id="OptionSelectorID"> |
3099 | + <ul> |
3100 | + <li data-value="0"> |
3101 | + <p>Label 1</p> |
3102 | + </li> |
3103 | + <li data-value="1"> |
3104 | + <p>Label 2</p> |
3105 | + </li> |
3106 | + <li data-value="3"> |
3107 | + <p>Label 3</p> |
3108 | + </li> |
3109 | + </ul> |
3110 | + </section> |
3111 | + |
3112 | + JavaScript access: |
3113 | + |
3114 | + Expanded: |
3115 | + UI.optionselector("OptionSelectorID", true); |
3116 | + Expanded and multi selection: |
3117 | + UI.optionselector("OptionSelectorID", true, true); |
3118 | + Multi selection: |
3119 | + UI.optionselector("OptionSelectorID", false, true);</code></pre> |
3120 | + |
3121 | + </div> |
3122 | + |
3123 | +<div id="classdocs"> |
3124 | + <ul> |
3125 | + </ul> |
3126 | + <div> |
3127 | + </div> |
3128 | +</div> |
3129 | +</div> |
3130 | + </div> |
3131 | + </div> |
3132 | +</div> |
3133 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
3134 | +<script>prettyPrint();</script> |
3135 | +<script src="../assets/js/yui-prettify.js"></script> |
3136 | +<script src="../assets/js/tabs.js"></script> |
3137 | +</body> |
3138 | +</html> |
3139 | |
3140 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Page.html' |
3141 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Page.html 1970-01-01 00:00:00 +0000 |
3142 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Page.html 2015-04-07 17:56:01 +0000 |
3143 | @@ -0,0 +1,248 @@ |
3144 | +<!DOCTYPE html> |
3145 | +<html lang="en"> |
3146 | +<head> |
3147 | + <meta charset="utf-8"> |
3148 | + <title>UbuntuUI.Page - Ubuntu HTML5 API</title> |
3149 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
3150 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
3151 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
3152 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
3153 | +</head> |
3154 | +<body class="yui3-skin-sam"> |
3155 | + |
3156 | +<div id="doc"> |
3157 | + <div id="hd" class="yui3-g header"> |
3158 | + <div class="yui3-u-3-4"> |
3159 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Page</a></h1> |
3160 | + </div> |
3161 | + <div class="yui3-u-1-4 version"> |
3162 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
3163 | + </div> |
3164 | + </div> |
3165 | + <div class="yui3-g"> |
3166 | + |
3167 | + <div id="sidebar" class="yui3-u"> |
3168 | + <div id="modules" class="sidebox"> |
3169 | + <div class="hd"> |
3170 | + <h2 class="no-toc">Modules</h2> |
3171 | + </div> |
3172 | + <div class="bd"> |
3173 | + <ul> |
3174 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
3175 | + </li> |
3176 | + </ul> |
3177 | + </div> |
3178 | + </div> |
3179 | + |
3180 | + <div id="classes" class="sidebox"> |
3181 | + <div class="hd"> |
3182 | + <h2 class="no-toc">Classes</h2> |
3183 | + </div> |
3184 | + <div class="bd"> |
3185 | + <ul> |
3186 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
3187 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
3188 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
3189 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
3190 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
3191 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
3192 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
3193 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
3194 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
3195 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
3196 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
3197 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
3198 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
3199 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
3200 | + </ul> |
3201 | + </div> |
3202 | + </div> |
3203 | + |
3204 | + <div id="methods-on-page" class="sidebox on-page"> |
3205 | + <div class="hd"> |
3206 | + <h2 class="no-toc">Methods On Page</h2> |
3207 | + </div> |
3208 | + <div class="bd"> |
3209 | + <ul> |
3210 | + <li><a href="#methods_activate">activate</a></li> |
3211 | + <li><a href="#methods_deactivate">deactivate</a></li> |
3212 | + <li><a href="#methods_element">element</a></li> |
3213 | + <li><a href="#methods_isPage">isPage</a></li> |
3214 | + <li><a href="#methods_onactivated">onactivated</a></li> |
3215 | + </ul> |
3216 | + </div> |
3217 | + </div> |
3218 | + |
3219 | + |
3220 | + |
3221 | + |
3222 | + <div id="fileTree" class="sidebox"> |
3223 | + <div class="hd"> |
3224 | + <h2 class="no-toc">Files</h2> |
3225 | + </div> |
3226 | + <div class="bd"> |
3227 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
3228 | + </div> |
3229 | + </div> |
3230 | + |
3231 | + </div> |
3232 | + |
3233 | + <div id="main" class="yui3-u"> |
3234 | + <div class="content"><h4>Class UbuntuUI.Page</h4> |
3235 | +<span class="foundat">Class defined in: <a href="../../files/page.js.html#l23"><code>page.js:23</code></a></span> |
3236 | +<div class="intro"><p>One of the navigation pattern that can be used within an Ubuntu App is the deep navigation. This |
3237 | +pattern is implemented by the Pagestack. A Pagestack contains one or more Pages. Each page displays full-screen. See the Pagestack class.</p> |
3238 | +<p>Each Page must have <em>id</em> and <em>data-title</em> attributes. The <em>id</em> attribute is used a unique reference to push the Page to the top of the Pagestack (see the Pagestack class). The <em>data-title</em> attribute is used to update the Header title as pages are pushed and poped.</p> |
3239 | +</div> |
3240 | + |
3241 | + <a name="methods_UbuntuUI.Page"></a> |
3242 | + <div class="method item"> |
3243 | + <strong class="name"><code>UbuntuUI.Page</code></strong>( <code> </code> ) |
3244 | + <br> |
3245 | + <span class="foundat"> |
3246 | + |
3247 | + <a href="../../files/page.js.html#l23"><code>page.js:23</code></a> |
3248 | + </span><br> |
3249 | + |
3250 | + <h5>Example</h5> |
3251 | + <pre class="code prettyprint"><code> </body> |
3252 | + <div data-role="mainview"> |
3253 | + |
3254 | + <header data-role="header"> |
3255 | + </header> |
3256 | + |
3257 | + <div data-role="content"> |
3258 | + <div data-role="pagestack"> |
3259 | + <div data-role="page" data-title="Main" id="main"> |
3260 | + [...] |
3261 | + </div> |
3262 | + <div data-role="page" data-title="My Data" id="data"> |
3263 | + [...] |
3264 | + </div> |
3265 | + </div> |
3266 | + </div> |
3267 | + |
3268 | + </div> |
3269 | + </body> |
3270 | + |
3271 | + JavaScript access: |
3272 | + var page = UI.page("pageID");</code></pre> |
3273 | + |
3274 | + </div> |
3275 | + |
3276 | +<div id="classdocs"> |
3277 | + <ul> |
3278 | + <li><a href="#methods">Methods</a></li> |
3279 | + <li><a href="#props">Properties</a></li> |
3280 | + </ul> |
3281 | + <div> |
3282 | + <div id="methods"> |
3283 | + <a name="methods_activate"></a> |
3284 | + <div class="method item"> |
3285 | + <strong class="name"><code>activate</code></strong>( <code>properties </code> ) |
3286 | + <br> |
3287 | + <span class="foundat"> |
3288 | + |
3289 | + <a href="../../files/page.js.html#l109"><code>page.js:109</code></a> |
3290 | + </span><br> |
3291 | + <p>Activates the current page.</p> |
3292 | + |
3293 | + <strong>Parameters:</strong> |
3294 | + <ul class="params"> |
3295 | + <li> |
3296 | + <code>properties</code> <strong><Object></strong> |
3297 | + <ul> |
3298 | + <li>Data to be passed down to any activation callback listening for the page activation (see Page.onactivated)</li> |
3299 | + </ul> |
3300 | + |
3301 | + </li> |
3302 | + </ul> |
3303 | + </div> |
3304 | + <a name="methods_deactivate"></a> |
3305 | + <div class="method item"> |
3306 | + <strong class="name"><code>deactivate</code></strong>( <code> </code> ) |
3307 | + <br> |
3308 | + <span class="foundat"> |
3309 | + |
3310 | + <a href="../../files/page.js.html#l101"><code>page.js:101</code></a> |
3311 | + </span><br> |
3312 | + <p>Deactivates the current page.</p> |
3313 | + |
3314 | + </div> |
3315 | + <a name="methods_element"></a> |
3316 | + <div class="method item"> |
3317 | + <strong class="name"><code>element</code></strong>( <code> </code> ) |
3318 | + <br> |
3319 | + <span class="foundat"> |
3320 | + |
3321 | + <a href="../../files/page.js.html#l67"><code>page.js:67</code></a> |
3322 | + </span><br> |
3323 | + <p>Returns the DOM element associated with the selector this widget is bind to.</p> |
3324 | + |
3325 | + <h5>Example</h5> |
3326 | + <pre class="code prettyprint"><code> var mypage = UI.page("pageid").element();</code></pre> |
3327 | + |
3328 | + </div> |
3329 | + <a name="methods_isPage"></a> |
3330 | + <div class="method item"> |
3331 | + Boolean <strong class="name"><code>isPage</code></strong>( <code> </code> ) |
3332 | + <br> |
3333 | + <span class="foundat"> |
3334 | + |
3335 | + <a href="../../files/page.js.html#l182"><code>page.js:182</code></a> |
3336 | + </span><br> |
3337 | + <p>Validates that a given DOM node element is a Ubuntu UI Page.</p> |
3338 | + |
3339 | + <br><div class="returns"><strong>Returns:</strong> <Boolean> <p>if the DOM element is a page</p> |
3340 | + </div> |
3341 | + </div> |
3342 | + <a name="methods_onactivated"></a> |
3343 | + <div class="method item"> |
3344 | + <strong class="name"><code>onactivated</code></strong>( <code>callback </code> ) |
3345 | + <br> |
3346 | + <span class="foundat"> |
3347 | + |
3348 | + <a href="../../files/page.js.html#l121"><code>page.js:121</code></a> |
3349 | + </span><br> |
3350 | + <p>Activates the current page.</p> |
3351 | + |
3352 | + <strong>Parameters:</strong> |
3353 | + <ul class="params"> |
3354 | + <li> |
3355 | + <code>callback</code> <strong><Function></strong> |
3356 | + <ul> |
3357 | + <li>Callback function called with activation properties (from Pagestack.push) when the page is activated</li> |
3358 | + </ul> |
3359 | + |
3360 | + </li> |
3361 | + </ul> |
3362 | + </div> |
3363 | + </div> |
3364 | + <div id="props"> |
3365 | + <a name="props_actions"></a> |
3366 | + <div class="props item"> |
3367 | + <code>actions</code> <<strong>List</strong>><br> |
3368 | + <span class="foundat"><a href="../../files/page.js.html#l77"><code>page.js:77</code></a></span> |
3369 | + <p>actions property.</p> |
3370 | + |
3371 | + </div> |
3372 | + <a name="props_title"></a> |
3373 | + <div class="props item"> |
3374 | + <code>title</code> <<strong>String</strong>><br> |
3375 | + <span class="foundat"><a href="../../files/page.js.html#l89"><code>page.js:89</code></a></span> |
3376 | + <p>title property.</p> |
3377 | + |
3378 | + </div> |
3379 | + </div> |
3380 | + </div> |
3381 | +</div> |
3382 | +</div> |
3383 | + </div> |
3384 | + </div> |
3385 | +</div> |
3386 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
3387 | +<script>prettyPrint();</script> |
3388 | +<script src="../assets/js/yui-prettify.js"></script> |
3389 | +<script src="../assets/js/tabs.js"></script> |
3390 | +</body> |
3391 | +</html> |
3392 | |
3393 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Pagestack.html' |
3394 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Pagestack.html 1970-01-01 00:00:00 +0000 |
3395 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Pagestack.html 2015-04-07 17:56:01 +0000 |
3396 | @@ -0,0 +1,265 @@ |
3397 | +<!DOCTYPE html> |
3398 | +<html lang="en"> |
3399 | +<head> |
3400 | + <meta charset="utf-8"> |
3401 | + <title>UbuntuUI.Pagestack - Ubuntu HTML5 API</title> |
3402 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
3403 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
3404 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
3405 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
3406 | +</head> |
3407 | +<body class="yui3-skin-sam"> |
3408 | + |
3409 | +<div id="doc"> |
3410 | + <div id="hd" class="yui3-g header"> |
3411 | + <div class="yui3-u-3-4"> |
3412 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Pagestack</a></h1> |
3413 | + </div> |
3414 | + <div class="yui3-u-1-4 version"> |
3415 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
3416 | + </div> |
3417 | + </div> |
3418 | + <div class="yui3-g"> |
3419 | + |
3420 | + <div id="sidebar" class="yui3-u"> |
3421 | + <div id="modules" class="sidebox"> |
3422 | + <div class="hd"> |
3423 | + <h2 class="no-toc">Modules</h2> |
3424 | + </div> |
3425 | + <div class="bd"> |
3426 | + <ul> |
3427 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
3428 | + </li> |
3429 | + </ul> |
3430 | + </div> |
3431 | + </div> |
3432 | + |
3433 | + <div id="classes" class="sidebox"> |
3434 | + <div class="hd"> |
3435 | + <h2 class="no-toc">Classes</h2> |
3436 | + </div> |
3437 | + <div class="bd"> |
3438 | + <ul> |
3439 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
3440 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
3441 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
3442 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
3443 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
3444 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
3445 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
3446 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
3447 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
3448 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
3449 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
3450 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
3451 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
3452 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
3453 | + </ul> |
3454 | + </div> |
3455 | + </div> |
3456 | + |
3457 | + <div id="methods-on-page" class="sidebox on-page"> |
3458 | + <div class="hd"> |
3459 | + <h2 class="no-toc">Methods On Page</h2> |
3460 | + </div> |
3461 | + <div class="bd"> |
3462 | + <ul> |
3463 | + <li><a href="#methods_clear">clear</a></li> |
3464 | + <li><a href="#methods_currentPage">currentPage</a></li> |
3465 | + <li><a href="#methods_depth">depth</a></li> |
3466 | + <li><a href="#methods_isEmpty">isEmpty</a></li> |
3467 | + <li><a href="#methods_pop">pop</a></li> |
3468 | + <li><a href="#methods_push">push</a></li> |
3469 | + </ul> |
3470 | + </div> |
3471 | + </div> |
3472 | + |
3473 | + |
3474 | + |
3475 | + |
3476 | + <div id="fileTree" class="sidebox"> |
3477 | + <div class="hd"> |
3478 | + <h2 class="no-toc">Files</h2> |
3479 | + </div> |
3480 | + <div class="bd"> |
3481 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
3482 | + </div> |
3483 | + </div> |
3484 | + |
3485 | + </div> |
3486 | + |
3487 | + <div id="main" class="yui3-u"> |
3488 | + <div class="content"><h4>Class UbuntuUI.Pagestack</h4> |
3489 | +<span class="foundat">Class defined in: <a href="../../files/pagestacks.js.html#l23"><code>pagestacks.js:23</code></a></span> |
3490 | +<div class="intro"><p>The Pagestack manages all Pages in a stack data structure. Initially, the Pagestack contains no Pages. The <em>push()</em> method is normally executed on load to display the app starting page.</p> |
3491 | +<pre class="code prettyprint"><code> UI.pagestack.push("pageID") |
3492 | +</code></pre> |
3493 | +<p>The topmost Page on the Pagestack is always displayed.</p> |
3494 | +<p>The Pagestack is declared as a direct child of the <em>content</em> div.</p> |
3495 | +<p>#####Default application wide footer |
3496 | +The Pagestack contains a default <em>footer</em> (represented in JavaScript as a Toolbar), even if you do not declare one in HTML. The <em>footer</em> has a single Back button. |
3497 | +#####Customized application wide footer |
3498 | +This application-wide <em>footer</em> can be customized (for example, you can add Buttons) by declaring a <em>footer</em> as a direct child of the <em>pagestack</em> div (see example). |
3499 | +######Page specific footers |
3500 | +A <em>page</em> may declare a page-specific <em>footer</em> as a child element.</p> |
3501 | +</div> |
3502 | + |
3503 | + <a name="methods_UbuntuUI.Pagestack"></a> |
3504 | + <div class="method item"> |
3505 | + <strong class="name"><code>UbuntuUI.Pagestack</code></strong>( <code> </code> ) |
3506 | + <br> |
3507 | + <span class="foundat"> |
3508 | + |
3509 | + <a href="../../files/pagestacks.js.html#l23"><code>pagestacks.js:23</code></a> |
3510 | + </span><br> |
3511 | + |
3512 | + <h5>Example</h5> |
3513 | + <pre class="code prettyprint"><code><div data-role="mainview"> |
3514 | + |
3515 | + <header data-role="header"> |
3516 | + </header> |
3517 | + |
3518 | + <div data-role="content"> |
3519 | + |
3520 | + <div data-role="pagestack"> |
3521 | + |
3522 | + <div data-role="page" id="main" data-title="Page 1"> |
3523 | + </div> |
3524 | + |
3525 | + <div data-role="page" id="page2" data-title="Page 2"> |
3526 | + [...] |
3527 | + <footer data-role="footer" class="revealed" id="footerPage2"> |
3528 | + [...] |
3529 | + </footer> |
3530 | + </div> |
3531 | + |
3532 | + <footer data-role="footer" class="revealed" id="footerAppWide"> |
3533 | + [...] |
3534 | + </footer> |
3535 | + |
3536 | + </div> <!-- end of Pagestack div --> |
3537 | + |
3538 | + </div> |
3539 | + |
3540 | + </div> |
3541 | + |
3542 | + JavaScript access: |
3543 | + UI.pagestack.METHOD(); |
3544 | + </code></pre> |
3545 | + |
3546 | + </div> |
3547 | + |
3548 | +<div id="classdocs"> |
3549 | + <ul> |
3550 | + <li><a href="#methods">Methods</a></li> |
3551 | + </ul> |
3552 | + <div> |
3553 | + <div id="methods"> |
3554 | + <a name="methods_clear"></a> |
3555 | + <div class="method item"> |
3556 | + <strong class="name"><code>clear</code></strong>( <code> </code> ) |
3557 | + <br> |
3558 | + <span class="foundat"> |
3559 | + |
3560 | + <a href="../../files/pagestacks.js.html#l139"><code>pagestacks.js:139</code></a> |
3561 | + </span><br> |
3562 | + <p>Clears the whole page stack</p> |
3563 | + |
3564 | + </div> |
3565 | + <a name="methods_currentPage"></a> |
3566 | + <div class="method item"> |
3567 | + PageID | Null <strong class="name"><code>currentPage</code></strong>( <code> </code> ) |
3568 | + <br> |
3569 | + <span class="foundat"> |
3570 | + |
3571 | + <a href="../../files/pagestacks.js.html#l121"><code>pagestacks.js:121</code></a> |
3572 | + </span><br> |
3573 | + <p>Gets the id attribute of the page element on top of this pagestack</p> |
3574 | + |
3575 | + <br><div class="returns"><strong>Returns:</strong> <PageID | Null> <ul> |
3576 | + <li>The topmost page's id attribute, else null when there are no pages on this pagestack</li> |
3577 | + </ul> |
3578 | + </div> |
3579 | + </div> |
3580 | + <a name="methods_depth"></a> |
3581 | + <div class="method item"> |
3582 | + Number <strong class="name"><code>depth</code></strong>( <code> </code> ) |
3583 | + <br> |
3584 | + <span class="foundat"> |
3585 | + |
3586 | + <a href="../../files/pagestacks.js.html#l130"><code>pagestacks.js:130</code></a> |
3587 | + </span><br> |
3588 | + <p>Gets the number of pages in this pagestack</p> |
3589 | + |
3590 | + <br><div class="returns"><strong>Returns:</strong> <Number> <ul> |
3591 | + <li>The number of pages in this pagestack</li> |
3592 | + </ul> |
3593 | + </div> |
3594 | + </div> |
3595 | + <a name="methods_isEmpty"></a> |
3596 | + <div class="method item"> |
3597 | + Boolean <strong class="name"><code>isEmpty</code></strong>( <code> </code> ) |
3598 | + <br> |
3599 | + <span class="foundat"> |
3600 | + |
3601 | + <a href="../../files/pagestacks.js.html#l112"><code>pagestacks.js:112</code></a> |
3602 | + </span><br> |
3603 | + <p>Checks for zero pages in this pagestack</p> |
3604 | + |
3605 | + <br><div class="returns"><strong>Returns:</strong> <Boolean> <ul> |
3606 | + <li>True when this pagestack has no pages, else false</li> |
3607 | + </ul> |
3608 | + </div> |
3609 | + </div> |
3610 | + <a name="methods_pop"></a> |
3611 | + <div class="method item"> |
3612 | + <strong class="name"><code>pop</code></strong>( <code> </code> ) |
3613 | + <br> |
3614 | + <span class="foundat"> |
3615 | + |
3616 | + <a href="../../files/pagestacks.js.html#l150"><code>pagestacks.js:150</code></a> |
3617 | + </span><br> |
3618 | + <p>Pops the current page off this pagestack, which causes the next page to become the top page and to display</p> |
3619 | + |
3620 | + </div> |
3621 | + <a name="methods_push"></a> |
3622 | + <div class="method item"> |
3623 | + <strong class="name"><code>push</code></strong>( <code>id, properties </code> ) |
3624 | + <br> |
3625 | + <span class="foundat"> |
3626 | + |
3627 | + <a href="../../files/pagestacks.js.html#l96"><code>pagestacks.js:96</code></a> |
3628 | + </span><br> |
3629 | + <p>Push a page to the top of this pagestack</p> |
3630 | + |
3631 | + <strong>Parameters:</strong> |
3632 | + <ul class="params"> |
3633 | + <li> |
3634 | + <code>id</code> <strong><String></strong> |
3635 | + <ul> |
3636 | + <li>The id attribute of the page element to be pushed</li> |
3637 | + </ul> |
3638 | + |
3639 | + </li> |
3640 | + <li> |
3641 | + <code>properties</code> <strong><Object></strong> |
3642 | + <ul> |
3643 | + <li>A list of properties passed down to the page that is to be activated</li> |
3644 | + </ul> |
3645 | + |
3646 | + </li> |
3647 | + </ul> |
3648 | + </div> |
3649 | + </div> |
3650 | + </div> |
3651 | +</div> |
3652 | +</div> |
3653 | + </div> |
3654 | + </div> |
3655 | +</div> |
3656 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
3657 | +<script>prettyPrint();</script> |
3658 | +<script src="../assets/js/yui-prettify.js"></script> |
3659 | +<script src="../assets/js/tabs.js"></script> |
3660 | +</body> |
3661 | +</html> |
3662 | |
3663 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Popover.html' |
3664 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Popover.html 1970-01-01 00:00:00 +0000 |
3665 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Popover.html 2015-04-07 17:56:01 +0000 |
3666 | @@ -0,0 +1,210 @@ |
3667 | +<!DOCTYPE html> |
3668 | +<html lang="en"> |
3669 | +<head> |
3670 | + <meta charset="utf-8"> |
3671 | + <title>UbuntuUI.Popover - Ubuntu HTML5 API</title> |
3672 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
3673 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
3674 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
3675 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
3676 | +</head> |
3677 | +<body class="yui3-skin-sam"> |
3678 | + |
3679 | +<div id="doc"> |
3680 | + <div id="hd" class="yui3-g header"> |
3681 | + <div class="yui3-u-3-4"> |
3682 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Popover</a></h1> |
3683 | + </div> |
3684 | + <div class="yui3-u-1-4 version"> |
3685 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
3686 | + </div> |
3687 | + </div> |
3688 | + <div class="yui3-g"> |
3689 | + |
3690 | + <div id="sidebar" class="yui3-u"> |
3691 | + <div id="modules" class="sidebox"> |
3692 | + <div class="hd"> |
3693 | + <h2 class="no-toc">Modules</h2> |
3694 | + </div> |
3695 | + <div class="bd"> |
3696 | + <ul> |
3697 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
3698 | + </li> |
3699 | + </ul> |
3700 | + </div> |
3701 | + </div> |
3702 | + |
3703 | + <div id="classes" class="sidebox"> |
3704 | + <div class="hd"> |
3705 | + <h2 class="no-toc">Classes</h2> |
3706 | + </div> |
3707 | + <div class="bd"> |
3708 | + <ul> |
3709 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
3710 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
3711 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
3712 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
3713 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
3714 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
3715 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
3716 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
3717 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
3718 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
3719 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
3720 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
3721 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
3722 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
3723 | + </ul> |
3724 | + </div> |
3725 | + </div> |
3726 | + |
3727 | + <div id="methods-on-page" class="sidebox on-page"> |
3728 | + <div class="hd"> |
3729 | + <h2 class="no-toc">Methods On Page</h2> |
3730 | + </div> |
3731 | + <div class="bd"> |
3732 | + <ul> |
3733 | + <li><a href="#methods_element">element</a></li> |
3734 | + <li><a href="#methods_hide">hide</a></li> |
3735 | + <li><a href="#methods_show">show</a></li> |
3736 | + <li><a href="#methods_toggle">toggle</a></li> |
3737 | + </ul> |
3738 | + </div> |
3739 | + </div> |
3740 | + |
3741 | + |
3742 | + |
3743 | + |
3744 | + <div id="fileTree" class="sidebox"> |
3745 | + <div class="hd"> |
3746 | + <h2 class="no-toc">Files</h2> |
3747 | + </div> |
3748 | + <div class="bd"> |
3749 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
3750 | + </div> |
3751 | + </div> |
3752 | + |
3753 | + </div> |
3754 | + |
3755 | + <div id="main" class="yui3-u"> |
3756 | + <div class="content"><h4>Class UbuntuUI.Popover</h4> |
3757 | +<span class="foundat">Class defined in: <a href="../../files/popovers.js.html#l23"><code>popovers.js:23</code></a></span> |
3758 | +<div class="intro"><p>A Popover is a div containng markup that can pop up and disappear. (Unlike a Dialog, Popovers are not full screen.)</p> |
3759 | +<p>A Popoves often contain a List whose items are connected to useful JavaScript functions.</p> |
3760 | +<p>######Popover Position |
3761 | +The Popover's position is set relative to a specified base element with the <em>data-gravity="LETTER"</em> attribute. LETTER values:</p> |
3762 | +<ul> |
3763 | +<li>'n': the base element is above the Popover</li> |
3764 | +<li>'s': the base element is below the Popover</li> |
3765 | +<li>'e': the base element is to the east of (to the right of) the Popover (in right-to-left locales)</li> |
3766 | +<li>'w': the base element is to the west of (to the left of) the Popover (in right-to-left locale)</li> |
3767 | +</ul> |
3768 | +</div> |
3769 | + |
3770 | + <a name="methods_UbuntuUI.Popover"></a> |
3771 | + <div class="method item"> |
3772 | + <strong class="name"><code>UbuntuUI.Popover</code></strong>( <code>elem, id </code> ) |
3773 | + <br> |
3774 | + <span class="foundat"> |
3775 | + |
3776 | + <a href="../../files/popovers.js.html#l23"><code>popovers.js:23</code></a> |
3777 | + </span><br> |
3778 | + |
3779 | + <strong>Parameters:</strong> |
3780 | + <ul class="params"> |
3781 | + <li> |
3782 | + <code>elem</code> <strong><String></strong> |
3783 | + <ul> |
3784 | + <li>The element to which the Popover's position is relative</li> |
3785 | + </ul> |
3786 | + |
3787 | + </li> |
3788 | + <li> |
3789 | + <code>id</code> <strong><ID></strong> |
3790 | + <ul> |
3791 | + <li>The id attribute of the Popover in HTML</li> |
3792 | + </ul> |
3793 | + |
3794 | + </li> |
3795 | + </ul> |
3796 | + <h5>Example</h5> |
3797 | + <pre class="code prettyprint"><code> <p id="popoverBase">Text</p> |
3798 | + <div class="popover active" data-gravity="n" id="popover"> |
3799 | + <ul class="list"> |
3800 | + <li class="active"><a href="#">Item1</a></li> |
3801 | + <li><a href="#">Item2</a></li> |
3802 | + </ul> |
3803 | + </div> |
3804 | + |
3805 | + Javascript: |
3806 | + var popBase = document.getElementById("popoverBase"); |
3807 | + var popover = UI.popover(popBase, "popover");</code></pre> |
3808 | + |
3809 | + </div> |
3810 | + |
3811 | +<div id="classdocs"> |
3812 | + <ul> |
3813 | + <li><a href="#methods">Methods</a></li> |
3814 | + </ul> |
3815 | + <div> |
3816 | + <div id="methods"> |
3817 | + <a name="methods_element"></a> |
3818 | + <div class="method item"> |
3819 | + <strong class="name"><code>element</code></strong>( <code> </code> ) |
3820 | + <br> |
3821 | + <span class="foundat"> |
3822 | + |
3823 | + <a href="../../files/popovers.js.html#l230"><code>popovers.js:230</code></a> |
3824 | + </span><br> |
3825 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
3826 | + |
3827 | + <h5>Example</h5> |
3828 | + <pre class="code prettyprint"><code> var mypopover = UI.popover("popoverid").element();</code></pre> |
3829 | + |
3830 | + </div> |
3831 | + <a name="methods_hide"></a> |
3832 | + <div class="method item"> |
3833 | + <strong class="name"><code>hide</code></strong>( <code> </code> ) |
3834 | + <br> |
3835 | + <span class="foundat"> |
3836 | + |
3837 | + <a href="../../files/popovers.js.html#l143"><code>popovers.js:143</code></a> |
3838 | + </span><br> |
3839 | + <p>Hide a Popover</p> |
3840 | + |
3841 | + </div> |
3842 | + <a name="methods_show"></a> |
3843 | + <div class="method item"> |
3844 | + <strong class="name"><code>show</code></strong>( <code> </code> ) |
3845 | + <br> |
3846 | + <span class="foundat"> |
3847 | + |
3848 | + <a href="../../files/popovers.js.html#l66"><code>popovers.js:66</code></a> |
3849 | + </span><br> |
3850 | + <p>Display a Popover</p> |
3851 | + |
3852 | + </div> |
3853 | + <a name="methods_toggle"></a> |
3854 | + <div class="method item"> |
3855 | + <strong class="name"><code>toggle</code></strong>( <code> </code> ) |
3856 | + <br> |
3857 | + <span class="foundat"> |
3858 | + |
3859 | + <a href="../../files/popovers.js.html#l153"><code>popovers.js:153</code></a> |
3860 | + </span><br> |
3861 | + <p>Toggle show/hide status of a Popover</p> |
3862 | + |
3863 | + </div> |
3864 | + </div> |
3865 | + </div> |
3866 | +</div> |
3867 | +</div> |
3868 | + </div> |
3869 | + </div> |
3870 | +</div> |
3871 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
3872 | +<script>prettyPrint();</script> |
3873 | +<script src="../assets/js/yui-prettify.js"></script> |
3874 | +<script src="../assets/js/tabs.js"></script> |
3875 | +</body> |
3876 | +</html> |
3877 | |
3878 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Progress.html' |
3879 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Progress.html 1970-01-01 00:00:00 +0000 |
3880 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Progress.html 2015-04-07 17:56:01 +0000 |
3881 | @@ -0,0 +1,157 @@ |
3882 | +<!DOCTYPE html> |
3883 | +<html lang="en"> |
3884 | +<head> |
3885 | + <meta charset="utf-8"> |
3886 | + <title>UbuntuUI.Progress - Ubuntu HTML5 API</title> |
3887 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
3888 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
3889 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
3890 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
3891 | +</head> |
3892 | +<body class="yui3-skin-sam"> |
3893 | + |
3894 | +<div id="doc"> |
3895 | + <div id="hd" class="yui3-g header"> |
3896 | + <div class="yui3-u-3-4"> |
3897 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Progress</a></h1> |
3898 | + </div> |
3899 | + <div class="yui3-u-1-4 version"> |
3900 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
3901 | + </div> |
3902 | + </div> |
3903 | + <div class="yui3-g"> |
3904 | + |
3905 | + <div id="sidebar" class="yui3-u"> |
3906 | + <div id="modules" class="sidebox"> |
3907 | + <div class="hd"> |
3908 | + <h2 class="no-toc">Modules</h2> |
3909 | + </div> |
3910 | + <div class="bd"> |
3911 | + <ul> |
3912 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
3913 | + </li> |
3914 | + </ul> |
3915 | + </div> |
3916 | + </div> |
3917 | + |
3918 | + <div id="classes" class="sidebox"> |
3919 | + <div class="hd"> |
3920 | + <h2 class="no-toc">Classes</h2> |
3921 | + </div> |
3922 | + <div class="bd"> |
3923 | + <ul> |
3924 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
3925 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
3926 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
3927 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
3928 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
3929 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
3930 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
3931 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
3932 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
3933 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
3934 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
3935 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
3936 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
3937 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
3938 | + </ul> |
3939 | + </div> |
3940 | + </div> |
3941 | + |
3942 | + <div id="methods-on-page" class="sidebox on-page"> |
3943 | + <div class="hd"> |
3944 | + <h2 class="no-toc">Methods On Page</h2> |
3945 | + </div> |
3946 | + <div class="bd"> |
3947 | + <ul> |
3948 | + <li><a href="#methods_element">element</a></li> |
3949 | + <li><a href="#methods_update">update</a></li> |
3950 | + </ul> |
3951 | + </div> |
3952 | + </div> |
3953 | + |
3954 | + |
3955 | + |
3956 | + |
3957 | + <div id="fileTree" class="sidebox"> |
3958 | + <div class="hd"> |
3959 | + <h2 class="no-toc">Files</h2> |
3960 | + </div> |
3961 | + <div class="bd"> |
3962 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
3963 | + </div> |
3964 | + </div> |
3965 | + |
3966 | + </div> |
3967 | + |
3968 | + <div id="main" class="yui3-u"> |
3969 | + <div class="content"><h4>Class UbuntuUI.Progress</h4> |
3970 | +<span class="foundat">Class defined in: <a href="../../files/progress.js.html#l23"><code>progress.js:23</code></a></span> |
3971 | +<div class="intro"><p>A Progress.</p> |
3972 | +<p>Note the Ubuntu CSS style classes: <em>infinite</em></p> |
3973 | +</div> |
3974 | + |
3975 | + <a name="methods_UbuntuUI.Progress"></a> |
3976 | + <div class="method item"> |
3977 | + <strong class="name"><code>UbuntuUI.Progress</code></strong>( <code> </code> ) |
3978 | + <br> |
3979 | + <span class="foundat"> |
3980 | + |
3981 | + <a href="../../files/progress.js.html#l23"><code>progress.js:23</code></a> |
3982 | + </span><br> |
3983 | + |
3984 | + <h5>Example</h5> |
3985 | + <pre class="code prettyprint"><code> <progress value="80" max="100"></progress> |
3986 | + |
3987 | + Javascript access: |
3988 | + var pre = UI.progress("progressID");</code></pre> |
3989 | + |
3990 | + </div> |
3991 | + |
3992 | +<div id="classdocs"> |
3993 | + <ul> |
3994 | + <li><a href="#methods">Methods</a></li> |
3995 | + </ul> |
3996 | + <div> |
3997 | + <div id="methods"> |
3998 | + <a name="methods_element"></a> |
3999 | + <div class="method item"> |
4000 | + <strong class="name"><code>element</code></strong>( <code> </code> ) |
4001 | + <br> |
4002 | + <span class="foundat"> |
4003 | + |
4004 | + <a href="../../files/progress.js.html#l47"><code>progress.js:47</code></a> |
4005 | + </span><br> |
4006 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
4007 | + |
4008 | + <h5>Example</h5> |
4009 | + <pre class="code prettyprint"><code> var myprogress = UI.progress("progressid").element();</code></pre> |
4010 | + |
4011 | + </div> |
4012 | + <a name="methods_update"></a> |
4013 | + <div class="method item"> |
4014 | + <strong class="name"><code>update</code></strong>( <code> </code> ) |
4015 | + <br> |
4016 | + <span class="foundat"> |
4017 | + |
4018 | + <a href="../../files/progress.js.html#l59"><code>progress.js:59</code></a> |
4019 | + </span><br> |
4020 | + <p>Updates the value of the progress bar</p> |
4021 | + |
4022 | + <h5>Example</h5> |
4023 | + <pre class="code prettyprint"><code> myprogress.update(30);</code></pre> |
4024 | + |
4025 | + </div> |
4026 | + </div> |
4027 | + </div> |
4028 | +</div> |
4029 | +</div> |
4030 | + </div> |
4031 | + </div> |
4032 | +</div> |
4033 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
4034 | +<script>prettyPrint();</script> |
4035 | +<script src="../assets/js/yui-prettify.js"></script> |
4036 | +<script src="../assets/js/tabs.js"></script> |
4037 | +</body> |
4038 | +</html> |
4039 | |
4040 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Shape.html' |
4041 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Shape.html 1970-01-01 00:00:00 +0000 |
4042 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Shape.html 2015-04-07 17:56:01 +0000 |
4043 | @@ -0,0 +1,169 @@ |
4044 | +<!DOCTYPE html> |
4045 | +<html lang="en"> |
4046 | +<head> |
4047 | + <meta charset="utf-8"> |
4048 | + <title>UbuntuUI.Shape - Ubuntu HTML5 API</title> |
4049 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
4050 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
4051 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
4052 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
4053 | +</head> |
4054 | +<body class="yui3-skin-sam"> |
4055 | + |
4056 | +<div id="doc"> |
4057 | + <div id="hd" class="yui3-g header"> |
4058 | + <div class="yui3-u-3-4"> |
4059 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Shape</a></h1> |
4060 | + </div> |
4061 | + <div class="yui3-u-1-4 version"> |
4062 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
4063 | + </div> |
4064 | + </div> |
4065 | + <div class="yui3-g"> |
4066 | + |
4067 | + <div id="sidebar" class="yui3-u"> |
4068 | + <div id="modules" class="sidebox"> |
4069 | + <div class="hd"> |
4070 | + <h2 class="no-toc">Modules</h2> |
4071 | + </div> |
4072 | + <div class="bd"> |
4073 | + <ul> |
4074 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
4075 | + </li> |
4076 | + </ul> |
4077 | + </div> |
4078 | + </div> |
4079 | + |
4080 | + <div id="classes" class="sidebox"> |
4081 | + <div class="hd"> |
4082 | + <h2 class="no-toc">Classes</h2> |
4083 | + </div> |
4084 | + <div class="bd"> |
4085 | + <ul> |
4086 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
4087 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
4088 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
4089 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
4090 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
4091 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
4092 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
4093 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
4094 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
4095 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
4096 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
4097 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
4098 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
4099 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
4100 | + </ul> |
4101 | + </div> |
4102 | + </div> |
4103 | + |
4104 | + <div id="methods-on-page" class="sidebox on-page"> |
4105 | + <div class="hd"> |
4106 | + <h2 class="no-toc">Methods On Page</h2> |
4107 | + </div> |
4108 | + <div class="bd"> |
4109 | + <ul> |
4110 | + <li><a href="#methods_click">click</a></li> |
4111 | + <li><a href="#methods_element">element</a></li> |
4112 | + </ul> |
4113 | + </div> |
4114 | + </div> |
4115 | + |
4116 | + |
4117 | + |
4118 | + |
4119 | + <div id="fileTree" class="sidebox"> |
4120 | + <div class="hd"> |
4121 | + <h2 class="no-toc">Files</h2> |
4122 | + </div> |
4123 | + <div class="bd"> |
4124 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
4125 | + </div> |
4126 | + </div> |
4127 | + |
4128 | + </div> |
4129 | + |
4130 | + <div id="main" class="yui3-u"> |
4131 | + <div class="content"><h4>Class UbuntuUI.Shape</h4> |
4132 | +<span class="foundat">Class defined in: <a href="../../files/shape.js.html#l23"><code>shape.js:23</code></a></span> |
4133 | +<div class="intro"><p>An Ubuntu Shape contains and decorates (with CSS styles) some markup, often an <em>img</em>.</p> |
4134 | +</div> |
4135 | + |
4136 | + <a name="methods_UbuntuUI.Shape"></a> |
4137 | + <div class="method item"> |
4138 | + <strong class="name"><code>UbuntuUI.Shape</code></strong>( <code> </code> ) |
4139 | + <br> |
4140 | + <span class="foundat"> |
4141 | + |
4142 | + <a href="../../files/shape.js.html#l23"><code>shape.js:23</code></a> |
4143 | + </span><br> |
4144 | + |
4145 | + <h5>Example</h5> |
4146 | + <pre class="code prettyprint"><code> <div data-role="shape" id="shapeID"> |
4147 | + <img src="URI"/> |
4148 | + </div> |
4149 | + |
4150 | + JavaScript access: |
4151 | + var shape = UI.shape("shapeID"); |
4152 | + </code></pre> |
4153 | + |
4154 | + </div> |
4155 | + |
4156 | +<div id="classdocs"> |
4157 | + <ul> |
4158 | + <li><a href="#methods">Methods</a></li> |
4159 | + </ul> |
4160 | + <div> |
4161 | + <div id="methods"> |
4162 | + <a name="methods_click"></a> |
4163 | + <div class="method item"> |
4164 | + <strong class="name"><code>click</code></strong>( <code>- </code> ) |
4165 | + <br> |
4166 | + <span class="foundat"> |
4167 | + |
4168 | + <a href="../../files/shape.js.html#l42"><code>shape.js:42</code></a> |
4169 | + </span><br> |
4170 | + <p>Associate a function with the Click event</p> |
4171 | + |
4172 | + <strong>Parameters:</strong> |
4173 | + <ul class="params"> |
4174 | + <li> |
4175 | + <code>-</code> <strong><Function></strong> |
4176 | + <p>The function to execute on click</p> |
4177 | + |
4178 | + </li> |
4179 | + </ul> |
4180 | + <h5>Example</h5> |
4181 | + <pre class="code prettyprint"><code> UI.shape("id").click(function(){ |
4182 | + console.log("Clicked"); |
4183 | + });</code></pre> |
4184 | + |
4185 | + </div> |
4186 | + <a name="methods_element"></a> |
4187 | + <div class="method item"> |
4188 | + <strong class="name"><code>element</code></strong>( <code> </code> ) |
4189 | + <br> |
4190 | + <span class="foundat"> |
4191 | + |
4192 | + <a href="../../files/shape.js.html#l59"><code>shape.js:59</code></a> |
4193 | + </span><br> |
4194 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
4195 | + |
4196 | + <h5>Example</h5> |
4197 | + <pre class="code prettyprint"><code> var myshape = UI.shape("shapeid").element();</code></pre> |
4198 | + |
4199 | + </div> |
4200 | + </div> |
4201 | + </div> |
4202 | +</div> |
4203 | +</div> |
4204 | + </div> |
4205 | + </div> |
4206 | +</div> |
4207 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
4208 | +<script>prettyPrint();</script> |
4209 | +<script src="../assets/js/yui-prettify.js"></script> |
4210 | +<script src="../assets/js/tabs.js"></script> |
4211 | +</body> |
4212 | +</html> |
4213 | |
4214 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tab.html' |
4215 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tab.html 1970-01-01 00:00:00 +0000 |
4216 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tab.html 2015-04-07 17:56:01 +0000 |
4217 | @@ -0,0 +1,205 @@ |
4218 | +<!DOCTYPE html> |
4219 | +<html lang="en"> |
4220 | +<head> |
4221 | + <meta charset="utf-8"> |
4222 | + <title>UbuntuUI.Tab - Ubuntu HTML5 API</title> |
4223 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
4224 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
4225 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
4226 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
4227 | +</head> |
4228 | +<body class="yui3-skin-sam"> |
4229 | + |
4230 | +<div id="doc"> |
4231 | + <div id="hd" class="yui3-g header"> |
4232 | + <div class="yui3-u-3-4"> |
4233 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Tab</a></h1> |
4234 | + </div> |
4235 | + <div class="yui3-u-1-4 version"> |
4236 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
4237 | + </div> |
4238 | + </div> |
4239 | + <div class="yui3-g"> |
4240 | + |
4241 | + <div id="sidebar" class="yui3-u"> |
4242 | + <div id="modules" class="sidebox"> |
4243 | + <div class="hd"> |
4244 | + <h2 class="no-toc">Modules</h2> |
4245 | + </div> |
4246 | + <div class="bd"> |
4247 | + <ul> |
4248 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
4249 | + </li> |
4250 | + </ul> |
4251 | + </div> |
4252 | + </div> |
4253 | + |
4254 | + <div id="classes" class="sidebox"> |
4255 | + <div class="hd"> |
4256 | + <h2 class="no-toc">Classes</h2> |
4257 | + </div> |
4258 | + <div class="bd"> |
4259 | + <ul> |
4260 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
4261 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
4262 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
4263 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
4264 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
4265 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
4266 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
4267 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
4268 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
4269 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
4270 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
4271 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
4272 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
4273 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
4274 | + </ul> |
4275 | + </div> |
4276 | + </div> |
4277 | + |
4278 | + <div id="methods-on-page" class="sidebox on-page"> |
4279 | + <div class="hd"> |
4280 | + <h2 class="no-toc">Methods On Page</h2> |
4281 | + </div> |
4282 | + <div class="bd"> |
4283 | + <ul> |
4284 | + <li><a href="#methods_activate">activate</a></li> |
4285 | + <li><a href="#methods_deactivate">deactivate</a></li> |
4286 | + <li><a href="#methods_element">element</a></li> |
4287 | + <li><a href="#methods_isTab">isTab</a></li> |
4288 | + </ul> |
4289 | + </div> |
4290 | + </div> |
4291 | + |
4292 | + |
4293 | + |
4294 | + |
4295 | + <div id="fileTree" class="sidebox"> |
4296 | + <div class="hd"> |
4297 | + <h2 class="no-toc">Files</h2> |
4298 | + </div> |
4299 | + <div class="bd"> |
4300 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
4301 | + </div> |
4302 | + </div> |
4303 | + |
4304 | + </div> |
4305 | + |
4306 | + <div id="main" class="yui3-u"> |
4307 | + <div class="content"><h4>Class UbuntuUI.Tab</h4> |
4308 | +<span class="foundat">Class defined in: <a href="../../files/tab.js.html#l22"><code>tab.js:22</code></a></span> |
4309 | +<div class="intro"><p>One of the navigation pattern that can be used within an Ubuntu App is the flat navigation. Tabs are the standard way to provide such a navigation pattern from within your application.</p> |
4310 | +<p>A Tab represents the UI element that hosts your tab content. This UI element is being activated by the user selecting it as part of the Header element.</p> |
4311 | +</div> |
4312 | + |
4313 | + <a name="methods_UbuntuUI.Tab"></a> |
4314 | + <div class="method item"> |
4315 | + <strong class="name"><code>UbuntuUI.Tab</code></strong>( <code> </code> ) |
4316 | + <br> |
4317 | + <span class="foundat"> |
4318 | + |
4319 | + <a href="../../files/tab.js.html#l22"><code>tab.js:22</code></a> |
4320 | + </span><br> |
4321 | + |
4322 | + <h5>Example</h5> |
4323 | + <pre class="code prettyprint"><code> </body> |
4324 | + |
4325 | + <div data-role="mainview"> |
4326 | + <header data-role="header" id="headerID"> |
4327 | + <ul data-role="tabs"> |
4328 | + <li data-role="tabitem" data-page="tabID"> |
4329 | + Main |
4330 | + </li> |
4331 | + <li data-role="tabitem" data-page="page2"> |
4332 | + Two |
4333 | + </li> |
4334 | + </ul> |
4335 | + </header> |
4336 | + |
4337 | + <div data-role="content"> |
4338 | + <div data-role="tab" id="tabID"> |
4339 | + [...] |
4340 | + </div> |
4341 | + <div data-role="tab" id="page2"> |
4342 | + [...] |
4343 | + </div> |
4344 | + </div> |
4345 | + |
4346 | + </div> |
4347 | + </body> |
4348 | + |
4349 | + JavaScript access: |
4350 | + var tab = UI.tab("tabID");</code></pre> |
4351 | + |
4352 | + </div> |
4353 | + |
4354 | +<div id="classdocs"> |
4355 | + <ul> |
4356 | + <li><a href="#methods">Methods</a></li> |
4357 | + </ul> |
4358 | + <div> |
4359 | + <div id="methods"> |
4360 | + <a name="methods_activate"></a> |
4361 | + <div class="method item"> |
4362 | + <strong class="name"><code>activate</code></strong>( <code> </code> ) |
4363 | + <br> |
4364 | + <span class="foundat"> |
4365 | + |
4366 | + <a href="../../files/tab.js.html#l84"><code>tab.js:84</code></a> |
4367 | + </span><br> |
4368 | + <p>Activates the current tab.</p> |
4369 | + |
4370 | + </div> |
4371 | + <a name="methods_deactivate"></a> |
4372 | + <div class="method item"> |
4373 | + <strong class="name"><code>deactivate</code></strong>( <code> </code> ) |
4374 | + <br> |
4375 | + <span class="foundat"> |
4376 | + |
4377 | + <a href="../../files/tab.js.html#l76"><code>tab.js:76</code></a> |
4378 | + </span><br> |
4379 | + <p>Deactivates the current tab.</p> |
4380 | + |
4381 | + </div> |
4382 | + <a name="methods_element"></a> |
4383 | + <div class="method item"> |
4384 | + DOMElement <strong class="name"><code>element</code></strong>( <code> </code> ) |
4385 | + <br> |
4386 | + <span class="foundat"> |
4387 | + |
4388 | + <a href="../../files/tab.js.html#l65"><code>tab.js:65</code></a> |
4389 | + </span><br> |
4390 | + <p>Returns the DOM element associated with the selector this widget is bind to.</p> |
4391 | + |
4392 | + <br><div class="returns"><strong>Returns:</strong> <DOMElement> </div> |
4393 | + <h5>Example</h5> |
4394 | + <pre class="code prettyprint"><code> var mytab = UI.tab("tabid").element();</code></pre> |
4395 | + |
4396 | + </div> |
4397 | + <a name="methods_isTab"></a> |
4398 | + <div class="method item"> |
4399 | + Boolean <strong class="name"><code>isTab</code></strong>( <code> </code> ) |
4400 | + <br> |
4401 | + <span class="foundat"> |
4402 | + |
4403 | + <a href="../../files/tab.js.html#l94"><code>tab.js:94</code></a> |
4404 | + </span><br> |
4405 | + <p>Validates that a given DOM node element is a Ubuntu UI Tab.</p> |
4406 | + |
4407 | + <br><div class="returns"><strong>Returns:</strong> <Boolean> <p>if the DOM element is a tab</p> |
4408 | + </div> |
4409 | + </div> |
4410 | + </div> |
4411 | + </div> |
4412 | +</div> |
4413 | +</div> |
4414 | + </div> |
4415 | + </div> |
4416 | +</div> |
4417 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
4418 | +<script>prettyPrint();</script> |
4419 | +<script src="../assets/js/yui-prettify.js"></script> |
4420 | +<script src="../assets/js/tabs.js"></script> |
4421 | +</body> |
4422 | +</html> |
4423 | |
4424 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tabs.html' |
4425 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tabs.html 1970-01-01 00:00:00 +0000 |
4426 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Tabs.html 2015-04-07 17:56:01 +0000 |
4427 | @@ -0,0 +1,186 @@ |
4428 | +<!DOCTYPE html> |
4429 | +<html lang="en"> |
4430 | +<head> |
4431 | + <meta charset="utf-8"> |
4432 | + <title>UbuntuUI.Tabs - Ubuntu HTML5 API</title> |
4433 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
4434 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
4435 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
4436 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
4437 | +</head> |
4438 | +<body class="yui3-skin-sam"> |
4439 | + |
4440 | +<div id="doc"> |
4441 | + <div id="hd" class="yui3-g header"> |
4442 | + <div class="yui3-u-3-4"> |
4443 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Tabs</a></h1> |
4444 | + </div> |
4445 | + <div class="yui3-u-1-4 version"> |
4446 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
4447 | + </div> |
4448 | + </div> |
4449 | + <div class="yui3-g"> |
4450 | + |
4451 | + <div id="sidebar" class="yui3-u"> |
4452 | + <div id="modules" class="sidebox"> |
4453 | + <div class="hd"> |
4454 | + <h2 class="no-toc">Modules</h2> |
4455 | + </div> |
4456 | + <div class="bd"> |
4457 | + <ul> |
4458 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
4459 | + </li> |
4460 | + </ul> |
4461 | + </div> |
4462 | + </div> |
4463 | + |
4464 | + <div id="classes" class="sidebox"> |
4465 | + <div class="hd"> |
4466 | + <h2 class="no-toc">Classes</h2> |
4467 | + </div> |
4468 | + <div class="bd"> |
4469 | + <ul> |
4470 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
4471 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
4472 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
4473 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
4474 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
4475 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
4476 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
4477 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
4478 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
4479 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
4480 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
4481 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
4482 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
4483 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
4484 | + </ul> |
4485 | + </div> |
4486 | + </div> |
4487 | + |
4488 | + |
4489 | + |
4490 | + |
4491 | + |
4492 | + <div id="fileTree" class="sidebox"> |
4493 | + <div class="hd"> |
4494 | + <h2 class="no-toc">Files</h2> |
4495 | + </div> |
4496 | + <div class="bd"> |
4497 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
4498 | + </div> |
4499 | + </div> |
4500 | + |
4501 | + </div> |
4502 | + |
4503 | + <div id="main" class="yui3-u"> |
4504 | + <div class="content"><h4>Class UbuntuUI.Tabs</h4> |
4505 | +<span class="foundat">Class defined in: <a href="../../files/tabs.js.html#l23"><code>tabs.js:23</code></a></span> |
4506 | +<div class="intro"><p>One of the navigation pattern that can be used within an Ubuntu App is the flat navigation. Tabs are the standard way to provide such a navigation pattern from within your application.</p> |
4507 | +<p>Tabs are defined from within the Header part of your application HTML. See the Header class for more information.</p> |
4508 | +<p>Declare the Header and Tabs in HTML as a direct child of the top level Page as a sibling to the content div.</p> |
4509 | +</div> |
4510 | + |
4511 | + <a name="methods_UbuntuUI.Tabs"></a> |
4512 | + <div class="method item"> |
4513 | + <strong class="name"><code>UbuntuUI.Tabs</code></strong>( <code> </code> ) |
4514 | + <br> |
4515 | + <span class="foundat"> |
4516 | + |
4517 | + <a href="../../files/tabs.js.html#l23"><code>tabs.js:23</code></a> |
4518 | + </span><br> |
4519 | + |
4520 | + <h5>Example</h5> |
4521 | + <pre class="code prettyprint"><code> <body> |
4522 | + <div data-role="mainview"> |
4523 | + |
4524 | + <header data-role="header"> |
4525 | + <ul data-role="tabs"> |
4526 | + <li data-role="tabitem" data-page="main"> |
4527 | + Main |
4528 | + </li> |
4529 | + <li data-role="tabitem" data-page="page2"> |
4530 | + Two |
4531 | + </li> |
4532 | + </ul> |
4533 | + </header> |
4534 | + |
4535 | + <div data-role="content"> |
4536 | + <div data-role="tab" id="main"> |
4537 | + [...] |
4538 | + </div> |
4539 | + |
4540 | + <div data-role="tab" id="page2"> |
4541 | + [...] |
4542 | + </div> |
4543 | + </div> |
4544 | + |
4545 | + </div> |
4546 | + </body> |
4547 | + |
4548 | + JavaScript access: |
4549 | + UI.tabs.METHOD();</code></pre> |
4550 | + |
4551 | + </div> |
4552 | + |
4553 | +<div id="classdocs"> |
4554 | + <ul> |
4555 | + <li><a href="#props">Properties</a></li> |
4556 | + </ul> |
4557 | + <div> |
4558 | + <div id="props"> |
4559 | + <a name="props_count"></a> |
4560 | + <div class="props item"> |
4561 | + <code>count</code> <<strong>Unknown</strong>><br> |
4562 | + <span class="foundat"><a href="../../files/tabs.js.html#l136"><code>tabs.js:136</code></a></span> |
4563 | + <p>Return the number of tab elements in the header</p> |
4564 | + |
4565 | + </div> |
4566 | + <a name="props_currentPage"></a> |
4567 | + <div class="props item"> |
4568 | + <code>currentPage</code> <<strong>Unknown</strong>><br> |
4569 | + <span class="foundat"><a href="../../files/tabs.js.html#l108"><code>tabs.js:108</code></a></span> |
4570 | + <p>Return the page associated with the currently selected tab</p> |
4571 | + |
4572 | + </div> |
4573 | + <a name="props_selectedTab"></a> |
4574 | + <div class="props item"> |
4575 | + <code>selectedTab</code> <<strong>Unknown</strong>><br> |
4576 | + <span class="foundat"><a href="../../files/tabs.js.html#l120"><code>tabs.js:120</code></a></span> |
4577 | + <p>Return the currently selected tab element</p> |
4578 | + |
4579 | + </div> |
4580 | + <a name="props_selectedTabIndex"></a> |
4581 | + <div class="props item"> |
4582 | + <code>selectedTabIndex</code> <<strong>Unknown</strong>><br> |
4583 | + <span class="foundat"><a href="../../files/tabs.js.html#l86"><code>tabs.js:86</code></a></span> |
4584 | + <p>Return the index of the selected tab</p> |
4585 | + |
4586 | + </div> |
4587 | + <a name="props_selectedTabIndex"></a> |
4588 | + <div class="props item"> |
4589 | + <code>selectedTabIndex</code> <<strong>Unknown</strong>><br> |
4590 | + <span class="foundat"><a href="../../files/tabs.js.html#l95"><code>tabs.js:95</code></a></span> |
4591 | + <p>Sets the index of the selected tab</p> |
4592 | + |
4593 | + </div> |
4594 | + <a name="props_tabChildren"></a> |
4595 | + <div class="props item"> |
4596 | + <code>tabChildren</code> <<strong>Unknown</strong>><br> |
4597 | + <span class="foundat"><a href="../../files/tabs.js.html#l145"><code>tabs.js:145</code></a></span> |
4598 | + <p>Return the list of DOM elements of the tab</p> |
4599 | + |
4600 | + </div> |
4601 | + </div> |
4602 | + </div> |
4603 | +</div> |
4604 | +</div> |
4605 | + </div> |
4606 | + </div> |
4607 | +</div> |
4608 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
4609 | +<script>prettyPrint();</script> |
4610 | +<script src="../assets/js/yui-prettify.js"></script> |
4611 | +<script src="../assets/js/tabs.js"></script> |
4612 | +</body> |
4613 | +</html> |
4614 | |
4615 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.Toolbar.html' |
4616 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Toolbar.html 1970-01-01 00:00:00 +0000 |
4617 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.Toolbar.html 2015-04-07 17:56:01 +0000 |
4618 | @@ -0,0 +1,193 @@ |
4619 | +<!DOCTYPE html> |
4620 | +<html lang="en"> |
4621 | +<head> |
4622 | + <meta charset="utf-8"> |
4623 | + <title>UbuntuUI.Toolbar - Ubuntu HTML5 API</title> |
4624 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
4625 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
4626 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
4627 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
4628 | +</head> |
4629 | +<body class="yui3-skin-sam"> |
4630 | + |
4631 | +<div id="doc"> |
4632 | + <div id="hd" class="yui3-g header"> |
4633 | + <div class="yui3-u-3-4"> |
4634 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI.Toolbar</a></h1> |
4635 | + </div> |
4636 | + <div class="yui3-u-1-4 version"> |
4637 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
4638 | + </div> |
4639 | + </div> |
4640 | + <div class="yui3-g"> |
4641 | + |
4642 | + <div id="sidebar" class="yui3-u"> |
4643 | + <div id="modules" class="sidebox"> |
4644 | + <div class="hd"> |
4645 | + <h2 class="no-toc">Modules</h2> |
4646 | + </div> |
4647 | + <div class="bd"> |
4648 | + <ul> |
4649 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
4650 | + </li> |
4651 | + </ul> |
4652 | + </div> |
4653 | + </div> |
4654 | + |
4655 | + <div id="classes" class="sidebox"> |
4656 | + <div class="hd"> |
4657 | + <h2 class="no-toc">Classes</h2> |
4658 | + </div> |
4659 | + <div class="bd"> |
4660 | + <ul> |
4661 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
4662 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
4663 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
4664 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
4665 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
4666 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
4667 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
4668 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
4669 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
4670 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
4671 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
4672 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
4673 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
4674 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
4675 | + </ul> |
4676 | + </div> |
4677 | + </div> |
4678 | + |
4679 | + <div id="methods-on-page" class="sidebox on-page"> |
4680 | + <div class="hd"> |
4681 | + <h2 class="no-toc">Methods On Page</h2> |
4682 | + </div> |
4683 | + <div class="bd"> |
4684 | + <ul> |
4685 | + <li><a href="#methods_element">element</a></li> |
4686 | + <li><a href="#methods_hide">hide</a></li> |
4687 | + <li><a href="#methods_show">show</a></li> |
4688 | + <li><a href="#methods_toggle">toggle</a></li> |
4689 | + </ul> |
4690 | + </div> |
4691 | + </div> |
4692 | + |
4693 | + |
4694 | + |
4695 | + |
4696 | + <div id="fileTree" class="sidebox"> |
4697 | + <div class="hd"> |
4698 | + <h2 class="no-toc">Files</h2> |
4699 | + </div> |
4700 | + <div class="bd"> |
4701 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
4702 | + </div> |
4703 | + </div> |
4704 | + |
4705 | + </div> |
4706 | + |
4707 | + <div id="main" class="yui3-u"> |
4708 | + <div class="content"><h4>Class UbuntuUI.Toolbar</h4> |
4709 | +<span class="foundat">Class defined in: <a href="../../files/toolbars.js.html#l23"><code>toolbars.js:23</code></a></span> |
4710 | +<div class="intro"><p>A Toolbar is the JavaScript representation of an Ubuntu HTML5 app <em>footer</em>.</p> |
4711 | +<p>######Contained List provides buttons |
4712 | +The Toolbar contains a List, where each list item is treated as a Button (see below). List items (Buttons) are pushed to the right. The default Back button always exists to the left and does not need to be declared.</p> |
4713 | +<p>#####Default and custom footers |
4714 | +See the Pagestack class documentation for information about the default application-wide Footer, customizing it, and adding Page-specific Footers.</p> |
4715 | +</div> |
4716 | + |
4717 | + <a name="methods_UbuntuUI.Toolbar"></a> |
4718 | + <div class="method item"> |
4719 | + <strong class="name"><code>UbuntuUI.Toolbar</code></strong>( <code> </code> ) |
4720 | + <br> |
4721 | + <span class="foundat"> |
4722 | + |
4723 | + <a href="../../files/toolbars.js.html#l23"><code>toolbars.js:23</code></a> |
4724 | + </span><br> |
4725 | + |
4726 | + <h5>Example</h5> |
4727 | + <pre class="code prettyprint"><code> <footer data-role="footer" class="revealed" id="footerID"> |
4728 | + <nav> |
4729 | + <ul> |
4730 | + <li> |
4731 | + <a href="#" id="home">Home</a> |
4732 | + </li> |
4733 | + </ul> |
4734 | + </nav> |
4735 | + </footer> |
4736 | + |
4737 | + JavaScript access: |
4738 | + var toolbar = UI.toolbar("toolbarID"); |
4739 | + UI.button('home').click(function () { |
4740 | + UI.pagestack.push("main"); |
4741 | + }); |
4742 | + </code></pre> |
4743 | + |
4744 | + </div> |
4745 | + |
4746 | +<div id="classdocs"> |
4747 | + <ul> |
4748 | + <li><a href="#methods">Methods</a></li> |
4749 | + </ul> |
4750 | + <div> |
4751 | + <div id="methods"> |
4752 | + <a name="methods_element"></a> |
4753 | + <div class="method item"> |
4754 | + <strong class="name"><code>element</code></strong>( <code> </code> ) |
4755 | + <br> |
4756 | + <span class="foundat"> |
4757 | + |
4758 | + <a href="../../files/toolbars.js.html#l184"><code>toolbars.js:184</code></a> |
4759 | + </span><br> |
4760 | + <p>Returns the DOM element associated with the id this widget is bind to.</p> |
4761 | + |
4762 | + <h5>Example</h5> |
4763 | + <pre class="code prettyprint"><code> var mytoolbar = UI.toolbar("toolbarid").element();</code></pre> |
4764 | + |
4765 | + </div> |
4766 | + <a name="methods_hide"></a> |
4767 | + <div class="method item"> |
4768 | + <strong class="name"><code>hide</code></strong>( <code> </code> ) |
4769 | + <br> |
4770 | + <span class="foundat"> |
4771 | + |
4772 | + <a href="../../files/toolbars.js.html#l168"><code>toolbars.js:168</code></a> |
4773 | + </span><br> |
4774 | + <p>Hide a Toolbar</p> |
4775 | + |
4776 | + </div> |
4777 | + <a name="methods_show"></a> |
4778 | + <div class="method item"> |
4779 | + <strong class="name"><code>show</code></strong>( <code> </code> ) |
4780 | + <br> |
4781 | + <span class="foundat"> |
4782 | + |
4783 | + <a href="../../files/toolbars.js.html#l160"><code>toolbars.js:160</code></a> |
4784 | + </span><br> |
4785 | + <p>Display a Toolbar</p> |
4786 | + |
4787 | + </div> |
4788 | + <a name="methods_toggle"></a> |
4789 | + <div class="method item"> |
4790 | + <strong class="name"><code>toggle</code></strong>( <code> </code> ) |
4791 | + <br> |
4792 | + <span class="foundat"> |
4793 | + |
4794 | + <a href="../../files/toolbars.js.html#l176"><code>toolbars.js:176</code></a> |
4795 | + </span><br> |
4796 | + <p>Toggle show/hide status of a Toolbar</p> |
4797 | + |
4798 | + </div> |
4799 | + </div> |
4800 | + </div> |
4801 | +</div> |
4802 | +</div> |
4803 | + </div> |
4804 | + </div> |
4805 | +</div> |
4806 | +<script src="../assets/vendor/prettify/prettify-min.js"></script> |
4807 | +<script>prettyPrint();</script> |
4808 | +<script src="../assets/js/yui-prettify.js"></script> |
4809 | +<script src="../assets/js/tabs.js"></script> |
4810 | +</body> |
4811 | +</html> |
4812 | |
4813 | === added file '0.1/ambiance/js/docsbuild/classes/UbuntuUI.html' |
4814 | --- 0.1/ambiance/js/docsbuild/classes/UbuntuUI.html 1970-01-01 00:00:00 +0000 |
4815 | +++ 0.1/ambiance/js/docsbuild/classes/UbuntuUI.html 2015-04-07 17:56:01 +0000 |
4816 | @@ -0,0 +1,491 @@ |
4817 | +<!DOCTYPE html> |
4818 | +<html lang="en"> |
4819 | +<head> |
4820 | + <meta charset="utf-8"> |
4821 | + <title>UbuntuUI - Ubuntu HTML5 API</title> |
4822 | + <link rel="stylesheet" href="http://yui.yahooapis.com/3.8.0pr2/build/cssgrids/cssgrids-min.css"> |
4823 | + <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
4824 | + <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> |
4825 | + <script src="http://yui.yahooapis.com/combo?3.8.0pr2/build/yui/yui-min.js"></script> |
4826 | +</head> |
4827 | +<body class="yui3-skin-sam"> |
4828 | + |
4829 | +<div id="doc"> |
4830 | + <div id="hd" class="yui3-g header"> |
4831 | + <div class="yui3-u-3-4"> |
4832 | + <h1><a href="../index.html"><img src="../assets/css/logo.png">Ubuntu HTML5 API: UbuntuUI</a></h1> |
4833 | + </div> |
4834 | + <div class="yui3-u-1-4 version"> |
4835 | + <em>API Docs for: HTML-14.04-dev~bzr202</em> |
4836 | + </div> |
4837 | + </div> |
4838 | + <div class="yui3-g"> |
4839 | + |
4840 | + <div id="sidebar" class="yui3-u"> |
4841 | + <div id="modules" class="sidebox"> |
4842 | + <div class="hd"> |
4843 | + <h2 class="no-toc">Modules</h2> |
4844 | + </div> |
4845 | + <div class="bd"> |
4846 | + <ul> |
4847 | + <li><a href="../modules/UbuntuUI.html">UbuntuUI</a> |
4848 | + </li> |
4849 | + </ul> |
4850 | + </div> |
4851 | + </div> |
4852 | + |
4853 | + <div id="classes" class="sidebox"> |
4854 | + <div class="hd"> |
4855 | + <h2 class="no-toc">Classes</h2> |
4856 | + </div> |
4857 | + <div class="bd"> |
4858 | + <ul> |
4859 | + <li><a href="../classes/UbuntuUI.html">UbuntuUI</a></li> |
4860 | + <li><a href="../classes/UbuntuUI.Button.html">UbuntuUI.Button</a></li> |
4861 | + <li><a href="../classes/UbuntuUI.Dialog.html">UbuntuUI.Dialog</a></li> |
4862 | + <li><a href="../classes/UbuntuUI.Header.html">UbuntuUI.Header</a></li> |
4863 | + <li><a href="../classes/UbuntuUI.List.html">UbuntuUI.List</a></li> |
4864 | + <li><a href="../classes/UbuntuUI.OptionSelector.html">UbuntuUI.OptionSelector</a></li> |
4865 | + <li><a href="../classes/UbuntuUI.Page.html">UbuntuUI.Page</a></li> |
4866 | + <li><a href="../classes/UbuntuUI.Pagestack.html">UbuntuUI.Pagestack</a></li> |
4867 | + <li><a href="../classes/UbuntuUI.Popover.html">UbuntuUI.Popover</a></li> |
4868 | + <li><a href="../classes/UbuntuUI.Progress.html">UbuntuUI.Progress</a></li> |
4869 | + <li><a href="../classes/UbuntuUI.Shape.html">UbuntuUI.Shape</a></li> |
4870 | + <li><a href="../classes/UbuntuUI.Tab.html">UbuntuUI.Tab</a></li> |
4871 | + <li><a href="../classes/UbuntuUI.Tabs.html">UbuntuUI.Tabs</a></li> |
4872 | + <li><a href="../classes/UbuntuUI.Toolbar.html">UbuntuUI.Toolbar</a></li> |
4873 | + </ul> |
4874 | + </div> |
4875 | + </div> |
4876 | + |
4877 | + <div id="methods-on-page" class="sidebox on-page"> |
4878 | + <div class="hd"> |
4879 | + <h2 class="no-toc">Methods On Page</h2> |
4880 | + </div> |
4881 | + <div class="bd"> |
4882 | + <ul> |
4883 | + <li><a href="#methods_button">button</a></li> |
4884 | + <li><a href="#methods_dialog">dialog</a></li> |
4885 | + <li><a href="#methods_element">element</a></li> |
4886 | + <li><a href="#methods_header">header</a></li> |
4887 | + <li><a href="#methods_init">init</a></li> |
4888 | + <li><a href="#methods_list">list</a></li> |
4889 | + <li><a href="#methods_optionselector">optionselector</a></li> |
4890 | + <li><a href="#methods_page">page</a></li> |
4891 | + <li><a href="#methods_pagestack">pagestack</a></li> |
4892 | + <li><a href="#methods_popover">popover</a></li> |
4893 | + <li><a href="#methods_progress">progress</a></li> |
4894 | + <li><a href="#methods_shape">shape</a></li> |
4895 | + <li><a href="#methods_tab">tab</a></li> |
4896 | + <li><a href="#methods_tabs">tabs</a></li> |
4897 | + <li><a href="#methods_toolbar">toolbar</a></li> |
4898 | + </ul> |
4899 | + </div> |
4900 | + </div> |
4901 | + |
4902 | + |
4903 | + |
4904 | + |
4905 | + <div id="fileTree" class="sidebox"> |
4906 | + <div class="hd"> |
4907 | + <h2 class="no-toc">Files</h2> |
4908 | + </div> |
4909 | + <div class="bd"> |
4910 | + <ul><li>buttons.js/<ul></ul></li><li>core.js/<ul></ul></li><li>dialogs.js/<ul></ul></li><li>fast-buttons.js/<ul></ul></li><li>header.js/<ul></ul></li><li>list.js/<ul></ul></li><li>option-selector.js/<ul></ul></li><li>page.js/<ul></ul></li><li>pagestacks.js/<ul></ul></li><li>popovers.js/<ul></ul></li><li>progress.js/<ul></ul></li><li>shape.js/<ul></ul></li><li>tab.js/<ul></ul></li><li>tabs.js/<ul></ul></li><li>toolbars.js/<ul></ul></li></ul> |
4911 | + </div> |
4912 | + </div> |
4913 | + |
4914 | + </div> |
4915 | + |
4916 | + <div id="main" class="yui3-u"> |
4917 | + <div class="content"><h4>Class UbuntuUI</h4> |
4918 | +<span class="foundat">Class defined in: <a href="../../files/core.js.html#l27"><code>core.js:27</code></a></span> |
4919 | +<div class="intro"><p>UbuntuUI is the critical Ubuntu HTML5 framework class. You need to construct an UbuntuUI object and initialize it to have an Ubuntu HTML5 app. You then use this object to access Ubuntu HTML5 objects (and object methods) that correspond to the Ubuntu HTML5 DOM elements.</p> |
4920 | +<p>Note: The UbuntuUI object is "UI" in all API doc examples.</p> |
4921 | +</div> |
4922 | + |
4923 | + <a name="methods_UbuntuUI"></a> |
4924 | + <div class="method item"> |
4925 | + <strong class="name"><code>UbuntuUI</code></strong>( <code> </code> ) |
4926 | + <br> |
4927 | + <span class="foundat"> |
4928 | + |
4929 | + <a href="../../files/core.js.html#l27"><code>core.js:27</code></a> |
4930 | + </span><br> |
4931 | + |
4932 | + <h5>Example</h5> |
4933 | + <pre class="code prettyprint"><code> var UI = new UbuntuUI(); |
4934 | + window.onload = function () { |
4935 | + UI.init(); |
4936 | + UI.pagestack.push('pageid'); |
4937 | + [...] |
4938 | + };</code></pre> |
4939 | + |
4940 | + </div> |
4941 | + |
4942 | +<div id="classdocs"> |
4943 | + <ul> |
4944 | + <li><a href="#methods">Methods</a></li> |
4945 | + </ul> |
4946 | + <div> |
4947 | + <div id="methods"> |
4948 | + <a name="methods_button"></a> |
4949 | + <div class="method item"> |
4950 | + Button <strong class="name"><code>button</code></strong>( <code>id </code> ) |
4951 | + <br> |
4952 | + <span class="foundat"> |
4953 | + |
4954 | + <a href="../../files/core.js.html#l476"><code>core.js:476</code></a> |
4955 | + </span><br> |
4956 | + <p>Gets an Ubuntu Button object</p> |
4957 | + |
4958 | + <strong>Parameters:</strong> |
4959 | + <ul class="params"> |
4960 | + <li> |
4961 | + <code>id</code> <strong><ID></strong> |
4962 | + <ul> |
4963 | + <li>The element's id attribute</li> |
4964 | + </ul> |
4965 | + |
4966 | + </li> |
4967 | + </ul> |
4968 | + <br><div class="returns"><strong>Returns:</strong> <Button> <ul> |
4969 | + <li>The Button with the specified id</li> |
4970 | + </ul> |
4971 | + </div> |
4972 | + </div> |
4973 | + <a name="methods_dialog"></a> |
4974 | + <div class="method item"> |
4975 | + Dialog <strong class="name"><code>dialog</code></strong>( <code>id </code> ) |
4976 | + <br> |
4977 | + <span class="foundat"> |
4978 | + |
4979 | + <a href="../../files/core.js.html#l502"><code>core.js:502</code></a> |
4980 | + </span><br> |
4981 | + <p>Gets an Ubuntu Dialog object</p> |
4982 | + |
4983 | + <strong>Parameters:</strong> |
4984 | + <ul class="params"> |
4985 | + <li> |
4986 | + <code>id</code> <strong><ID></strong> |
4987 | + <ul> |
4988 | + <li>The element's id attribute</li> |
4989 | + </ul> |
4990 | + |
4991 | + </li> |
4992 | + </ul> |
4993 | + <br><div class="returns"><strong>Returns:</strong> <Dialog> <ul> |
4994 | + <li>The Dialog with the specified id</li> |
4995 | + </ul> |
4996 | + </div> |
4997 | + </div> |
4998 | + <a name="methods_element"></a> |
4999 | + <div class="method item"> |
5000 | + Element <strong class="name"><code>element</code></strong>( <code> </code> ) |
FAILED: Continuous integration, rev:202 jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- ci/176/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- vivid/781/ console jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- vivid-amd64- ci/21/console jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- vivid-armhf- ci/21/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-amd64/ 925/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- html5-theme- ci/176/ rebuild
http://