",{"class":"iviewer_rotate_left iviewer_common iviewer_button"}).bind("mousedown touchstart",function(){me.angle(-90);return false}).appendTo(this.container);$("
",{"class":"iviewer_rotate_right iviewer_common iviewer_button"}).bind("mousedown touchstart",function(){me.angle(90);return false}).appendTo(this.container);this.update_status()}});$.ui.iviewer.ImageObject=
34 | function(do_anim){this._img=$("
![]()
").css({position:"absolute",top:"0px",left:"0px"});this._loaded=false;this._swapDimensions=false;this._do_anim=do_anim||false;this.x(0,true);this.y(0,true);this.angle(0)};(function(){this._reset=function(w,h){this._angle=0;this._swapDimensions=false;this.x(0);this.y(0);this.orig_width(w);this.orig_height(h);this.display_width(w);this.display_height(h)};this.loaded=function(){return this._loaded};this.load=function(src,loaded){var self=this;loaded=loaded||jQuery.noop;
35 | this._loaded=false;var img=new Image;img.onload=function(){self._loaded=true;self._reset(this.width,this.height);self._img[0].src=src;loaded()};img.src=src;this._img.removeAttr("src").removeAttr("width").removeAttr("height").removeAttr("style").css({position:"absolute",top:"0px",left:"0px"});this.angle(0)};this._dimension=function(prefix,name){var horiz="_"+prefix+"_"+name,vert="_"+prefix+"_"+(name==="height"?"width":"height");return setter(function(val){this[this._swapDimensions?horiz:vert]=val},
36 | function(){return this[this._swapDimensions?horiz:vert]})};this.display_width=this._dimension("display","width"),this.display_height=this._dimension("display","height"),this.display_diff=function(){return Math.floor(this.display_width()-this.display_height())};this.orig_width=this._dimension("orig","width"),this.orig_height=this._dimension("orig","height"),this.x=setter(function(val,skipCss){this._x=val;if(!skipCss)this._img.css("left",this._x+(this._swapDimensions?this.display_diff()/2:0)+"px")},
37 | function(){return this._x});this.y=setter(function(val,skipCss){this._y=val;if(!skipCss)this._img.css("top",this._y-(this._swapDimensions?this.display_diff()/2:0)+"px")},function(){return this._y});this.angle=setter(function(deg){var prevSwap=this._swapDimensions;this._angle=deg;this._swapDimensions=deg%180!==0;if(prevSwap!==this._swapDimensions){var verticalMod=this._swapDimensions?-1:1;this.x(this.x()-verticalMod*this.display_diff()/2,true);this.y(this.y()+verticalMod*this.display_diff()/2,true)}var cssVal=
38 | "rotate("+deg+"deg)",img=this._img;jQuery.each(["","-webkit-","-moz-","-o-","-ms-"],function(i,prefix){img.css(prefix+"transform",cssVal)});if(useIeTransforms){jQuery.each(["-ms-",""],function(i,prefix){img.css(prefix+"filter",ieTransforms[deg].filter)});img.css({marginLeft:ieTransforms[deg].marginLeft*this.display_diff()/2,marginTop:ieTransforms[deg].marginTop*this.display_diff()/2})}},function(){return this._angle});this.toOriginalCoords=function(point){switch(this.angle()){case 0:return{x:point.x,
39 | y:point.y};case 90:return{x:point.y,y:this.display_width()-point.x};case 180:return{x:this.display_width()-point.x,y:this.display_height()-point.y};case 270:return{x:this.display_height()-point.y,y:point.x}}};this.toRealCoords=function(point){switch(this.angle()){case 0:return{x:this.x()+point.x,y:this.y()+point.y};case 90:return{x:this.x()+this.display_width()-point.y,y:this.y()+point.x};case 180:return{x:this.x()+this.display_width()-point.x,y:this.y()+this.display_height()-point.y};case 270:return{x:this.x()+
40 | point.y,y:this.y()+this.display_height()-point.x}}};this.object=setter(jQuery.noop,function(){return this._img});this.setImageProps=function(disp_w,disp_h,x,y,skip_animation,complete){complete=complete||jQuery.noop;this.display_width(disp_w);this.display_height(disp_h);this.x(x,true);this.y(y,true);var w=this._swapDimensions?disp_h:disp_w;var h=this._swapDimensions?disp_w:disp_h;var params={width:w,height:h,top:y-(this._swapDimensions?this.display_diff()/2:0)+"px",left:x+(this._swapDimensions?this.display_diff()/
41 | 2:0)+"px"};if(useIeTransforms)jQuery.extend(params,{marginLeft:ieTransforms[this.angle()].marginLeft*this.display_diff()/2,marginTop:ieTransforms[this.angle()].marginTop*this.display_diff()/2});var swapDims=this._swapDimensions,img=this._img;if(useIeTransforms&&swapDims){var ieh=this._img.width(),iew=this._img.height(),iedh=params.height-ieh;iedw=params.width-iew;delete params.width;delete params.height}if(this._do_anim&&!skip_animation)this._img.animate(params,{duration:200,complete:complete,step:function(now,
42 | fx){if(useIeTransforms&&swapDims&&fx.prop==="top"){var percent=(now-fx.start)/(fx.end-fx.start);img.height(ieh+iedh*percent);img.width(iew+iedw*percent);img.css("top",now)}}});else{this._img.css(params);setTimeout(complete,0)}}}).apply($.ui.iviewer.ImageObject.prototype);var util={scaleValue:function(value,toZoom){return value*toZoom/100},descaleValue:function(value,fromZoom){return value*100/fromZoom}}})(jQuery,undefined);
43 |
--------------------------------------------------------------------------------
/docs/js/jquery.mousewheel.min.js:
--------------------------------------------------------------------------------
1 | /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2 | * Licensed under the MIT License (LICENSE.txt).
3 | *
4 | * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5 | * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6 | * Thanks to: Seamus Leahy for adding deltaX and deltaY
7 | *
8 | * Version: 3.0.6
9 | *
10 | * Requires: 1.2.2+
11 | */
12 | (function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=
13 | d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
--------------------------------------------------------------------------------
/docs/js/jquery.splitter.js:
--------------------------------------------------------------------------------
1 | /*
2 | * jQuery.splitter.js - two-pane splitter window plugin
3 | *
4 | * version 1.51 (2009/01/09)
5 | *
6 | * Dual licensed under the MIT and GPL licenses:
7 | * http://www.opensource.org/licenses/mit-license.php
8 | * http://www.gnu.org/licenses/gpl.html
9 | */
10 |
11 | /**
12 | * The splitter() plugin implements a two-pane resizable splitter window.
13 | * The selected elements in the jQuery object are converted to a splitter;
14 | * each selected element should have two child elements, used for the panes
15 | * of the splitter. The plugin adds a third child element for the splitbar.
16 | *
17 | * For more details see: http://methvin.com/splitter/
18 | *
19 | *
20 | * @example $('#MySplitter').splitter();
21 | * @desc Create a vertical splitter with default settings
22 | *
23 | * @example $('#MySplitter').splitter({type: 'h', accessKey: 'M'});
24 | * @desc Create a horizontal splitter resizable via Alt+Shift+M
25 | *
26 | * @name splitter
27 | * @type jQuery
28 | * @param Object options Options for the splitter (not required)
29 | * @cat Plugins/Splitter
30 | * @return jQuery
31 | * @author Dave Methvin (dave.methvin@gmail.com)
32 | */
33 | ;
34 | (function($) {
35 |
36 | $.fn.splitter = function(args) {
37 | args = args || {};
38 | return this.each(function() {
39 | var zombie; // left-behind splitbar for outline resizes
40 | function startSplitMouse(evt) {
41 | if (opts.outline)
42 | zombie = zombie || bar.clone(false).insertAfter(A);
43 | panes.css("-webkit-user-select", "none"); // Safari selects A/B text on a move
44 | bar.addClass(opts.activeClass);
45 | $('
').insertAfter(bar);
46 | A._posSplit = A[0][opts.pxSplit] - evt[opts.eventPos];
47 | $(document)
48 | .bind("mousemove", doSplitMouse)
49 | .bind("mouseup", endSplitMouse);
50 | }
51 |
52 | function doSplitMouse(evt) {
53 | var newPos = A._posSplit + evt[opts.eventPos];
54 | if (opts.outline) {
55 | newPos = Math.max(0, Math.min(newPos, splitter._DA - bar._DA));
56 | bar.css(opts.origin, newPos);
57 | } else
58 | resplit(newPos);
59 | }
60 |
61 | function endSplitMouse(evt) {
62 | $('div.splitterMask').remove();
63 | bar.removeClass(opts.activeClass);
64 | var newPos = A._posSplit + evt[opts.eventPos];
65 | if (opts.outline) {
66 | zombie.remove();
67 | zombie = null;
68 | resplit(newPos);
69 | }
70 | panes.css("-webkit-user-select", "text"); // let Safari select text again
71 | $(document)
72 | .unbind("mousemove", doSplitMouse)
73 | .unbind("mouseup", endSplitMouse);
74 | }
75 |
76 | function resplit(newPos) {
77 | // Constrain new splitbar position to fit pane size limits
78 | newPos = Math.max(A._min, splitter._DA - B._max,
79 | Math.min(newPos, A._max, splitter._DA - bar._DA - B._min));
80 | // Resize/position the two panes
81 | bar._DA = bar[0][opts.pxSplit]; // bar size may change during dock
82 | bar.css(opts.origin, newPos).css(opts.fixed, splitter._DF);
83 | A.css(opts.origin, 0).css(opts.split, newPos).css(opts.fixed, splitter._DF);
84 | B.css(opts.origin, newPos + bar._DA)
85 | .css(opts.split, splitter._DA - bar._DA - newPos).css(opts.fixed, splitter._DF);
86 | // IE fires resize for us; all others pay cash
87 | if (!$.browser.msie)
88 | panes.trigger("resize");
89 | }
90 |
91 | function dimSum(jq, dims) {
92 | // Opera returns -1 for missing min/max width, turn into 0
93 | var sum = 0;
94 | for (var i = 1; i < arguments.length; i++)
95 | sum += Math.max(parseInt(jq.css(arguments[i])) || 0, 0);
96 | return sum;
97 | }
98 |
99 | // Determine settings based on incoming opts, element classes, and defaults
100 | var vh = (args.splitHorizontal ? 'h' : args.splitVertical ? 'v' : args.type) || 'v';
101 | var opts = $.extend({
102 | activeClass: 'active', // class name for active splitter
103 | pxPerKey: 8, // splitter px moved per keypress
104 | tabIndex: 0, // tab order indicator
105 | accessKey: '' // accessKey for splitbar
106 | }, {
107 | v: { // Vertical splitters:
108 | keyLeft: 39, keyRight: 37, cursor: "e-resize",
109 | splitbarClass: "vsplitbar", outlineClass: "voutline",
110 | type: 'v', eventPos: "pageX", origin: "left",
111 | split: "width", pxSplit: "offsetWidth", side1: "Left", side2: "Right",
112 | fixed: "height", pxFixed: "offsetHeight", side3: "Top", side4: "Bottom"
113 | },
114 | h: { // Horizontal splitters:
115 | keyTop: 40, keyBottom: 38, cursor: "n-resize",
116 | splitbarClass: "hsplitbar", outlineClass: "houtline",
117 | type: 'h', eventPos: "pageY", origin: "top",
118 | split: "height", pxSplit: "offsetHeight", side1: "Top", side2: "Bottom",
119 | fixed: "width", pxFixed: "offsetWidth", side3: "Left", side4: "Right"
120 | }
121 | }[vh], args);
122 |
123 | // Create jQuery object closures for splitter and both panes
124 | var splitter = $(this).css({position: "relative"});
125 | var panes = $(">*", splitter[0]).css({
126 | position: "absolute", // positioned inside splitter container
127 | "z-index": "1", // splitbar is positioned above
128 | "-moz-outline-style": "none" // don't show dotted outline
129 | });
130 | var A = $(panes[0]); // left or top
131 | var B = $(panes[1]); // right or bottom
132 |
133 | // Focuser element, provides keyboard support; title is shown by Opera accessKeys
134 | var focuser = $('
')
135 | .attr({accessKey: opts.accessKey, tabIndex: opts.tabIndex, title: opts.splitbarClass})
136 | .bind($.browser.opera ? "click" : "focus", function() {
137 | this.focus();
138 | bar.addClass(opts.activeClass)
139 | })
140 | .bind("keydown", function(e) {
141 | var key = e.which || e.keyCode;
142 | var dir = key == opts["key" + opts.side1] ? 1 : key == opts["key" + opts.side2] ? -1 : 0;
143 | if (dir)
144 | resplit(A[0][opts.pxSplit] + dir * opts.pxPerKey, false);
145 | })
146 | .bind("blur", function() {
147 | bar.removeClass(opts.activeClass)
148 | });
149 |
150 | // Splitbar element, can be already in the doc or we create one
151 | var bar = $(panes[2] || '
')
152 | .insertAfter(A).css("z-index", "100").append(focuser)
153 | .attr({"class": opts.splitbarClass, unselectable: "on"})
154 | .css({position: "absolute", "user-select": "none", "-webkit-user-select": "none",
155 | "-khtml-user-select": "none", "-moz-user-select": "none", "top": "0px"})
156 | .bind("mousedown", startSplitMouse);
157 | // Use our cursor unless the style specifies a non-default cursor
158 | if (/^(auto|default|)$/.test(bar.css("cursor")))
159 | bar.css("cursor", opts.cursor);
160 |
161 | // Cache several dimensions for speed, rather than re-querying constantly
162 | bar._DA = bar[0][opts.pxSplit];
163 | splitter._PBF = $.boxModel ? dimSum(splitter, "border" + opts.side3 + "Width", "border" + opts.side4 + "Width") : 0;
164 | splitter._PBA = $.boxModel ? dimSum(splitter, "border" + opts.side1 + "Width", "border" + opts.side2 + "Width") : 0;
165 | A._pane = opts.side1;
166 | B._pane = opts.side2;
167 | $.each([A,B], function() {
168 | this._min = opts["min" + this._pane] || dimSum(this, "min-" + opts.split);
169 | this._max = opts["max" + this._pane] || dimSum(this, "max-" + opts.split) || 9999;
170 | this._init = opts["size" + this._pane] === true ?
171 | parseInt($.curCSS(this[0], opts.split)) : opts["size" + this._pane];
172 | });
173 |
174 | // Determine initial position, get from cookie if specified
175 | var initPos = A._init;
176 | if (!isNaN(B._init)) // recalc initial B size as an offset from the top or left side
177 | initPos = splitter[0][opts.pxSplit] - splitter._PBA - B._init - bar._DA;
178 | if (opts.cookie) {
179 | if (!$.cookie)
180 | alert('jQuery.splitter(): jQuery cookie plugin required');
181 | var ckpos = parseInt($.cookie(opts.cookie));
182 | if (!isNaN(ckpos))
183 | initPos = ckpos;
184 | $(window).bind("unload", function() {
185 | var state = String(bar.css(opts.origin)); // current location of splitbar
186 | $.cookie(opts.cookie, state, {expires: opts.cookieExpires || 365,
187 | path: opts.cookiePath || document.location.pathname});
188 | });
189 | }
190 | if (isNaN(initPos)) // King Solomon's algorithm
191 | initPos = Math.round((splitter[0][opts.pxSplit] - splitter._PBA - bar._DA) / 2);
192 |
193 | // Resize event propagation and splitter sizing
194 | if (opts.anchorToWindow) {
195 | // Account for margin or border on the splitter container and enforce min height
196 | splitter._hadjust = dimSum(splitter, "borderTopWidth", "borderBottomWidth", "marginBottom");
197 | splitter._hmin = Math.max(dimSum(splitter, "minHeight"), 20);
198 | $(window).bind("resize",
199 | function() {
200 | var top = splitter.offset().top;
201 | var wh = $(window).height();
202 | splitter.css("height", Math.max(wh - top - splitter._hadjust, splitter._hmin) + "px");
203 | if (!$.browser.msie) splitter.trigger("resize");
204 | }).trigger("resize");
205 | }
206 | else if (opts.resizeToWidth && !$.browser.msie)
207 | $(window).bind("resize", function() {
208 | splitter.trigger("resize");
209 | });
210 |
211 | // Resize event handler; triggered immediately to set initial position
212 | splitter.bind("resize",
213 | function(e, size) {
214 | // Custom events bubble in jQuery 1.3; don't Yo Dawg
215 | if (e.target != this) return;
216 | // Determine new width/height of splitter container
217 | splitter._DF = splitter[0][opts.pxFixed] - splitter._PBF;
218 | splitter._DA = splitter[0][opts.pxSplit] - splitter._PBA;
219 | // Bail if splitter isn't visible or content isn't there yet
220 | if (splitter._DF <= 0 || splitter._DA <= 0) return;
221 | // Re-divvy the adjustable dimension; maintain size of the preferred pane
222 | resplit(!isNaN(size) ? size : (!(opts.sizeRight || opts.sizeBottom) ? A[0][opts.pxSplit] :
223 | splitter._DA - B[0][opts.pxSplit] - bar._DA));
224 | }).trigger("resize", [initPos]);
225 | });
226 | };
227 |
228 | })(jQuery);
--------------------------------------------------------------------------------
/docs/js/jquery.treeview.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
3 | *
4 | * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
5 | * http://docs.jquery.com/Plugins/Treeview
6 | *
7 | * Copyright (c) 2007 Jörn Zaefferer
8 | *
9 | * Dual licensed under the MIT and GPL licenses:
10 | * http://www.opensource.org/licenses/mit-license.php
11 | * http://www.gnu.org/licenses/gpl.html
12 | *
13 | * Revision: $Id: jquery.treeview.js 5759 2008-07-01 07:50:28Z joern.zaefferer $
14 | *
15 | */
16 |
17 | ;(function($) {
18 |
19 | // TODO rewrite as a widget, removing all the extra plugins
20 | $.extend($.fn, {
21 | swapClass: function(c1, c2) {
22 | var c1Elements = this.filter('.' + c1);
23 | this.filter('.' + c2).removeClass(c2).addClass(c1);
24 | c1Elements.removeClass(c1).addClass(c2);
25 | return this;
26 | },
27 | replaceClass: function(c1, c2) {
28 | return this.filter('.' + c1).removeClass(c1).addClass(c2).end();
29 | },
30 | hoverClass: function(className) {
31 | className = className || "hover";
32 | return this.hover(function() {
33 | $(this).addClass(className);
34 | }, function() {
35 | $(this).removeClass(className);
36 | });
37 | },
38 | heightToggle: function(animated, callback) {
39 | animated ?
40 | this.animate({ height: "toggle" }, animated, callback) :
41 | this.each(function(){
42 | jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
43 | if(callback)
44 | callback.apply(this, arguments);
45 | });
46 | },
47 | heightHide: function(animated, callback) {
48 | if (animated) {
49 | this.animate({ height: "hide" }, animated, callback);
50 | } else {
51 | this.hide();
52 | if (callback)
53 | this.each(callback);
54 | }
55 | },
56 | prepareBranches: function(settings) {
57 | if (!settings.prerendered) {
58 | // mark last tree items
59 | this.filter(":last-child:not(ul)").addClass(CLASSES.last);
60 | // collapse whole tree, or only those marked as closed, anyway except those marked as open
61 | this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide();
62 | }
63 | // return all items with sublists
64 | return this.filter(":has(>ul)");
65 | },
66 | applyClasses: function(settings, toggler) {
67 | // TODO use event delegation
68 | this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) {
69 | // don't handle click events on children, eg. checkboxes
70 | if ( this == event.target )
71 | toggler.apply($(this).next());
72 | }).add( $("a", this) ).hoverClass();
73 |
74 | if (!settings.prerendered) {
75 | // handle closed ones first
76 | this.filter(":has(>ul:hidden)")
77 | .addClass(CLASSES.expandable)
78 | .replaceClass(CLASSES.last, CLASSES.lastExpandable);
79 |
80 | // handle open ones
81 | this.not(":has(>ul:hidden)")
82 | .addClass(CLASSES.collapsable)
83 | .replaceClass(CLASSES.last, CLASSES.lastCollapsable);
84 |
85 | // create hitarea if not present
86 | var hitarea = this.find("div." + CLASSES.hitarea);
87 | if (!hitarea.length)
88 | hitarea = this.prepend("
").find("div." + CLASSES.hitarea);
89 | hitarea.removeClass().addClass(CLASSES.hitarea).each(function() {
90 | var classes = "";
91 | $.each($(this).parent().attr("class").split(" "), function() {
92 | classes += this + "-hitarea ";
93 | });
94 | $(this).addClass( classes );
95 | })
96 | }
97 |
98 | // apply event to hitarea
99 | this.find("div." + CLASSES.hitarea).click( toggler );
100 | },
101 | treeview: function(settings) {
102 |
103 | settings = $.extend({
104 | cookieId: "treeview"
105 | }, settings);
106 |
107 | if ( settings.toggle ) {
108 | var callback = settings.toggle;
109 | settings.toggle = function() {
110 | return callback.apply($(this).parent()[0], arguments);
111 | };
112 | }
113 |
114 | // factory for treecontroller
115 | function treeController(tree, control) {
116 | // factory for click handlers
117 | function handler(filter) {
118 | return function() {
119 | // reuse toggle event handler, applying the elements to toggle
120 | // start searching for all hitareas
121 | toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() {
122 | // for plain toggle, no filter is provided, otherwise we need to check the parent element
123 | return filter ? $(this).parent("." + filter).length : true;
124 | }) );
125 | return false;
126 | };
127 | }
128 | // click on first element to collapse tree
129 | $("a:eq(0)", control).click( handler(CLASSES.collapsable) );
130 | // click on second to expand tree
131 | $("a:eq(1)", control).click( handler(CLASSES.expandable) );
132 | // click on third to toggle tree
133 | $("a:eq(2)", control).click( handler() );
134 | }
135 |
136 | // handle toggle event
137 | function toggler() {
138 | $(this)
139 | .parent()
140 | // swap classes for hitarea
141 | .find(">.hitarea")
142 | .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
143 | .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
144 | .end()
145 | // swap classes for parent li
146 | .swapClass( CLASSES.collapsable, CLASSES.expandable )
147 | .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
148 | // find child lists
149 | .find( ">ul" )
150 | // toggle them
151 | .heightToggle( settings.animated, settings.toggle );
152 | if ( settings.unique ) {
153 | $(this).parent()
154 | .siblings()
155 | // swap classes for hitarea
156 | .find(">.hitarea")
157 | .replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
158 | .replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
159 | .end()
160 | .replaceClass( CLASSES.collapsable, CLASSES.expandable )
161 | .replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
162 | .find( ">ul" )
163 | .heightHide( settings.animated, settings.toggle );
164 | }
165 | }
166 | this.data("toggler", toggler);
167 |
168 | function serialize() {
169 | function binary(arg) {
170 | return arg ? 1 : 0;
171 | }
172 | var data = [];
173 | branches.each(function(i, e) {
174 | data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
175 | });
176 | $.cookie(settings.cookieId, data.join(""), settings.cookieOptions );
177 | }
178 |
179 | function deserialize() {
180 | var stored = $.cookie(settings.cookieId);
181 | if ( stored ) {
182 | var data = stored.split("");
183 | branches.each(function(i, e) {
184 | $(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ]();
185 | });
186 | }
187 | }
188 |
189 | // add treeview class to activate styles
190 | this.addClass("treeview");
191 |
192 | // prepare branches and find all tree items with child lists
193 | var branches = this.find("li").prepareBranches(settings);
194 |
195 | switch(settings.persist) {
196 | case "cookie":
197 | var toggleCallback = settings.toggle;
198 | settings.toggle = function() {
199 | serialize();
200 | if (toggleCallback) {
201 | toggleCallback.apply(this, arguments);
202 | }
203 | };
204 | deserialize();
205 | break;
206 | case "location":
207 | var current = this.find("a").filter(function() {
208 | return this.href.toLowerCase() == location.href.toLowerCase();
209 | });
210 | if ( current.length ) {
211 | // TODO update the open/closed classes
212 | var items = current.addClass("selected").parents("ul, li").add( current.next() ).show();
213 | if (settings.prerendered) {
214 | // if prerendered is on, replicate the basic class swapping
215 | items.filter("li")
216 | .swapClass( CLASSES.collapsable, CLASSES.expandable )
217 | .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
218 | .find(">.hitarea")
219 | .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
220 | .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea );
221 | }
222 | }
223 | break;
224 | }
225 |
226 | branches.applyClasses(settings, toggler);
227 |
228 | // if control option is set, create the treecontroller and show it
229 | if ( settings.control ) {
230 | treeController(this, settings.control);
231 | $(settings.control).show();
232 | }
233 |
234 | return this;
235 | }
236 | });
237 |
238 | // classes used by the plugin
239 | // need to be styled via external stylesheet, see first example
240 | $.treeview = {};
241 | var CLASSES = ($.treeview.classes = {
242 | open: "open",
243 | closed: "closed",
244 | expandable: "expandable",
245 | expandableHitarea: "expandable-hitarea",
246 | lastExpandableHitarea: "lastExpandable-hitarea",
247 | collapsable: "collapsable",
248 | collapsableHitarea: "collapsable-hitarea",
249 | lastCollapsableHitarea: "lastCollapsable-hitarea",
250 | lastCollapsable: "lastCollapsable",
251 | lastExpandable: "lastExpandable",
252 | last: "last",
253 | hitarea: "hitarea"
254 | });
255 |
256 | })(jQuery);
--------------------------------------------------------------------------------
/docs/js/menu.js:
--------------------------------------------------------------------------------
1 | var timeout = 500;
2 | var closetimer = 0;
3 | var ddmenuitem = 0;
4 |
5 | function menu_open() {
6 | menu_canceltimer();
7 | menu_close();
8 | ddmenuitem = $(this).find('ul').css('visibility', 'visible');
9 | }
10 |
11 | function menu_close() {
12 | if (ddmenuitem) ddmenuitem.css('visibility', 'hidden');
13 | }
14 |
15 | function menu_timer() {
16 | closetimer = window.setTimeout(menu_close, timeout);
17 | }
18 |
19 | function menu_canceltimer() {
20 | if (closetimer) {
21 | window.clearTimeout(closetimer);
22 | closetimer = null;
23 | }
24 | }
25 |
26 | $(document).ready(function() {
27 | $('#file-nav > li').bind('mouseover', menu_open);
28 | $('#file-nav > li').bind('mouseout', menu_timer);
29 | });
30 |
31 | document.onclick = menu_close;
--------------------------------------------------------------------------------
/docs/js/prettify/lang-apollo.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-apollo.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-clj.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2011 Google Inc.
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 |
10 | Unless required by applicable law or agreed to in writing, software
11 | distributed under the License is distributed on an "AS IS" BASIS,
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | See the License for the specific language governing permissions and
14 | limitations under the License.
15 | */
16 | var a=null;
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a],
18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]);
19 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-css.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
2 | /^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
3 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-go.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-go.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-hs.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/,
2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]);
3 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-lisp.js:
--------------------------------------------------------------------------------
1 | var a=null;
2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a],
3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","scm"]);
4 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-lua.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-lua.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-ml.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-ml.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-n.js:
--------------------------------------------------------------------------------
1 | var a=null;
2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\xa0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/,
3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]);
5 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-proto.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]);
2 |
--------------------------------------------------------------------------------
/docs/js/prettify/lang-scala.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-scala.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-sql.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-sql.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-tex.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-tex.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-vb.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-vb.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-vhdl.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-vhdl.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-wiki.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moontoast/math/527bb18d290502e55ea4a3cbebd63e5fe8bf0ed2/docs/js/prettify/lang-wiki.js
--------------------------------------------------------------------------------
/docs/js/prettify/lang-yaml.js:
--------------------------------------------------------------------------------
1 | var a=null;
2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]);
3 |
--------------------------------------------------------------------------------
/docs/js/prettify/prettify.min.js:
--------------------------------------------------------------------------------
1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
2 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
3 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c
122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
9 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
10 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
11 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
12 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
13 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
14 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
18 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"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"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
19 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"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"],
20 | J=[v,"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"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"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"+
21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
11 |
12 |
13 |
14 |
15 |
16 |
47 |
48 |
52 |
53 |
57 |
58 |
59 | -
60 | \
61 |
62 | - Markers
63 |
64 |
65 | The following markers were found:
66 |
69 |
70 |
71 |
72 | BigNumber.php1
73 |
74 |
75 |
76 | Type |
77 | Line |
78 | Description |
79 |
80 |
81 | todo |
82 | 455 |
83 | Implement precision digits |
84 |
85 |
86 |
87 |
88 |
89 |
93 |
94 |
95 |