_0k4.js 3.9 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 _0k4(_um8, _z29, _xq3){this._od8=_um8;this._v99=_fe9._9h2(_um8);this._g09=new Date(_z29.toString());if(_xq3){this._0n3=true;}this._c99();this._a99();};_0k4.prototype._y26=70;_0k4.prototype._sp6=70;_0k4.prototype._v26=12;_0k4.prototype._4p2=360 / _0k4.prototype._v26;_0k4.prototype._ja7=10;_0k4.prototype._ka7=10;_0k4.prototype._9g9=_0k4.prototype._y26+_0k4.prototype._ja7+6;_0k4.prototype._8g9=_0k4.prototype._sp6+_0k4.prototype._ka7-12;_0k4.prototype._wl3=15;_0k4.prototype._in2=22;_0k4.prototype._kn2=29;_0k4.prototype._0n3=false;_0k4.prototype._c99=function(){var d=document;var _2y4=this._od8.appendChild(d.createElement("div"));_2y4.className="clsCCHLClockBlock";_2y4.setAttribute( "align", "center" );var _hz7=_2y4.appendChild(d.createElement("div"));_hz7.className="clsCCHLClock";var _l86=d.createElement("DIV");_l86.className="clsCCHLDivClock";_hz7.appendChild(_l86);var _r86=d.createElement("DIV");_r86.style.position="relative";_l86.appendChild(_r86);for(var i=1; i<this._v26+1; i++){var _bo1=d.createElement("DIV");_bo1.className="clsCCHLClockDigits";_bo1.id='clockDigits'+this._v99 + i;var _xr=d.createTextNode(i);_bo1.appendChild(_xr);_r86.appendChild(_bo1);}for(var i=0; i<this._in2; i++){var _xr=d.createElement("DIV");_xr.className="clsCCHLMinuteHand";_xr.id='minuteHand'+this._v99 + i;_r86.appendChild(_xr);}for(var i=0; i<this._wl3; i++){var _dz1=d.createElement("DIV");_dz1.className="clsCCHLHourHand";_dz1.id='hourHand'+this._v99 + i;_r86.appendChild(_dz1);}if(this._0n3==true){for(var i=0; i<this._kn2; i++){var _ae1=d.createElement("DIV");_ae1.className="clsCCHLSecondHand";_ae1.id='secondHand'+this._v99 + i;_r86.appendChild(_ae1);}}};_0k4.prototype._a99=function(){this._cp4();this._mt7();this._em6();this._gm6();};_0k4.prototype._cp4=function(){var d=document;for(var i=0; i<this._v26;++i){var _sf9='clockDigits'+this._v99 +(i + 1);var _dg9=d.getElementById(_sf9);_dg9.style.top=(this._9g9+this._y26*Math.sin(-1.045+i * this._4p2*Math.PI / 180))+ "px";_dg9.style.left=(this._8g9+this._sp6*Math.cos(-1.045+i * this._4p2*Math.PI / 180))+ "px";}};_0k4.prototype._gm6=function(){if(this._0n3!=true){return;}var _m18=this._g09.getSeconds();var _lh8=-1.57+Math.PI*_m18 / 30;var d=document;for(var i=0; i<this._kn2; i++){var _sf9='secondHand'+this._v99 + i;var _dg9=d.getElementById(_sf9);_dg9.style.top=(this._9g9+i*2*Math.sin(_lh8))+ "px";_dg9.style.left=(this._8g9+i*2*Math.cos(_lh8)+5)+ "px";_dg9.style.top=parseInt(_dg9.style.top, 10)+6+"px";_dg9.style.left=parseInt(_dg9.style.left, 10)+"px";}};_0k4.prototype._em6=function(){var _918=this._g09.getMinutes();var _5h8=-1.57+Math.PI*_918 / 30;var d=document;for(var i=0; i<this._in2; i++){var _sf9='minuteHand'+this._v99 + i;var _dg9=d.getElementById(_sf9);_dg9.style.top=(this._9g9+i*2*Math.sin(_5h8))+ "px";_dg9.style.left=(this._8g9+i*2*Math.cos(_5h8)+5)+ "px";_dg9.style.top=parseInt(_dg9.style.top, 10)+6+"px";_dg9.style.left=parseInt(_dg9.style.left, 10)+"px";}};_0k4.prototype._mt7=function(){var _wu8=this._g09.getHours();var _l39=-1.57+Math.PI*_wu8 / 6+Math.PI*parseInt(this._g09.getMinutes(), 10)/ 360;var d=document;for(var i=0; i<this._wl3; i++){var _sf9='hourHand'+this._v99 + i;var _dg9=d.getElementById(_sf9);_dg9.style.top=(this._9g9+i*2*Math.sin(_l39))+ "px";_dg9.style.left=(this._8g9+i*2*Math.cos(_l39)+5)+ "px";_dg9.style.top=parseInt(_dg9.style.top, 10)+6+"px";_dg9.style.left=parseInt(_dg9.style.left, 10)+"px";}};_0k4.prototype._hx5=function(_z29){var _fz7=this._g09;this._g09=new Date(_z29.toString());if((this._g09.getMinutes()!=_fz7.getMinutes())||(this._g09.getHours()!=_fz7.getHours())){this._mt7();this._em6();}if(this._g09.getSeconds()!=_fz7.getSeconds()){this._gm6();}this._g09=new Date(_z29.toString());};