elements inside
136 | blocks. */
137 | pre code, pre kbd, pre samp { font-size: 100%; }
138 |
139 | /* Used to denote text that shouldn't be selectable, such as line numbers or
140 | shell prompts. Guess which browser this doesn't work in. */
141 | .noselect {
142 | -moz-user-select: -moz-none;
143 | -khtml-user-select: none;
144 | -webkit-user-select: none;
145 | -o-user-select: none;
146 | user-select: none;
147 | }
148 |
149 | /* -- Lists ----------------------------------------------------------------- */
150 | dd { margin: 0.2em 0 0.7em 1em; }
151 | dl { margin: 1em 0; }
152 | dt { font-weight: bold; }
153 |
154 | /* -- Tables ---------------------------------------------------------------- */
155 | caption, th { text-align: left; }
156 |
157 | table {
158 | border-collapse: collapse;
159 | width: 100%;
160 | }
161 |
162 | td, th {
163 | border: 1px solid #fff;
164 | padding: 5px 12px;
165 | vertical-align: top;
166 | }
167 |
168 | td { background: #E6E9F5; }
169 | td dl { margin: 0; }
170 | td dl dl { margin: 1em 0; }
171 | td pre:first-child { margin-top: 0; }
172 |
173 | th {
174 | background: #D2D7E6;/*#97A0BF*/
175 | border-bottom: none;
176 | border-top: none;
177 | color: #000;/*#FFF1D5*/
178 | font-family: 'Trebuchet MS', sans-serif;
179 | font-weight: bold;
180 | line-height: 1.3;
181 | white-space: nowrap;
182 | }
183 |
184 |
185 | /* -- Layout and Content ---------------------------------------------------- */
186 | #doc {
187 | margin: auto;
188 | min-width: 1024px;
189 | }
190 |
191 | .content { padding: 0 20px 0 25px; }
192 |
193 | .sidebar {
194 | padding: 0 15px 0 10px;
195 | }
196 | #bd {
197 | padding: 7px 0 130px;
198 | position: relative;
199 | width: 99%;
200 | }
201 |
202 | /* -- Table of Contents ----------------------------------------------------- */
203 |
204 | /* The #toc id refers to the single global table of contents, while the .toc
205 | class refers to generic TOC lists that could be used throughout the page. */
206 |
207 | .toc code, .toc kbd, .toc samp { font-size: 100%; }
208 | .toc li { font-weight: bold; }
209 | .toc li li { font-weight: normal; }
210 |
211 | /* -- Intro and Example Boxes ----------------------------------------------- */
212 | /*
213 | .intro, .example { margin-bottom: 2em; }
214 | .example {
215 | -moz-border-radius: 4px;
216 | -webkit-border-radius: 4px;
217 | border-radius: 4px;
218 | -moz-box-shadow: 0 0 5px #bfbfbf;
219 | -webkit-box-shadow: 0 0 5px #bfbfbf;
220 | box-shadow: 0 0 5px #bfbfbf;
221 | padding: 1em;
222 | }
223 | .intro {
224 | background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
225 | }
226 | */
227 |
228 | /* -- Other Styles ---------------------------------------------------------- */
229 |
230 | /* These are probably YUI-specific, and should be moved out of Selleck's default
231 | theme. */
232 |
233 | .button {
234 | border: 1px solid #dadada;
235 | -moz-border-radius: 3px;
236 | -webkit-border-radius: 3px;
237 | border-radius: 3px;
238 | color: #444;
239 | display: inline-block;
240 | font-family: Helvetica, Arial, sans-serif;
241 | font-size: 92.308%;
242 | font-weight: bold;
243 | padding: 4px 13px 3px;
244 | -moz-text-shadow: 1px 1px 0 #fff;
245 | -webkit-text-shadow: 1px 1px 0 #fff;
246 | text-shadow: 1px 1px 0 #fff;
247 | white-space: nowrap;
248 |
249 | background: #EFEFEF; /* old browsers */
250 | background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
251 | 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 */
252 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
253 | }
254 |
255 | .button:hover {
256 | border-color: #466899;
257 | color: #fff;
258 | text-decoration: none;
259 | -moz-text-shadow: 1px 1px 0 #222;
260 | -webkit-text-shadow: 1px 1px 0 #222;
261 | text-shadow: 1px 1px 0 #222;
262 |
263 | background: #6396D8; /* old browsers */
264 | background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
265 | 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 */
266 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
267 | }
268 |
269 | .newwindow { text-align: center; }
270 |
271 | .header .version em {
272 | display: block;
273 | text-align: right;
274 | }
275 |
276 |
277 | #classdocs .item {
278 | border-bottom: 1px solid #466899;
279 | margin: 1em 0;
280 | padding: 1.5em;
281 | }
282 |
283 | #classdocs .item .params p,
284 | #classdocs .item .returns p,{
285 | display: inline;
286 | }
287 |
288 | #classdocs .item em code, #classdocs .item em.comment {
289 | color: green;
290 | }
291 |
292 | #classdocs .item em.comment a {
293 | color: green;
294 | text-decoration: underline;
295 | }
296 |
297 | #classdocs .foundat {
298 | font-size: 11px;
299 | font-style: normal;
300 | }
301 |
302 | .attrs .emits {
303 | margin-left: 2em;
304 | padding: .5em;
305 | border-left: 1px dashed #ccc;
306 | }
307 |
308 | abbr {
309 | border-bottom: 1px dashed #ccc;
310 | font-size: 80%;
311 | cursor: help;
312 | }
313 |
314 | .prettyprint li.L0,
315 | .prettyprint li.L1,
316 | .prettyprint li.L2,
317 | .prettyprint li.L3,
318 | .prettyprint li.L5,
319 | .prettyprint li.L6,
320 | .prettyprint li.L7,
321 | .prettyprint li.L8 {
322 | list-style: decimal;
323 | }
324 |
325 | ul li p {
326 | margin-top: 0;
327 | }
328 |
329 | .method .name {
330 | font-size: 110%;
331 | }
332 |
333 | .apidocs .methods .extends .method,
334 | .apidocs .properties .extends .property,
335 | .apidocs .attrs .extends .attr,
336 | .apidocs .events .extends .event {
337 | font-weight: bold;
338 | }
339 |
340 | .apidocs .methods .extends .inherited,
341 | .apidocs .properties .extends .inherited,
342 | .apidocs .attrs .extends .inherited,
343 | .apidocs .events .extends .inherited {
344 | font-weight: normal;
345 | }
346 |
347 | #hd {
348 | background: whiteSmoke;
349 | background: -moz-linear-gradient(top,#DCDBD9 0,#F6F5F3 100%);
350 | background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#DCDBD9),color-stop(100%,#F6F5F3));
351 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdbd9',endColorstr='#F6F5F3',GradientType=0);
352 | border-bottom: 1px solid #DFDFDF;
353 | padding: 0 15px 1px 20px;
354 | margin-bottom: 15px;
355 | }
356 |
357 | #hd img {
358 | margin-right: 10px;
359 | vertical-align: middle;
360 | }
361 |
362 |
363 | /* -- API Docs CSS ---------------------------------------------------------- */
364 |
365 | /*
366 | This file is organized so that more generic styles are nearer the top, and more
367 | specific styles are nearer the bottom of the file. This allows us to take full
368 | advantage of the cascade to avoid redundant style rules. Please respect this
369 | convention when making changes.
370 | */
371 |
372 | /* -- Generic TabView styles ------------------------------------------------ */
373 |
374 | /*
375 | These styles apply to all API doc tabviews. To change styles only for a
376 | specific tabview, see the other sections below.
377 | */
378 |
379 | .yui3-js-enabled .apidocs .tabview {
380 | visibility: hidden; /* Hide until the TabView finishes rendering. */
381 | _visibility: visible;
382 | }
383 |
384 | .apidocs .tabview.yui3-tabview-content { visibility: visible; }
385 | .apidocs .tabview .yui3-tabview-panel { background: #fff; }
386 |
387 | /* -- Generic Content Styles ------------------------------------------------ */
388 |
389 | /* Headings */
390 | h2, h3, h4, h5, h6 {
391 | border: none;
392 | color: #30418C;
393 | font-weight: bold;
394 | text-decoration: none;
395 | }
396 |
397 | .link-docs {
398 | float: right;
399 | font-size: 15px;
400 | margin: 4px 4px 6px;
401 | padding: 6px 30px 5px;
402 | }
403 |
404 | .apidocs { zoom: 1; }
405 |
406 | /* Generic box styles. */
407 | .apidocs .box {
408 | border: 1px solid;
409 | border-radius: 3px;
410 | margin: 1em 0;
411 | padding: 0 1em;
412 | }
413 |
414 | /* A flag is a compact, capsule-like indicator of some kind. It's used to
415 | indicate private and protected items, item return types, etc. in an
416 | attractive and unobtrusive way. */
417 | .apidocs .flag {
418 | background: #bababa;
419 | border-radius: 3px;
420 | color: #fff;
421 | font-size: 11px;
422 | margin: 0 0.5em;
423 | padding: 2px 4px 1px;
424 | }
425 |
426 | /* Class/module metadata such as "Uses", "Extends", "Defined in", etc. */
427 | .apidocs .meta {
428 | background: #f9f9f9;
429 | border-color: #efefef;
430 | color: #555;
431 | font-size: 11px;
432 | padding: 3px 6px;
433 | }
434 |
435 | .apidocs .meta p { margin: 0; }
436 |
437 | /* Deprecation warning. */
438 | .apidocs .box.deprecated,
439 | .apidocs .flag.deprecated {
440 | background: #fdac9f;
441 | border: 1px solid #fd7775;
442 | }
443 |
444 | .apidocs .box.deprecated p { margin: 0.5em 0; }
445 | .apidocs .flag.deprecated { color: #333; }
446 |
447 | /* Module/Class intro description. */
448 | .apidocs .intro {
449 | background: #f0f1f8;
450 | border-color: #d4d8eb;
451 | }
452 |
453 | /* Loading spinners. */
454 | #bd.loading .apidocs,
455 | #api-list.loading .yui3-tabview-panel {
456 | background: #fff url(../img/spinner.gif) no-repeat center 70px;
457 | min-height: 150px;
458 | }
459 |
460 | #bd.loading .apidocs .content,
461 | #api-list.loading .yui3-tabview-panel .apis {
462 | display: none;
463 | }
464 |
465 | .apidocs .no-visible-items { color: #666; }
466 |
467 | /* Generic inline list. */
468 | .apidocs ul.inline {
469 | display: inline;
470 | list-style: none;
471 | margin: 0;
472 | padding: 0;
473 | }
474 |
475 | .apidocs ul.inline li { display: inline; }
476 |
477 | /* Comma-separated list. */
478 | .apidocs ul.commas li:after { content: ','; }
479 | .apidocs ul.commas li:last-child:after { content: ''; }
480 |
481 | /* Keyboard shortcuts. */
482 | kbd .cmd { font-family: Monaco, Helvetica; }
483 |
484 | /* -- Generic Access Level styles ------------------------------------------- */
485 | .apidocs .item.protected,
486 | .apidocs .item.private,
487 | .apidocs .index-item.protected,
488 | .apidocs .index-item.deprecated,
489 | .apidocs .index-item.private {
490 | display: none;
491 | }
492 |
493 | .show-deprecated .item.deprecated,
494 | .show-deprecated .index-item.deprecated,
495 | .show-protected .item.protected,
496 | .show-protected .index-item.protected,
497 | .show-private .item.private,
498 | .show-private .index-item.private {
499 | display: block;
500 | }
501 |
502 | .hide-inherited .item.inherited,
503 | .hide-inherited .index-item.inherited {
504 | display: none;
505 | }
506 |
507 | /* -- Generic Item Index styles --------------------------------------------- */
508 | .apidocs .index { margin: 1.5em 0 3em; }
509 |
510 | .apidocs .index h3 {
511 | border-bottom: 1px solid #efefef;
512 | color: #333;
513 | font-size: 13px;
514 | margin: 2em 0 0.6em;
515 | padding-bottom: 2px;
516 | }
517 |
518 | .apidocs .index .no-visible-items { margin-top: 2em; }
519 |
520 | .apidocs .index-list {
521 | border-color: #efefef;
522 | font-size: 12px;
523 | list-style: none;
524 | margin: 0;
525 | padding: 0;
526 | -moz-column-count: 4;
527 | -moz-column-gap: 10px;
528 | -moz-column-width: 170px;
529 | -ms-column-count: 4;
530 | -ms-column-gap: 10px;
531 | -ms-column-width: 170px;
532 | -o-column-count: 4;
533 | -o-column-gap: 10px;
534 | -o-column-width: 170px;
535 | -webkit-column-count: 4;
536 | -webkit-column-gap: 10px;
537 | -webkit-column-width: 170px;
538 | column-count: 4;
539 | column-gap: 10px;
540 | column-width: 170px;
541 | }
542 |
543 | .apidocs .no-columns .index-list {
544 | -moz-column-count: 1;
545 | -ms-column-count: 1;
546 | -o-column-count: 1;
547 | -webkit-column-count: 1;
548 | column-count: 1;
549 | }
550 |
551 | .apidocs .index-item { white-space: nowrap; }
552 |
553 | .apidocs .index-item .flag {
554 | background: none;
555 | border: none;
556 | color: #afafaf;
557 | display: inline;
558 | margin: 0 0 0 0.2em;
559 | padding: 0;
560 | }
561 |
562 | /* -- Generic API item styles ----------------------------------------------- */
563 | .apidocs .args {
564 | display: inline;
565 | margin: 0 0.5em;
566 | }
567 |
568 | .apidocs .flag.chainable { background: #46ca3b; }
569 | .apidocs .flag.protected { background: #9b86fc; }
570 | .apidocs .flag.private { background: #fd6b1b; }
571 | .apidocs .flag.async { background: #356de4; }
572 | .apidocs .flag.required { background: #e60923; }
573 |
574 | .apidocs .item {
575 | border-bottom: 1px solid #efefef;
576 | margin: 1.5em 0 2em;
577 | padding-bottom: 2em;
578 | }
579 |
580 | .apidocs .item h4,
581 | .apidocs .item h5,
582 | .apidocs .item h6 {
583 | color: #333;
584 | font-family: inherit;
585 | font-size: 100%;
586 | }
587 |
588 | .apidocs .item .description p,
589 | .apidocs .item pre.code {
590 | margin: 1em 0 0;
591 | }
592 |
593 | .apidocs .item .meta {
594 | background: none;
595 | border: none;
596 | padding: 0;
597 | }
598 |
599 | .apidocs .item .name {
600 | display: inline;
601 | font-size: 14px;
602 | }
603 |
604 | .apidocs .item .type,
605 | .apidocs .item .type a,
606 | .apidocs .returns-inline {
607 | color: #555;
608 | }
609 |
610 | .apidocs .item .type,
611 | .apidocs .returns-inline {
612 | font-size: 11px;
613 | margin: 0 0 0 0;
614 | }
615 |
616 | .apidocs .item .type a { border-bottom: 1px dotted #afafaf; }
617 | .apidocs .item .type a:hover { border: none; }
618 |
619 | /* -- Item Parameter List --------------------------------------------------- */
620 | .apidocs .params-list {
621 | list-style: square;
622 | margin: 1em 0 0 2em;
623 | padding: 0;
624 | }
625 |
626 | .apidocs .param { margin-bottom: 1em; }
627 |
628 | .apidocs .param .type,
629 | .apidocs .param .type a {
630 | color: #666;
631 | }
632 |
633 | .apidocs .param .type {
634 | margin: 0 0 0 0.5em;
635 | *margin-left: 0.5em;
636 | }
637 |
638 | .apidocs .param-name { font-weight: bold; }
639 |
640 | /* -- Item "Emits" block ---------------------------------------------------- */
641 | .apidocs .item .emits {
642 | background: #f9f9f9;
643 | border-color: #eaeaea;
644 | }
645 |
646 | /* -- Item "Returns" block -------------------------------------------------- */
647 | .apidocs .item .returns .type,
648 | .apidocs .item .returns .type a {
649 | font-size: 100%;
650 | margin: 0;
651 | }
652 |
653 | /* -- Class Constructor block ----------------------------------------------- */
654 | .apidocs .constructor .item {
655 | border: none;
656 | padding-bottom: 0;
657 | }
658 |
659 | /* -- File Source View ------------------------------------------------------ */
660 | .apidocs .file pre.code,
661 | #doc .apidocs .file pre.prettyprint {
662 | background: inherit;
663 | border: none;
664 | overflow: visible;
665 | padding: 0;
666 | }
667 |
668 | .apidocs .L0,
669 | .apidocs .L1,
670 | .apidocs .L2,
671 | .apidocs .L3,
672 | .apidocs .L4,
673 | .apidocs .L5,
674 | .apidocs .L6,
675 | .apidocs .L7,
676 | .apidocs .L8,
677 | .apidocs .L9 {
678 | background: inherit;
679 | }
680 |
681 | /* -- Submodule List -------------------------------------------------------- */
682 | .apidocs .module-submodule-description {
683 | font-size: 12px;
684 | margin: 0.3em 0 1em;
685 | }
686 |
687 | .apidocs .module-submodule-description p:first-child { margin-top: 0; }
688 |
689 | /* -- Sidebar TabView ------------------------------------------------------- */
690 | #api-tabview { margin-top: 0.6em; }
691 |
692 | #api-tabview-filter,
693 | #api-tabview-panel {
694 | border: 1px solid #dfdfdf;
695 | }
696 |
697 | #api-tabview-filter {
698 | border-bottom: none;
699 | border-top: none;
700 | padding: 0.6em 10px 0 10px;
701 | }
702 |
703 | #api-tabview-panel { border-top: none; }
704 | #api-filter { width: 97%; }
705 |
706 | /* -- Content TabView ------------------------------------------------------- */
707 | #classdocs .yui3-tabview-panel { border: none; }
708 |
709 | /* -- Source File Contents -------------------------------------------------- */
710 | .prettyprint li.L0,
711 | .prettyprint li.L1,
712 | .prettyprint li.L2,
713 | .prettyprint li.L3,
714 | .prettyprint li.L5,
715 | .prettyprint li.L6,
716 | .prettyprint li.L7,
717 | .prettyprint li.L8 {
718 | list-style: decimal;
719 | }
720 |
721 | /* -- API options ----------------------------------------------------------- */
722 | #api-options {
723 | font-size: 11px;
724 | margin-top: 2.2em;
725 | position: absolute;
726 | right: 1.5em;
727 | }
728 |
729 | /*#api-options label { margin-right: 0.6em; }*/
730 |
731 | /* -- API list -------------------------------------------------------------- */
732 | #api-list {
733 | margin-top: 1.5em;
734 | *zoom: 1;
735 | }
736 |
737 | .apis {
738 | font-size: 12px;
739 | line-height: 1.4;
740 | list-style: none;
741 | margin: 0;
742 | padding: 0.5em 0 0.5em 0.4em;
743 | }
744 |
745 | .apis a {
746 | border: 1px solid transparent;
747 | display: block;
748 | margin: 0 0 0 -4px;
749 | padding: 1px 4px 0;
750 | text-decoration: none;
751 | _border: none;
752 | _display: inline;
753 | }
754 |
755 | .apis a:hover,
756 | .apis a:focus {
757 | background: #E8EDFC;
758 | background: -moz-linear-gradient(top, #e8edfc 0%, #becef7 100%);
759 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E8EDFC), color-stop(100%,#BECEF7));
760 | border-color: #AAC0FA;
761 | border-radius: 3px;
762 | color: #333;
763 | outline: none;
764 | }
765 |
766 | .api-list-item a:hover,
767 | .api-list-item a:focus {
768 | font-weight: bold;
769 | text-shadow: 1px 1px 1px #fff;
770 | }
771 |
772 | .apis .message { color: #888; }
773 | .apis .result a { padding: 3px 5px 2px; }
774 |
775 | .apis .result .type {
776 | right: 4px;
777 | top: 7px;
778 | }
779 |
780 | .api-list-item .yui3-highlight {
781 | font-weight: bold;
782 | }
783 |
784 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CreateJS/html5ads/acc307901503f2ac61511d94ab96a6191d315904/AdHelper/docs/assets/favicon.png
--------------------------------------------------------------------------------
/AdHelper/docs/assets/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CreateJS/html5ads/acc307901503f2ac61511d94ab96a6191d315904/AdHelper/docs/assets/img/spinner.gif
--------------------------------------------------------------------------------
/AdHelper/docs/assets/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Redirector
5 |
6 |
7 |
8 | Click here to redirect
9 |
10 |
11 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/js/api-filter.js:
--------------------------------------------------------------------------------
1 | YUI.add('api-filter', function (Y) {
2 |
3 | Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], {
4 | // -- Initializer ----------------------------------------------------------
5 | initializer: function () {
6 | this._bindUIACBase();
7 | this._syncUIACBase();
8 | },
9 | getDisplayName: function(name) {
10 |
11 | Y.each(Y.YUIDoc.meta.allModules, function(i) {
12 | if (i.name === name && i.displayName) {
13 | name = i.displayName;
14 | }
15 | });
16 |
17 | return name;
18 | }
19 |
20 | }, {
21 | // -- Attributes -----------------------------------------------------------
22 | ATTRS: {
23 | resultHighlighter: {
24 | value: 'phraseMatch'
25 | },
26 |
27 | // May be set to "classes" or "modules".
28 | queryType: {
29 | value: 'classes'
30 | },
31 |
32 | source: {
33 | valueFn: function() {
34 | var self = this;
35 | return function(q) {
36 | var data = Y.YUIDoc.meta[self.get('queryType')],
37 | out = [];
38 | Y.each(data, function(v) {
39 | if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) {
40 | out.push(v);
41 | }
42 | });
43 | return out;
44 | };
45 | }
46 | }
47 | }
48 | });
49 |
50 | }, '3.4.0', {requires: [
51 | 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources'
52 | ]});
53 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/js/api-list.js:
--------------------------------------------------------------------------------
1 | YUI.add('api-list', function (Y) {
2 |
3 | var Lang = Y.Lang,
4 | YArray = Y.Array,
5 |
6 | APIList = Y.namespace('APIList'),
7 |
8 | classesNode = Y.one('#api-classes'),
9 | inputNode = Y.one('#api-filter'),
10 | modulesNode = Y.one('#api-modules'),
11 | tabviewNode = Y.one('#api-tabview'),
12 |
13 | tabs = APIList.tabs = {},
14 |
15 | filter = APIList.filter = new Y.APIFilter({
16 | inputNode : inputNode,
17 | maxResults: 1000,
18 |
19 | on: {
20 | results: onFilterResults
21 | }
22 | }),
23 |
24 | search = APIList.search = new Y.APISearch({
25 | inputNode : inputNode,
26 | maxResults: 100,
27 |
28 | on: {
29 | clear : onSearchClear,
30 | results: onSearchResults
31 | }
32 | }),
33 |
34 | tabview = APIList.tabview = new Y.TabView({
35 | srcNode : tabviewNode,
36 | panelNode: '#api-tabview-panel',
37 | render : true,
38 |
39 | on: {
40 | selectionChange: onTabSelectionChange
41 | }
42 | }),
43 |
44 | focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, {
45 | circular : true,
46 | descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a',
47 | keys : {next: 'down:40', previous: 'down:38'}
48 | }).focusManager,
49 |
50 | LIST_ITEM_TEMPLATE =
51 | '
' +
52 | '{displayName}' +
53 | '';
54 |
55 | // -- Init ---------------------------------------------------------------------
56 |
57 | // Duckpunch FocusManager's key event handling to prevent it from handling key
58 | // events when a modifier is pressed.
59 | Y.before(function (e, activeDescendant) {
60 | if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
61 | return new Y.Do.Prevent();
62 | }
63 | }, focusManager, '_focusPrevious', focusManager);
64 |
65 | Y.before(function (e, activeDescendant) {
66 | if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
67 | return new Y.Do.Prevent();
68 | }
69 | }, focusManager, '_focusNext', focusManager);
70 |
71 | // Create a mapping of tabs in the tabview so we can refer to them easily later.
72 | tabview.each(function (tab, index) {
73 | var name = tab.get('label').toLowerCase();
74 |
75 | tabs[name] = {
76 | index: index,
77 | name : name,
78 | tab : tab
79 | };
80 | });
81 |
82 | // Switch tabs on Ctrl/Cmd-Left/Right arrows.
83 | tabviewNode.on('key', onTabSwitchKey, 'down:37,39');
84 |
85 | // Focus the filter input when the `/` key is pressed.
86 | Y.one(Y.config.doc).on('key', onSearchKey, 'down:83');
87 |
88 | // Keep the Focus Manager up to date.
89 | inputNode.on('focus', function () {
90 | focusManager.set('activeDescendant', inputNode);
91 | });
92 |
93 | // Update all tabview links to resolved URLs.
94 | tabview.get('panelNode').all('a').each(function (link) {
95 | link.setAttribute('href', link.get('href'));
96 | });
97 |
98 | // -- Private Functions --------------------------------------------------------
99 | function getFilterResultNode() {
100 | return filter.get('queryType') === 'classes' ? classesNode : modulesNode;
101 | }
102 |
103 | // -- Event Handlers -----------------------------------------------------------
104 | function onFilterResults(e) {
105 | var frag = Y.one(Y.config.doc.createDocumentFragment()),
106 | resultNode = getFilterResultNode(),
107 | typePlural = filter.get('queryType'),
108 | typeSingular = typePlural === 'classes' ? 'class' : 'module';
109 |
110 | if (e.results.length) {
111 | YArray.each(e.results, function (result) {
112 | frag.append(Lang.sub(LIST_ITEM_TEMPLATE, {
113 | rootPath : APIList.rootPath,
114 | displayName : filter.getDisplayName(result.highlighted),
115 | name : result.text,
116 | typePlural : typePlural,
117 | typeSingular: typeSingular
118 | }));
119 | });
120 | } else {
121 | frag.append(
122 | '' +
123 | 'No ' + typePlural + ' found.' +
124 | ''
125 | );
126 | }
127 |
128 | resultNode.empty(true);
129 | resultNode.append(frag);
130 |
131 | focusManager.refresh();
132 | }
133 |
134 | function onSearchClear(e) {
135 |
136 | focusManager.refresh();
137 | }
138 |
139 | function onSearchKey(e) {
140 | var target = e.target;
141 |
142 | if (target.test('input,select,textarea')
143 | || target.get('isContentEditable')) {
144 | return;
145 | }
146 |
147 | e.preventDefault();
148 |
149 | inputNode.focus();
150 | focusManager.refresh();
151 | }
152 |
153 | function onSearchResults(e) {
154 | var frag = Y.one(Y.config.doc.createDocumentFragment());
155 |
156 | if (e.results.length) {
157 | YArray.each(e.results, function (result) {
158 | frag.append(result.display);
159 | });
160 | } else {
161 | frag.append(
162 | '' +
163 | 'No results found. Maybe you\'ll have better luck with a ' +
164 | 'different query?' +
165 | ''
166 | );
167 | }
168 |
169 |
170 | focusManager.refresh();
171 | }
172 |
173 | function onTabSelectionChange(e) {
174 | var tab = e.newVal,
175 | name = tab.get('label').toLowerCase();
176 |
177 | tabs.selected = {
178 | index: tab.get('index'),
179 | name : name,
180 | tab : tab
181 | };
182 |
183 | switch (name) {
184 | case 'classes': // fallthru
185 | case 'modules':
186 | filter.setAttrs({
187 | minQueryLength: 0,
188 | queryType : name
189 | });
190 |
191 | search.set('minQueryLength', -1);
192 |
193 | // Only send a request if this isn't the initially-selected tab.
194 | if (e.prevVal) {
195 | filter.sendRequest(filter.get('value'));
196 | }
197 | break;
198 |
199 | case 'everything':
200 | filter.set('minQueryLength', -1);
201 | search.set('minQueryLength', 1);
202 |
203 | if (search.get('value')) {
204 | search.sendRequest(search.get('value'));
205 | } else {
206 | inputNode.focus();
207 | }
208 | break;
209 |
210 | default:
211 | // WTF? We shouldn't be here!
212 | filter.set('minQueryLength', -1);
213 | search.set('minQueryLength', -1);
214 | }
215 |
216 | if (focusManager) {
217 | setTimeout(function () {
218 | focusManager.refresh();
219 | }, 1);
220 | }
221 | }
222 |
223 | function onTabSwitchKey(e) {
224 | var currentTabIndex = tabs.selected.index;
225 |
226 | if (!(e.ctrlKey || e.metaKey)) {
227 | return;
228 | }
229 |
230 | e.preventDefault();
231 |
232 | switch (e.keyCode) {
233 | case 37: // left arrow
234 | if (currentTabIndex > 0) {
235 | tabview.selectChild(currentTabIndex - 1);
236 | inputNode.focus();
237 | }
238 | break;
239 |
240 | case 39: // right arrow
241 | if (currentTabIndex < (Y.Object.size(tabs) - 2)) {
242 | tabview.selectChild(currentTabIndex + 1);
243 | inputNode.focus();
244 | }
245 | break;
246 | }
247 | }
248 |
249 | }, '3.4.0', {requires: [
250 | 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview'
251 | ]});
252 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/js/api-search.js:
--------------------------------------------------------------------------------
1 | YUI.add('api-search', function (Y) {
2 |
3 | var Lang = Y.Lang,
4 | Node = Y.Node,
5 | YArray = Y.Array;
6 |
7 | Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], {
8 | // -- Public Properties ----------------------------------------------------
9 | RESULT_TEMPLATE:
10 | '' +
11 | '' +
12 | '{name}
' +
13 | '{resultType}' +
14 | '{description}
' +
15 | '{class}' +
16 | '' +
17 | '',
18 |
19 | // -- Initializer ----------------------------------------------------------
20 | initializer: function () {
21 | this._bindUIACBase();
22 | this._syncUIACBase();
23 | },
24 |
25 | // -- Protected Methods ----------------------------------------------------
26 | _apiResultFilter: function (query, results) {
27 | // Filter components out of the results.
28 | return YArray.filter(results, function (result) {
29 | return result.raw.resultType === 'component' ? false : result;
30 | });
31 | },
32 |
33 | _apiResultFormatter: function (query, results) {
34 | return YArray.map(results, function (result) {
35 | var raw = Y.merge(result.raw), // create a copy
36 | desc = raw.description || '';
37 |
38 | // Convert description to text and truncate it if necessary.
39 | desc = Node.create('' + desc + '
').get('text');
40 |
41 | if (desc.length > 65) {
42 | desc = Y.Escape.html(desc.substr(0, 65)) + ' …';
43 | } else {
44 | desc = Y.Escape.html(desc);
45 | }
46 |
47 | raw['class'] || (raw['class'] = '');
48 | raw.description = desc;
49 |
50 | // Use the highlighted result name.
51 | raw.name = result.highlighted;
52 |
53 | return Lang.sub(this.RESULT_TEMPLATE, raw);
54 | }, this);
55 | },
56 |
57 | _apiTextLocator: function (result) {
58 | return result.displayName || result.name;
59 | }
60 | }, {
61 | // -- Attributes -----------------------------------------------------------
62 | ATTRS: {
63 | resultFormatter: {
64 | valueFn: function () {
65 | return this._apiResultFormatter;
66 | }
67 | },
68 |
69 | resultFilters: {
70 | valueFn: function () {
71 | return this._apiResultFilter;
72 | }
73 | },
74 |
75 | resultHighlighter: {
76 | value: 'phraseMatch'
77 | },
78 |
79 | resultListLocator: {
80 | value: 'data.results'
81 | },
82 |
83 | resultTextLocator: {
84 | valueFn: function () {
85 | return this._apiTextLocator;
86 | }
87 | },
88 |
89 | source: {
90 | value: '/api/v1/search?q={query}&count={maxResults}'
91 | }
92 | }
93 | });
94 |
95 | }, '3.4.0', {requires: [
96 | 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources',
97 | 'escape'
98 | ]});
99 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/js/apidocs.js:
--------------------------------------------------------------------------------
1 | YUI().use(
2 | 'yuidoc-meta',
3 | 'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
4 | function (Y) {
5 |
6 | var win = Y.config.win,
7 | localStorage = win.localStorage,
8 |
9 | bdNode = Y.one('#bd'),
10 |
11 | pjax,
12 | defaultRoute,
13 |
14 | classTabView,
15 | selectedTab;
16 |
17 | // Kill pjax functionality unless serving over HTTP.
18 | if (!Y.getLocation().protocol.match(/^https?\:/)) {
19 | Y.Router.html5 = false;
20 | }
21 |
22 | // Create the default route with middleware which enables syntax highlighting
23 | // on the loaded content.
24 | defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
25 | prettyPrint();
26 | bdNode.removeClass('loading');
27 |
28 | next();
29 | });
30 |
31 | pjax = new Y.Pjax({
32 | container : '#docs-main',
33 | contentSelector: '#docs-main > .content',
34 | linkSelector : '#bd a',
35 | titleSelector : '#xhr-title',
36 |
37 | navigateOnHash: true,
38 | root : '/',
39 | routes : [
40 | // -- / ----------------------------------------------------------------
41 | {
42 | path : '/(index.html)?',
43 | callbacks: defaultRoute
44 | },
45 |
46 | // -- /classes/* -------------------------------------------------------
47 | {
48 | path : '/classes/:class.html*',
49 | callbacks: [defaultRoute, 'handleClasses']
50 | },
51 |
52 | // -- /files/* ---------------------------------------------------------
53 | {
54 | path : '/files/*file',
55 | callbacks: [defaultRoute, 'handleFiles']
56 | },
57 |
58 | // -- /modules/* -------------------------------------------------------
59 | {
60 | path : '/modules/:module.html*',
61 | callbacks: defaultRoute
62 | }
63 | ]
64 | });
65 |
66 | // -- Utility Functions --------------------------------------------------------
67 |
68 | pjax.checkVisibility = function (tab) {
69 | tab || (tab = selectedTab);
70 |
71 | if (!tab) { return; }
72 |
73 | var panelNode = tab.get('panelNode'),
74 | visibleItems;
75 |
76 | // If no items are visible in the tab panel due to the current visibility
77 | // settings, display a message to that effect.
78 | visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
79 | if (itemNode.getComputedStyle('display') !== 'none') {
80 | return true;
81 | }
82 | });
83 |
84 | panelNode.all('.no-visible-items').remove();
85 |
86 | if (!visibleItems) {
87 | if (Y.one('#index .index-item')) {
88 | panelNode.append(
89 | '' +
90 | '
' +
91 | 'Some items are not shown due to the current visibility ' +
92 | 'settings. Use the checkboxes at the upper right of this ' +
93 | 'page to change the visibility settings.' +
94 | '
' +
95 | '
'
96 | );
97 | } else {
98 | panelNode.append(
99 | '' +
100 | '
' +
101 | 'This class doesn\'t provide any methods, properties, ' +
102 | 'attributes, or events.' +
103 | '
' +
104 | '
'
105 | );
106 | }
107 | }
108 |
109 | // Hide index sections without any visible items.
110 | Y.all('.index-section').each(function (section) {
111 | var items = 0,
112 | visibleItems = 0;
113 |
114 | section.all('.index-item').each(function (itemNode) {
115 | items += 1;
116 |
117 | if (itemNode.getComputedStyle('display') !== 'none') {
118 | visibleItems += 1;
119 | }
120 | });
121 |
122 | section.toggleClass('hidden', !visibleItems);
123 | section.toggleClass('no-columns', visibleItems < 4);
124 | });
125 | };
126 |
127 | pjax.initClassTabView = function () {
128 | if (!Y.all('#classdocs .api-class-tab').size()) {
129 | return;
130 | }
131 |
132 | if (classTabView) {
133 | classTabView.destroy();
134 | selectedTab = null;
135 | }
136 |
137 | classTabView = new Y.TabView({
138 | srcNode: '#classdocs',
139 |
140 | on: {
141 | selectionChange: pjax.onTabSelectionChange
142 | }
143 | });
144 |
145 | pjax.updateTabState();
146 | classTabView.render();
147 | };
148 |
149 | pjax.initLineNumbers = function () {
150 | var hash = win.location.hash.substring(1),
151 | container = pjax.get('container'),
152 | hasLines, node;
153 |
154 | // Add ids for each line number in the file source view.
155 | container.all('.linenums>li').each(function (lineNode, index) {
156 | lineNode.set('id', 'l' + (index + 1));
157 | lineNode.addClass('file-line');
158 | hasLines = true;
159 | });
160 |
161 | // Scroll to the desired line.
162 | if (hasLines && /^l\d+$/.test(hash)) {
163 | if ((node = container.getById(hash))) {
164 | win.scroll(0, node.getY());
165 | }
166 | }
167 | };
168 |
169 | pjax.initRoot = function () {
170 | var terminators = /^(?:classes|files|modules)$/,
171 | parts = pjax._getPathRoot().split('/'),
172 | root = [],
173 | i, len, part;
174 |
175 | for (i = 0, len = parts.length; i < len; i += 1) {
176 | part = parts[i];
177 |
178 | if (part.match(terminators)) {
179 | // Makes sure the path will end with a "/".
180 | root.push('');
181 | break;
182 | }
183 |
184 | root.push(part);
185 | }
186 |
187 | pjax.set('root', root.join('/'));
188 | };
189 |
190 | pjax.updateTabState = function (src) {
191 | var hash = win.location.hash.substring(1),
192 | defaultTab, node, tab, tabPanel;
193 |
194 | function scrollToNode() {
195 | if (node.hasClass('protected')) {
196 | Y.one('#api-show-protected').set('checked', true);
197 | pjax.updateVisibility();
198 | }
199 |
200 | if (node.hasClass('private')) {
201 | Y.one('#api-show-private').set('checked', true);
202 | pjax.updateVisibility();
203 | }
204 |
205 | setTimeout(function () {
206 | // For some reason, unless we re-get the node instance here,
207 | // getY() always returns 0.
208 | var node = Y.one('#classdocs').getById(hash);
209 | win.scrollTo(0, node.getY() - 70);
210 | }, 1);
211 | }
212 |
213 | if (!classTabView) {
214 | return;
215 | }
216 |
217 | if (src === 'hashchange' && !hash) {
218 | defaultTab = 'index';
219 | } else {
220 | if (localStorage) {
221 | defaultTab = localStorage.getItem('tab_' + pjax.getPath()) ||
222 | 'index';
223 | } else {
224 | defaultTab = 'index';
225 | }
226 | }
227 |
228 | if (hash && (node = Y.one('#classdocs').getById(hash))) {
229 | if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) {
230 | if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) {
231 | if (classTabView.get('rendered')) {
232 | Y.Widget.getByNode(tab).set('selected', 1);
233 | } else {
234 | tab.addClass('yui3-tab-selected');
235 | }
236 | }
237 | }
238 |
239 | // Scroll to the desired element if this is a hash URL.
240 | if (node) {
241 | if (classTabView.get('rendered')) {
242 | scrollToNode();
243 | } else {
244 | classTabView.once('renderedChange', scrollToNode);
245 | }
246 | }
247 | } else {
248 | tab = Y.one('#classdocs .api-class-tab.' + defaultTab);
249 |
250 | // When the `defaultTab` node isn't found, `localStorage` is stale.
251 | if (!tab && defaultTab !== 'index') {
252 | tab = Y.one('#classdocs .api-class-tab.index');
253 | }
254 |
255 | if (classTabView.get('rendered')) {
256 | Y.Widget.getByNode(tab).set('selected', 1);
257 | } else {
258 | tab.addClass('yui3-tab-selected');
259 | }
260 | }
261 | };
262 |
263 | pjax.updateVisibility = function () {
264 | var container = pjax.get('container');
265 |
266 | container.toggleClass('hide-inherited',
267 | !Y.one('#api-show-inherited').get('checked'));
268 |
269 | container.toggleClass('show-deprecated',
270 | Y.one('#api-show-deprecated').get('checked'));
271 |
272 | container.toggleClass('show-protected',
273 | Y.one('#api-show-protected').get('checked'));
274 |
275 | container.toggleClass('show-private',
276 | Y.one('#api-show-private').get('checked'));
277 |
278 | pjax.checkVisibility();
279 | };
280 |
281 | // -- Route Handlers -----------------------------------------------------------
282 |
283 | pjax.handleClasses = function (req, res, next) {
284 | var status = res.ioResponse.status;
285 |
286 | // Handles success and local filesystem XHRs.
287 | if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) {
288 | pjax.initClassTabView();
289 | }
290 |
291 | next();
292 | };
293 |
294 | pjax.handleFiles = function (req, res, next) {
295 | var status = res.ioResponse.status;
296 |
297 | // Handles success and local filesystem XHRs.
298 | if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) {
299 | pjax.initLineNumbers();
300 | }
301 |
302 | next();
303 | };
304 |
305 | // -- Event Handlers -----------------------------------------------------------
306 |
307 | pjax.onNavigate = function (e) {
308 | var hash = e.hash,
309 | originTarget = e.originEvent && e.originEvent.target,
310 | tab;
311 |
312 | if (hash) {
313 | tab = originTarget && originTarget.ancestor('.yui3-tab', true);
314 |
315 | if (hash === win.location.hash) {
316 | pjax.updateTabState('hashchange');
317 | } else if (!tab) {
318 | win.location.hash = hash;
319 | }
320 |
321 | e.preventDefault();
322 | return;
323 | }
324 |
325 | // Only scroll to the top of the page when the URL doesn't have a hash.
326 | this.set('scrollToTop', !e.url.match(/#.+$/));
327 |
328 | bdNode.addClass('loading');
329 | };
330 |
331 | pjax.onOptionClick = function (e) {
332 | pjax.updateVisibility();
333 | };
334 |
335 | pjax.onTabSelectionChange = function (e) {
336 | var tab = e.newVal,
337 | tabId = tab.get('contentBox').getAttribute('href').substring(1);
338 |
339 | selectedTab = tab;
340 |
341 | // If switching from a previous tab (i.e., this is not the default tab),
342 | // replace the history entry with a hash URL that will cause this tab to
343 | // be selected if the user navigates away and then returns using the back
344 | // or forward buttons.
345 | if (e.prevVal && localStorage) {
346 | localStorage.setItem('tab_' + pjax.getPath(), tabId);
347 | }
348 |
349 | pjax.checkVisibility(tab);
350 | };
351 |
352 | // -- Init ---------------------------------------------------------------------
353 |
354 | pjax.on('navigate', pjax.onNavigate);
355 |
356 | pjax.initRoot();
357 | pjax.upgrade();
358 | pjax.initClassTabView();
359 | pjax.initLineNumbers();
360 | pjax.updateVisibility();
361 |
362 | Y.APIList.rootPath = pjax.get('root');
363 |
364 | Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input');
365 |
366 | Y.on('hashchange', function (e) {
367 | pjax.updateTabState('hashchange');
368 | }, win);
369 |
370 | });
371 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/js/yui-prettify.js:
--------------------------------------------------------------------------------
1 | YUI().use('node', function(Y) {
2 | var code = Y.all('.prettyprint.linenums');
3 | if (code.size()) {
4 | code.each(function(c) {
5 | var lis = c.all('ol li'),
6 | l = 1;
7 | lis.each(function(n) {
8 | n.prepend('');
9 | l++;
10 | });
11 | });
12 | var h = location.hash;
13 | location.hash = '';
14 | h = h.replace('LINE_', 'LINENUM_');
15 | location.hash = h;
16 | }
17 | });
18 |
--------------------------------------------------------------------------------
/AdHelper/docs/assets/vendor/prettify/CHANGES.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Change Log
5 |
6 |
7 | README
8 |
9 | Known Issues
10 |
11 | - Perl formatting is really crappy. Partly because the author is lazy and
12 | partly because Perl is
13 | hard to parse.
14 |
- On some browsers,
<code>
elements with newlines in the text
15 | which use CSS to specify white-space:pre
will have the newlines
16 | improperly stripped if the element is not attached to the document at the time
17 | the stripping is done. Also, on IE 6, all newlines will be stripped from
18 | <code>
elements because of the way IE6 produces
19 | innerHTML
. Workaround: use <pre>
for code with
20 | newlines.
21 |
22 |
23 | Change Log
24 | 29 March 2007
25 |
26 | - Added tests for PHP support
27 | to address
28 | issue 3.
30 |
- Fixed
31 | bug:
prettyPrintOne
was not halting. This was not
33 | reachable through the normal entry point.
34 | - Fixed
35 | bug: recursing into a script block or PHP tag that was not properly
37 | closed would not silently drop the content.
38 | (test)
39 |
- Fixed
40 | bug: was eating tabs
42 | (test)
43 |
- Fixed entity handling so that the caveat
44 |
45 | Caveats: please properly escape less-thans. x<y
46 | instead of x<y, and use " instead of
47 | " for string delimiters.
48 |
49 | is no longer applicable.
50 | - Added noisefree's C#
51 | patch
53 |
- Added a distribution that has comments and
54 | whitespace removed to reduce download size from 45.5kB to 12.8kB.
55 |
56 | 4 Jul 2008
57 |
58 | - Added language specific formatters that are triggered by the presence
59 | of a
lang-<language-file-extension>
60 | - Fixed bug: python handling of
'''string'''
61 | - Fixed bug:
/
in regex [charsets] should not end regex
62 |
63 | 5 Jul 2008
64 |
65 | - Defined language extensions for Lisp and Lua