123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _lpc(_ubm, _n6n, _2la){this._otl=_ubm;this._ein=_4qn._a87(_ubm);this._t1n=new Date(_n6n.toString());if(_2la){this._h9a=true;}this._chn();this._8hn();};_lpc.prototype._zig=70;_lpc.prototype._z1i=70;_lpc.prototype._vig=12;_lpc.prototype._8s7=360 / _lpc.prototype._vig;_lpc.prototype._fdj=10;_lpc.prototype._gdj=10;_lpc.prototype._3tn=_lpc.prototype._zig+_lpc.prototype._fdj+6;_lpc.prototype._2tn=_lpc.prototype._z1i+_lpc.prototype._gdj-12;_lpc.prototype._i7a=15;_lpc.prototype._so7=22;_lpc.prototype._wo7=29;_lpc.prototype._h9a=false;_lpc.prototype._chn=function(){var d=document;var _2pd=this._otl.appendChild(d.createElement("div"));_2pd.className="clsCCHLClockBlock";_2pd.setAttribute( "align", "center" );var _czk=_2pd.appendChild(d.createElement("div"));_czk.className="clsCCHLClock";var _lwg=d.createElement("DIV");_lwg.className="clsCCHLDivClock";_czk.appendChild(_lwg);var _twg=d.createElement("DIV");_twg.style.position="relative";_lwg.appendChild(_twg);for(var i=1; i<this._vig+1; i++){var _oy4=d.createElement("DIV");_oy4.className="clsCCHLClockDigits";_oy4.id='clockDigits'+this._ein + i;var _md2=d.createTextNode(i);_oy4.appendChild(_md2);_twg.appendChild(_oy4);}for(var i=0; i<this._so7; i++){var _md2=d.createElement("DIV");_md2.className="clsCCHLMinuteHand";_md2.id='minuteHand'+this._ein + i;_twg.appendChild(_md2);}for(var i=0; i<this._i7a; i++){var _1w5=d.createElement("DIV");_1w5.className="clsCCHLHourHand";_1w5.id='hourHand'+this._ein + i;_twg.appendChild(_1w5);}if(this._h9a==true){for(var i=0; i<this._wo7; i++){var _j54=d.createElement("DIV");_j54.className="clsCCHLSecondHand";_j54.id='secondHand'+this._ein + i;_twg.appendChild(_j54);}}};_lpc.prototype._8hn=function(){this._q2d();this._9mk();this._quh();this._tuh();};_lpc.prototype._q2d=function(){var d=document;for(var i=0; i<this._vig;++i){var _lsn='clockDigits'+this._ein +(i + 1);var _atn=d.getElementById(_lsn);_atn.style.top=(this._3tn+this._zig*Math.sin(-1.045+i * this._8s7*Math.PI / 180))+ "px";_atn.style.left=(this._2tn+this._z1i*Math.cos(-1.045+i * this._8s7*Math.PI / 180))+ "px";}};_lpc.prototype._tuh=function(){if(this._h9a!=true){return;}var _l2l=this._t1n.getSeconds();var _p0m=-1.57+Math.PI*_l2l / 30;var d=document;for(var i=0; i<this._wo7; i++){var _lsn='secondHand'+this._ein + i;var _atn=d.getElementById(_lsn);_atn.style.top=(this._3tn+i*2*Math.sin(_p0m))+ "px";_atn.style.left=(this._2tn+i*2*Math.cos(_p0m)+5)+ "px";_atn.style.top=parseInt(_atn.style.top, 10)+6+"px";_atn.style.left=parseInt(_atn.style.left, 10)+"px";}};_lpc.prototype._quh=function(){var _x1l=this._t1n.getMinutes();var _10m=-1.57+Math.PI*_x1l / 30;var d=document;for(var i=0; i<this._so7; i++){var _lsn='minuteHand'+this._ein + i;var _atn=d.getElementById(_lsn);_atn.style.top=(this._3tn+i*2*Math.sin(_10m))+ "px";_atn.style.left=(this._2tn+i*2*Math.cos(_10m)+5)+ "px";_atn.style.top=parseInt(_atn.style.top, 10)+6+"px";_atn.style.left=parseInt(_atn.style.left, 10)+"px";}};_lpc.prototype._9mk=function(){var _4qm=this._t1n.getHours();var _p7n=-1.57+Math.PI*_4qm / 6+Math.PI*parseInt(this._t1n.getMinutes(), 10)/ 360;var d=document;for(var i=0; i<this._i7a; i++){var _lsn='hourHand'+this._ein + i;var _atn=d.getElementById(_lsn);_atn.style.top=(this._3tn+i*2*Math.sin(_p7n))+ "px";_atn.style.left=(this._2tn+i*2*Math.cos(_p7n)+5)+ "px";_atn.style.top=parseInt(_atn.style.top, 10)+6+"px";_atn.style.left=parseInt(_atn.style.left, 10)+"px";}};_lpc.prototype._d7g=function(_n6n){var _azk=this._t1n;this._t1n=new Date(_n6n.toString());if((this._t1n.getMinutes()!=_azk.getMinutes())||(this._t1n.getHours()!=_azk.getHours())){this._9mk();this._quh();}if(this._t1n.getSeconds()!=_azk.getSeconds()){this._tuh();}this._t1n=new Date(_n6n.toString());};
|