_ov2.js 3.6 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _ov2(n){this._r09=n;};_ov2.prototype._ms7=function(){this._1v4=new _y65();this._4a7((this._r09.nodeType==_ie9._o14)?this._r09.documentElement:this._r09, 0);return this._1v4._ms7();};_ov2.prototype._4a7=function(n,_h18){var _r58=n.nodeName;var _p93=_999._mw5(n, "*").length;if(n==n.ownerDocument.documentElement&&n.ownerDocument.doctype){this._1v4._nz8("<div class='clsPrettyPrintDocType'>");this._1v4._nz8(_jp8._hj6(_999._co8(n.ownerDocument.doctype)));this._1v4._nz8("</div>");}var _p68="padding-left:" + _h18 + "px;";if(_p93>0){var _658=_fe9._sv5();this._1v4._nz8("<div style='cursor: pointer;");this._1v4._nz8(_p68);this._1v4._nz8( "' onclick='_d75(this)' childId='" );this._1v4._nz8(_658);this._1v4._nz8("'><span class='clsPrettyPrintExpandLink'>- </span>");}else{this._1v4._nz8("<div style='");this._1v4._nz8(_p68);this._1v4._nz8("'><span style='visibility:hidden' class='clsPrettyPrintExpandLink'>- </span>");}this._1v4._nz8( "<span class='clsPrettyPrintBrackets'>&lt;</span>" );this._1v4._nz8("<span class='clsPrettyPrintNodeName'>");this._1v4._nz8(_jp8._hj6(_r58));this._1v4._nz8("</span>");var nl=n.attributes;var _zg8=nl.length;for(var i=0;i<_zg8;i++){var _349=nl.item(i);var _t17=_349.name;var _hy8=_349.value;if(!_ie9._rg1(n, _349)){continue;}var _og4="clsPrettyPrintAttribute";var _ev3="clsPrettyPrintNodeText";if(_t17.slice(0, 5)=="xmlns"){_og4="clsPrettyPrintNamespaceDecl";_ev3="clsPrettyPrintNamespaceURI";}this._1v4._nz8( "<span class='" );this._1v4._nz8(_og4);this._1v4._nz8( "'> " );this._1v4._nz8(_jp8._hj6(_t17));this._1v4._nz8( '</span><span class="clsPrettyPrintBrackets">="</span><span class="' );this._1v4._nz8(_ev3);this._1v4._nz8('">');this._1v4._nz8(_jp8._hj6(_hy8));this._1v4._nz8( '</span><span class="clsPrettyPrintBrackets">"</span>' );}var nl=_999._mw5( n, "* | text() | comment()" );var _zg8=nl.length;var _cf6=(_zg8>0)?"&gt;":"/&gt;";this._1v4._nz8( "<span class='clsPrettyPrintBrackets'>" );this._1v4._nz8(_cf6);this._1v4._nz8("</span>");if(_p93>0){this._1v4._nz8("</div><div id=");this._1v4._nz8(_658);this._1v4._nz8(" expandedState='expanded'>");}_h18+= 20;for(var i=0;i<_zg8;i++){var _mv8=nl.item(i);switch(_mv8.nodeType){case _ie9._cl6:this._1v4._nz8( "<span class='clsPrettyPrintNodeText'>" );this._1v4._nz8(_jp8._hj6(_mv8.nodeValue));this._1v4._nz8("</span>");break;case _ie9._1o4:this._1v4._nz8("<span>&lt;!--");this._1v4._nz8(_jp8._hj6(_mv8.nodeValue));this._1v4._nz8("--&gt;</span>");break;case _ie9._vs1:this._1v4._nz8("<span>&lt;![CDATA[");this._1v4._nz8(_jp8._hj6(_mv8.nodeValue));this._1v4._nz8("]]&gt;</span>");break;default:this._4a7(_mv8, _h18);}}if(_zg8>0){_p68=_p93>0?_p68:"";var _9m8=_p93>0?"<span style='visibility:hidden'>- </span>":"";this._1v4._nz8(_9m8);this._1v4._nz8( "<span class='clsPrettyPrintBrackets' style='" );this._1v4._nz8(_p68);this._1v4._nz8( "'>&lt;/</span><span class='clsPrettyPrintNodeName'>" );this._1v4._nz8(_jp8._hj6(n.nodeName));this._1v4._nz8( "</span><span class='clsPrettyPrintBrackets'>&gt;</span>" );}this._1v4._nz8("</div>");};function _d75(_0h7){var _c96=_0h7;if(_c96.getAttribute("childId")){var _0g8=_0h7.ownerDocument.getElementById(_c96.getAttribute("childId"));var _jn7=_0g8.getAttribute("expandedState");if(_jn7=="expanded"){_0g8.style.display="none";_c96.firstChild.innerHTML= "+ ";_0g8.setAttribute("expandedState", "collapsed");}else{_0g8.style.display="";_c96.firstChild.innerHTML="- ";_0g8.setAttribute("expandedState", "expanded");}}};