?? dojo.js
字號(hào):
return _224(node, cn[_22a - 1]); } switch (_22a.toLowerCase()) { case "before": return _221(node, _229); case "after": return _224(node, _229); case "first": if (_229.firstChild) { return _221(node, _229.firstChild); } default: _229.appendChild(node); return true; } }; dojo.boxModel = "content-box"; if (d.isIE) { var _dcm = document.compatMode; d.boxModel = _dcm == "BackCompat" || _dcm == "QuirksMode" || d.isIE < 6 ? "border-box" : "content-box"; } var gcs, dv = document.defaultView; if (d.isSafari) { gcs = function (node) { var s = dv.getComputedStyle(node, null); if (!s && node.style) { node.style.display = ""; s = dv.getComputedStyle(node, null); } return s || {}; }; } else { if (d.isIE) { gcs = function (node) { return node.currentStyle; }; } else { gcs = function (node) { return dv.getComputedStyle(node, null); }; } } dojo.getComputedStyle = gcs; if (!d.isIE) { dojo._toPixelValue = function (_233, _234) { return parseFloat(_234) || 0; }; } else { dojo._toPixelValue = function (_235, _236) { if (!_236) { return 0; } if (_236 == "medium") { return 4; } if (_236.slice && (_236.slice(-2) == "px")) { return parseFloat(_236); } with (_235) { var _237 = style.left; var _238 = runtimeStyle.left; runtimeStyle.left = currentStyle.left; try { style.left = _236; _236 = style.pixelLeft; } catch (e) { _236 = 0; } style.left = _237; runtimeStyle.left = _238; } return _236; }; } var px = d._toPixelValue; dojo._getOpacity = d.isIE ? function (node) { try { return node.filters.alpha.opacity / 100; } catch (e) { return 1; } } : function (node) { return gcs(node).opacity; }; dojo._setOpacity = d.isIE ? function (node, _23d) { if (_23d == 1) { var _23e = /FILTER:[^;]*;?/i; node.style.cssText = node.style.cssText.replace(_23e, ""); if (node.nodeName.toLowerCase() == "tr") { d.query("> td", node).forEach(function (i) { i.style.cssText = i.style.cssText.replace(_23e, ""); }); } } else { var o = "Alpha(Opacity=" + _23d * 100 + ")"; node.style.filter = o; } if (node.nodeName.toLowerCase() == "tr") { d.query("> td", node).forEach(function (i) { i.style.filter = o; }); } return _23d; } : function (node, _243) { return node.style.opacity = _243; }; var _244 = {left:true, top:true}; var _245 = /margin|padding|width|height|max|min|offset/; var _246 = function (node, type, _249) { type = type.toLowerCase(); if (d.isIE && _249 == "auto") { if (type == "height") { return node.offsetHeight; } if (type == "width") { return node.offsetWidth; } } if (!(type in _244)) { _244[type] = _245.test(type); } return _244[type] ? px(node, _249) : _249; }; var _24a = d.isIE ? "styleFloat" : "cssFloat"; var _24b = {"cssFloat":_24a, "styleFloat":_24a, "float":_24a}; dojo.style = function (node, _24d, _24e) { var n = d.byId(node), args = arguments.length, op = (_24d == "opacity"); _24d = _24b[_24d] || _24d; if (args == 3) { return op ? d._setOpacity(n, _24e) : n.style[_24d] = _24e; } if (args == 2 && op) { return d._getOpacity(n); } var s = gcs(n); if (args == 2 && !d.isString(_24d)) { for (var x in _24d) { d.style(node, x, _24d[x]); } return s; } return (args == 1) ? s : _246(n, _24d, s[_24d]); }; dojo._getPadExtents = function (n, _255) { var s = _255 || gcs(n), l = px(n, s.paddingLeft), t = px(n, s.paddingTop); return {l:l, t:t, w:l + px(n, s.paddingRight), h:t + px(n, s.paddingBottom)}; }; dojo._getBorderExtents = function (n, _25a) { var ne = "none", s = _25a || gcs(n), bl = (s.borderLeftStyle != ne ? px(n, s.borderLeftWidth) : 0), bt = (s.borderTopStyle != ne ? px(n, s.borderTopWidth) : 0); return {l:bl, t:bt, w:bl + (s.borderRightStyle != ne ? px(n, s.borderRightWidth) : 0), h:bt + (s.borderBottomStyle != ne ? px(n, s.borderBottomWidth) : 0)}; }; dojo._getPadBorderExtents = function (n, _260) { var s = _260 || gcs(n), p = d._getPadExtents(n, s), b = d._getBorderExtents(n, s); return {l:p.l + b.l, t:p.t + b.t, w:p.w + b.w, h:p.h + b.h}; }; dojo._getMarginExtents = function (n, _265) { var s = _265 || gcs(n), l = px(n, s.marginLeft), t = px(n, s.marginTop), r = px(n, s.marginRight), b = px(n, s.marginBottom); if (d.isSafari && (s.position != "absolute")) { r = l; } return {l:l, t:t, w:l + r, h:t + b}; }; dojo._getMarginBox = function (node, _26c) { var s = _26c || gcs(node), me = d._getMarginExtents(node, s); var l = node.offsetLeft - me.l, t = node.offsetTop - me.t; if (d.isMoz) { var sl = parseFloat(s.left), st = parseFloat(s.top); if (!isNaN(sl) && !isNaN(st)) { l = sl, t = st; } else { var p = node.parentNode; if (p && p.style) { var pcs = gcs(p); if (pcs.overflow != "visible") { var be = d._getBorderExtents(p, pcs); l += be.l, t += be.t; } } } } else { if (d.isOpera) { var p = node.parentNode; if (p) { var be = d._getBorderExtents(p); l -= be.l, t -= be.t; } } } return {l:l, t:t, w:node.offsetWidth + me.w, h:node.offsetHeight + me.h}; }; dojo._getContentBox = function (node, _277) { var s = _277 || gcs(node), pe = d._getPadExtents(node, s), be = d._getBorderExtents(node, s), w = node.clientWidth, h; if (!w) { w = node.offsetWidth, h = node.offsetHeight; } else { h = node.clientHeight, be.w = be.h = 0; } if (d.isOpera) { pe.l += be.l; pe.t += be.t; } return {l:pe.l, t:pe.t, w:w - pe.w - be.w, h:h - pe.h - be.h}; }; dojo._getBorderBox = function (node, _27e) { var s = _27e || gcs(node), pe = d._getPadExtents(node, s), cb = d._getContentBox(node, s); return {l:cb.l - pe.l, t:cb.t - pe.t, w:cb.w + pe.w, h:cb.h + pe.h}; }; dojo._setBox = function (node, l, t, w, h, u) { u = u || "px"; var s = node.style; if (!isNaN(l)) { s.left = l + u; } if (!isNaN(t)) { s.top = t + u; } if (w >= 0) { s.width = w + u; } if (h >= 0) { s.height = h + u; } }; dojo._usesBorderBox = function (node) { var n = node.tagName; return d.boxModel == "border-box" || n == "TABLE" || n == "BUTTON"; }; dojo._setContentSize = function (node, _28c, _28d, _28e) { if (d._usesBorderBox(node)) { var pb = d._getPadBorderExtents(node, _28e); if (_28c >= 0) { _28c += pb.w; } if (_28d >= 0) { _28d += pb.h; } } d._setBox(node, NaN, NaN, _28c, _28d); }; dojo._setMarginBox = function (node, _291, _292, _293, _294, _295) { var s = _295 || gcs(node); var bb = d._usesBorderBox(node), pb = bb ? _299 : d._getPadBorderExtents(node, s), mb = d._getMarginExtents(node, s); if (_293 >= 0) { _293 = Math.max(_293 - pb.w - mb.w, 0); } if (_294 >= 0) { _294 = Math.max(_294 - pb.h - mb.h, 0); } d._setBox(node, _291, _292, _293, _294); }; var _299 = {l:0, t:0, w:0, h:0}; dojo.marginBox = function (node, box) { var n = d.byId(node), s = gcs(n), b = box; return !b ? d._getMarginBox(n, s) : d._setMarginBox(n, b.l, b.t, b.w, b.h, s); }; dojo.contentBox = function (node, box) { var n = dojo.byId(node), s = gcs(n), b = box; return !b ? d._getContentBox(n, s) : d._setContentSize(n, b.w, b.h, s); }; var _2a5 = function (node, prop) { if (!(node = (node || 0).parentNode)) { return 0; } var val, _2a9 = 0, _b = d.body(); while (node && node.style) { if (gcs(node).position == "fixed") { return 0; } val = node[prop]; if (val) { _2a9 += val - 0; if (node == _b) { break; } } node = node.parentNode; } return _2a9; }; dojo._docScroll = function () { var _b = d.body(), _w = d.global, de = d.doc.documentElement; return {y:(_w.pageYOffset || de.scrollTop || _b.scrollTop || 0), x:(_w.pageXOffset || d._fixIeBiDiScrollLeft(de.scrollLeft) || _b.scrollLeft || 0)}; }; dojo._isBodyLtr = function () { return !("_bodyLtr" in d) ? d._bodyLtr = gcs(d.body()).direction == "ltr" : d._bodyLtr; }; dojo._getIeDocumentElementOffset = function () { var de = d.doc.documentElement; return (d.isIE >= 7) ? {x:de.getBoundingClientRect().left, y:de.getBoundingClientRect().top} : {x:d._isBodyLtr() || window.parent == window ? de.clientLeft : de.offsetWidth - de.clientWidth - de.clientLeft, y:de.clientTop}; }; dojo._fixIeBiDiScrollLeft = function (_2af) { var dd = d.doc; if (d.isIE && !dojo._isBodyLtr()) { var de = dd.compatMode == "BackCompat" ? dd.body : dd.documentElement; return _2af + de.clientWidth - de.scrollWidth; } return _2af; }; dojo._abs = function (node, _2b3) { var _2b4 = node.ownerDocument; var ret = {x:0, y:0}; var db = d.body(); if (d.isIE || (d.isFF >= 3)) { var _2b7 = node.getBoundingClientRect(); var _2b8 = (d.isIE) ? d._getIeDocumentElementOffset() : {x:0, y:0}; ret.x = _2b7.left - _2b8.x; ret.y = _2b7.top - _2b8.y; } else { if (_2b4["getBoxObjectFor"]) { var bo = _2b4.getBoxObjectFor(node), b = d._getBorderExtents(node); ret.x = bo.x - b.l - _2a5(node, "scrollLeft"); ret.y = bo.y - b.t - _2a5(node, "scrollTop"); } else { if (node["offsetParent"]) { var _2bb; if (d.isSafari && (gcs(node).position == "absolute") && (node.parentNode == db)) { _2bb = db; } else { _2bb = db.parentNode; } if (node.parentNode != db) { var nd = node; if (d.isOpera) { nd = db; } ret.x -= _2a5(nd, "scrollLeft"); ret.y -= _2a5(nd, "scrollTop"); } var _2bd = node; do { var n = _2bd.offsetLeft; if (!d.isOpera || n > 0) { ret.x += isNaN(n) ? 0 : n; } var t = _2bd.offsetTop; ret.y += isNaN(t) ? 0 : t; if (d.isSafari && _2bd != node) { var cs = gcs(_2bd); ret.x += px(_2bd, cs.borderLeftWidth); ret.y += px(_2bd, cs.borderTopWidth); } _2bd = _2bd.offsetParent; } while ((_2bd != _2bb) && _2bd); } else { if (node.x && node.y) { ret.x += isNaN(node.x) ? 0 : node.x; ret.y += isNaN(node.y) ? 0 : node.y; } } } } if (_2b3) { var _2c1 = d._docScroll(); ret.y += _2c1.y; ret.x += _2c1.x; } return ret; }; dojo.coords = function (node, _2c3) { var n = d.byId(node), s = gcs(n), mb = d._getMarginBox(n, s); var abs = d._abs(n, _2c3); mb.x = abs.x; mb.y = abs.y; return mb; }; var _2c8 = function (name) { switch (name.toLowerCase()) { case "tabindex": return (d.isIE && d.isIE < 8) ? "tabIndex" : "tabindex"; default: return name; } }; var _2ca = {colspan:"colSpan", enctype:"enctype", frameborder:"frameborder", method:"method", rowspan:"rowSpan", scrolling:"scrolling", shape:"shape", span:"span", type:"type", valuetype:"valueType"}; dojo.hasAttr = function (node, name) { var attr = d.byId(node).getAttributeNode(_2c8(name)); return attr ? attr.specified : false; }; var _2ce = {}; var _ctr = 0; var _2d0 = dojo._scopeName + "attrid"; dojo.attr = function (node, name, _2d3) { var args = arguments.length; if (args == 2 && !d.isString(name)) { for (var x in name) { d.attr(node, x, name[x]); } return; } node = d.byId(node); name = _2c8(name); if (args == 3) { if (d.isFunction(_2d3)) { var _2d6 = d.attr(node, _2d0); if (!_2d6) { _2d6 = _ctr++; d.attr(node, _2d0, _2d6); } if (!_2ce[_2d6]) { _2ce[_2d6] = {}; } var h = _2ce[_2d6][name]; if (h) { d.disconnect(h); } else { try { delete node[name]; } catch (e) { } } _2ce[_2d6][name] = d.connect(node, name, _2d3); } else { if (typeof _2d3 == "boolean") { node[name] = _2d3; } else { node.setAttribute(name, _2d3); } } return; } else { var prop = _2ca[name.toLowerCase()]; if (prop) { return node[prop]; } else { var _2d3 = node[name]; return (typeof _2d3 == "boolean" || typeof _2d3 == "function") ? _2d3 : (d.hasAttr(node, name) ? node.getAttribute(name) : null); } } }; dojo.removeAttr = function (node, name) { d.byId(node).removeAttribute(_2c8(name)); }; })(); dojo.hasClass = function (node, _2dc) { return ((" " + dojo.byId(node).className + " ").indexOf(" " + _2dc + " ") >= 0); }; dojo.addClass = function (node, _2de) { node = dojo.byId(node); var cls = node.className; if ((" " + cls + " ").indexOf(" " + _2de + " ") < 0) { node.className = cls + (cls ? " " : "") + _2de; } }; dojo.removeClass = function (node
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -