Produced by Araxis Merge on 1/2/2018 11:57:49 AM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue Jan 2 16:57:49 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\IHTA OLH Files.zip\ihta_admin.zip\external.zip | whghost.js | Mon Apr 18 14:52:44 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 250 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | // We bHelp 5.10 .004 | |||||
| 2 | var gbXML= false; | |||||
| 3 | var gaDef= new Array( ); | |||||
| 4 | var gsBgCo lor="#ffff ff"; | |||||
| 5 | var gsBgIm age=""; | |||||
| 6 | var goFont =null; | |||||
| 7 | var goHove rFont=null ; | |||||
| 8 | var gsMarg in="2pt"; | |||||
| 9 | var gsInde nt="2pt"; | |||||
| 10 | var gsActi veBgColor= "#cccccc"; | |||||
| 11 | var gbWhGH ost=false; | |||||
| 12 | var gbShow Def=true; | |||||
| 13 | var gsGloI d="Glo_" | |||||
| 14 | ||||||
| 15 | function s etBackgrou nd(sBgImag e) | |||||
| 16 | { | |||||
| 17 | gs BgImage=sB gImage; | |||||
| 18 | } | |||||
| 19 | ||||||
| 20 | function s etBackgrou ndcolor(sB gColor) | |||||
| 21 | { | |||||
| 22 | gs BgColor=sB gColor; | |||||
| 23 | } | |||||
| 24 | ||||||
| 25 | function s etFont(sTy pe,sFontNa me,sFontSi ze,sFontCo lor,sFontS tyle,sFont Weight,sFo ntDecorati on) | |||||
| 26 | { | |||||
| 27 | va r vFont=ne w whFont(s FontName,s FontSize,s FontColor, sFontStyle ,sFontWeig ht,sFontDe coration); | |||||
| 28 | if (sType=="N ormal") | |||||
| 29 | goFo nt=vFont; | |||||
| 30 | el se if(sTyp e=="Hover" ) | |||||
| 31 | goHo verFont=vF ont; | |||||
| 32 | } | |||||
| 33 | ||||||
| 34 | function s etActiveBg Color(sBgC olor) | |||||
| 35 | { | |||||
| 36 | gs ActiveBgCo lor=sBgCol or; | |||||
| 37 | } | |||||
| 38 | ||||||
| 39 | function s etMargin(s Margin) | |||||
| 40 | { | |||||
| 41 | gs Margin=sMa rgin; | |||||
| 42 | } | |||||
| 43 | ||||||
| 44 | function s etIndent(s Indent) | |||||
| 45 | { | |||||
| 46 | gs Indent=sIn dent; | |||||
| 47 | } | |||||
| 48 | ||||||
| 49 | function i nsertDef(s KName,sDef ) | |||||
| 50 | { | |||||
| 51 | va r nLength= gaDef.leng th | |||||
| 52 | va r oGlo=new nameDefPa ir(sKName, sDef); | |||||
| 53 | ga Def[nLengt h]=oGlo; | |||||
| 54 | re turn nLeng th; | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | function s howDef(nDe f) | |||||
| 58 | { | |||||
| 59 | if (nDef<gaDe f.length) | |||||
| 60 | { | |||||
| 61 | High Light(nDef ); | |||||
| 62 | var oParam=gaD ef[nDef]; | |||||
| 63 | var oMsg = new whMessage (WH_MSG_SH OWGLODEF, gaDef[nDef ], null); | |||||
| 64 | noti fy(oMsg); | |||||
| 65 | } | |||||
| 66 | } | |||||
| 67 | ||||||
| 68 | function n ameDefPair (sName,sDe f) | |||||
| 69 | { | |||||
| 70 | th is.sName=s Name; | |||||
| 71 | th is.sDef=sD ef; | |||||
| 72 | } | |||||
| 73 | ||||||
| 74 | function m ergeItems( oHTML,bDow n,aDataCon ,aCurIdxSe t,nLength, aPos,nLeve l) | |||||
| 75 | { | |||||
| 76 | va r sHTML="" ; | |||||
| 77 | va r nIdxSet= aCurIdxSet [0]; | |||||
| 78 | va r nIIdx=aP os[nIdxSet ]; | |||||
| 79 | va r sRawKNam e = getIte mName(aDat aCon,nIdxS et,nIIdx); | |||||
| 80 | va r sKName=_ textToHtml (sRawKName ); | |||||
| 81 | va r sDText=_ textToHtml _nonbsp(ge tDef(aData Con,nIdxSe t,nIIdx)); | |||||
| 82 | va r sDef=sDT ext; | |||||
| 83 | fo r(var i=1; i<nLength; i++) | |||||
| 84 | { | |||||
| 85 | var nIdxSeti=a CurIdxSet[ i]; | |||||
| 86 | var nIIdxi=aPo s[nIdxSeti ]; | |||||
| 87 | var sRawKNamei = getItem Name(aData Con,nIdxSe ti,nIIdxi) ; | |||||
| 88 | var sKNamei=_t extToHtml( sRawKNamei ); | |||||
| 89 | var sDTexti=_t extToHtml_ nonbsp(get Def(aDataC on,nIdxSet i,nIIdxi)) ; | |||||
| 90 | if ( compare(sK Namei,sKNa me)==0) | |||||
| 91 | { | |||||
| 92 | if (sD Text!=sDTe xti) | |||||
| 93 | sDef+="< br>"+sDTex ti; | |||||
| 94 | } | |||||
| 95 | } | |||||
| 96 | va r nIndex=i nsertDef(s KName,sDef ); | |||||
| 97 | if (nLevel==1 ) | |||||
| 98 | { | |||||
| 99 | sHTM L+="<p><no br id=\""+ getGloId(n Index)+"\" >"; | |||||
| 100 | sHTM L+="<a alt =\""+sKNam e+"\" href =\"javascr ipt:void(0 );\" onfoc us=\"HighL ight("+nIn dex+");\" onclick=\" showDef("+ nIndex+"); return fal se;\">"+sK Name+"</a> </nobr></p >"; | |||||
| 101 | oHTM L.addHTML( sHTML,nLen gth,bDown, true,sRawK Name); | |||||
| 102 | if(g bShowDef) | |||||
| 103 | { | |||||
| 104 | setTim eout("show Def(0);",1 00); | |||||
| 105 | gbShow Def = fals e; | |||||
| 106 | } | |||||
| 107 | } | |||||
| 108 | } | |||||
| 109 | ||||||
| 110 | function H ighLight(n Index) | |||||
| 111 | { | |||||
| 112 | va r oObj=get Element(ge tGloId(nIn dex)); | |||||
| 113 | if (oObj) | |||||
| 114 | High LightEleme nt(oObj,gs ActiveBgCo lor,"trans parent"); | |||||
| 115 | } | |||||
| 116 | ||||||
| 117 | function g etGloId(nI ndex) | |||||
| 118 | { | |||||
| 119 | re turn gsGlo Id+nIndex; | |||||
| 120 | } | |||||
| 121 | ||||||
| 122 | function a djustPosit ion(bDown, aDataCon,a CurIdxSet, nLength,aP os) | |||||
| 123 | { | |||||
| 124 | if (bDown) | |||||
| 125 | { | |||||
| 126 | for( var i=0;i< nLength;i+ +) | |||||
| 127 | aPos[a CurIdxSet[ i]]++; | |||||
| 128 | } | |||||
| 129 | el se{ | |||||
| 130 | for( var i=0;i< nLength;i+ +) | |||||
| 131 | aPos[a CurIdxSet[ i]]--; | |||||
| 132 | } | |||||
| 133 | } | |||||
| 134 | ||||||
| 135 | function g etDef(aDat aCon,nIdxS et,nIIdx) | |||||
| 136 | { | |||||
| 137 | if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx ) | |||||
| 138 | retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].sDef; | |||||
| 139 | el se | |||||
| 140 | retu rn null; | |||||
| 141 | } | |||||
| 142 | ||||||
| 143 | function g etItemName (aDataCon, nIdxSet,nI Idx) | |||||
| 144 | { | |||||
| 145 | if (nIdxSet<a DataCon.le ngth&&aDat aCon[nIdxS et].aKs.le ngth>nIIdx ) | |||||
| 146 | retu rn aDataCo n[nIdxSet] .aKs[nIIdx ].sName; | |||||
| 147 | el se | |||||
| 148 | retu rn null; | |||||
| 149 | } | |||||
| 150 | ||||||
| 151 | function w indow_OnLo ad() | |||||
| 152 | { | |||||
| 153 | if (gsBgImage &&gsBgImag e.length>0 ) | |||||
| 154 | docu ment.body. background =gsBgImage ; | |||||
| 155 | if (gsBgColor &&gsBgColo r.length>0 ) | |||||
| 156 | docu ment.body. bgColor=gs BgColor; | |||||
| 157 | do cument.bod y.insertAd jacentHTML ("beforeEn d",writeLo adingDiv() ); | |||||
| 158 | lo adGlo(); | |||||
| 159 | // commenting this out as it is c reating pr oblem in I E10 and se ems redund ant | |||||
| 160 | /* var oMsg = new whMes sage(WH_MS G_SHOWGLO, null, nul l); | |||||
| 161 | no tify(oMsg) ;*/ | |||||
| 162 | } | |||||
| 163 | ||||||
| 164 | function o nGetProjIn fo(oMsg) { | |||||
| 165 | ||||||
| 166 | if (oM sg && oMsg .oParam) { | |||||
| 167 | gb Ready = tr ue; | |||||
| 168 | va r oProj = oMsg.oPara m; | |||||
| 169 | va r aProj = oProj.aPro j; | |||||
| 170 | gb XML = oPro j.bXML; | |||||
| 171 | if (aProj.le ngth > 0) { | |||||
| 172 | var sLan gId = aPro j[0].sLang Id; | |||||
| 173 | for (var i = 0; i < aProj.le ngth; i++) { | |||||
| 174 | if ( aProj[i].s Glo && aPr oj[i].sLan gId == sLa ngId) | |||||
| 175 | addProjInf o(aProj[i] .sPPath, a Proj[i].sD Path, aPro j[i].sGlo) ; | |||||
| 176 | } | |||||
| 177 | } | |||||
| 178 | wr iteDataIFr ame(); | |||||
| 179 | en Evt(); | |||||
| 180 | } | |||||
| 181 | } | |||||
| 182 | ||||||
| 183 | function l oadGlo() | |||||
| 184 | { | |||||
| 185 | if (!gbReady) | |||||
| 186 | { | |||||
| 187 | var oRes Msg = new whMessage( WH_MSG_GET PROJINFO, null, null ); | |||||
| 188 | request( oResMsg, o nGetProjIn fo); | |||||
| 189 | } | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | function f indCKInDom () | |||||
| 193 | { | |||||
| 194 | re turn true; | |||||
| 195 | } | |||||
| 196 | ||||||
| 197 | function G loWriteCla ssStyle() | |||||
| 198 | { | |||||
| 199 | va r sStyle=" <STYLE TYP E='text/cs s'>\n"; | |||||
| 200 | if (gsBgImag e) | |||||
| 201 | sSty le+="body {border-to p:"+gsBgCo lor+" 1px solid;}\n" ; | |||||
| 202 | el se | |||||
| 203 | sSty le+="body {border-to p:black 1p x solid;}\ n"; | |||||
| 204 | sS tyle+="P { "+getFontS tyle(goFon t)+"margin -top:"+gsM argin+";ma rgin-botto m:"+gsMarg in+";margi n-left:"+g sIndent+"; }\n"; | |||||
| 205 | sS tyle+="A:l ink {"+get FontStyle( goFont)+"} \n"; | |||||
| 206 | sS tyle+="A:v isited {"+ getFontSty le(goFont) +"}\n"; | |||||
| 207 | sS tyle+="A:a ctive {bac kground-co lor:"+gsAc tiveBgColo r+";}\n"; | |||||
| 208 | sS tyle+="A:h over {"+ge tFontStyle (goHoverFo nt)+"}\n"; | |||||
| 209 | sS tyle+="</S TYLE>"; | |||||
| 210 | do cument.wri te(sStyle) ; | |||||
| 211 | } | |||||
| 212 | ||||||
| 213 | function w indow_Unlo ad() | |||||
| 214 | { | |||||
| 215 | un registerLi stener2(WH _MSG_PROJE CTREADY); | |||||
| 216 | un registerLi stener2(WH _MSG_SHOWG LO); | |||||
| 217 | } | |||||
| 218 | ||||||
| 219 | function o nReceiveNo tification (oMsg) | |||||
| 220 | { | |||||
| 221 | if (oMsg) | |||||
| 222 | { | |||||
| 223 | var nMsgId=oMs g.msgId; | |||||
| 224 | if(n MsgId==WH_ MSG_SHOWGL O) | |||||
| 225 | { | |||||
| 226 | if(!gb Nav6) | |||||
| 227 | document .body.focu s(); | |||||
| 228 | } | |||||
| 229 | else if(nMsgId ==WH_MSG_P ROJECTREAD Y) | |||||
| 230 | { | |||||
| 231 | loadGl o(); | |||||
| 232 | } | |||||
| 233 | } | |||||
| 234 | re turn true; | |||||
| 235 | } | |||||
| 236 | ||||||
| 237 | if (window .gbWhUtil& &window.gb WhProxy&&w indow.gbWh Ver&&windo w.gbWhLang &&window.g bWhMsg&&wi ndow.gbWhH ost) | |||||
| 238 | { | |||||
| 239 | re gisterList ener2(WH_M SG_PROJECT READY); | |||||
| 240 | re gisterList ener2(WH_M SG_SHOWGLO ); | |||||
| 241 | go Font=new w hFont("Ver dana","8pt ","#000000 ","normal" ,"normal", "none"); | |||||
| 242 | go HoverFont= new whFont ("Verdana" ,"8pt","#0 07f00","no rmal","nor mal","unde rline"); | |||||
| 243 | wi ndow.onloa d=window_O nLoad; | |||||
| 244 | wi ndow.onbef oreunload= window_BUn load; | |||||
| 245 | wi ndow.onunl oad=window _Unload; | |||||
| 246 | gb WhGHost=tr ue; | |||||
| 247 | } | |||||
| 248 | else | |||||
| 249 | do cument.loc ation.relo ad(); | |||||
| 250 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.