Produced by Araxis Merge on 1/2/2018 11:57:34 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:34 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\IHTA OLH Files.zip\ihta_admin.zip\admin.zip\admin | whproxy.js | Wed May 31 16:59:36 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 231 |
| 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 | // WebH elp 5.10.0 01 | |||||
| 2 | ||||||
| 3 | var gbInit ed = false ; | |||||
| 4 | var gWndSt ubPage = n ull; | |||||
| 5 | ||||||
| 6 | function g etStubPage _inter(wCu rrent) { | |||||
| 7 | if (nu ll == wCur rent.paren t || wCurr ent.parent == wCurre nt) | |||||
| 8 | re turn null; | |||||
| 9 | ||||||
| 10 | if (ty peof (wCur rent.paren t.whname) == "string " && "wh_s tub" == wC urrent.par ent.whname ) | |||||
| 11 | re turn wCurr ent.parent ; | |||||
| 12 | else { | |||||
| 13 | if (wCurrent .parent.fr ames.lengt h != 0 && wCurrent.p arent != w Current) | |||||
| 14 | return g etStubPage _inter(wCu rrent.pare nt); | |||||
| 15 | el se | |||||
| 16 | return n ull; | |||||
| 17 | } | |||||
| 18 | } | |||||
| 19 | ||||||
| 20 | function g etStubPage () { | |||||
| 21 | va r oWnd; | |||||
| 22 | if (!g bInited) { | |||||
| 23 | if (msgHandl erProxy.ch eckChromeL ocal()) { | |||||
| 24 | try | |||||
| 25 | { | |||||
| 26 | oWnd = t op.frames[ 'ContentFr ame']; | |||||
| 27 | } | |||||
| 28 | catch( err) { } | |||||
| 29 | if (type of (oWnd) != 'undefi ned' && oW nd != null ) | |||||
| 30 | gWnd StubPage = oWnd; | |||||
| 31 | else | |||||
| 32 | gWnd StubPage = top; | |||||
| 33 | if (gWnd StubPage = = this) | |||||
| 34 | gWnd StubPage = null; | |||||
| 35 | } | |||||
| 36 | el se | |||||
| 37 | gWndStub Page = get StubPage_i nter(windo w); | |||||
| 38 | gb Inited = t rue; | |||||
| 39 | } | |||||
| 40 | return gWndStubP age; | |||||
| 41 | } | |||||
| 42 | ||||||
| 43 | var g_qCal lBack = {} ; | |||||
| 44 | ||||||
| 45 | function M essageHand erProxy() { | |||||
| 46 | this.s rcWnd = nu ll; | |||||
| 47 | this.r outerWnd = null; | |||||
| 48 | this.u niqueId = 0; | |||||
| 49 | ||||||
| 50 | this.i nit = func tion() { | |||||
| 51 | th is.srcWnd = window; | |||||
| 52 | th is.routerW nd = getSt ubPage(); | |||||
| 53 | if (this.che ckChromeLo cal()) { | |||||
| 54 | this.src Wnd.addEve ntListener ("message" , onReceiv eMsg, fals e); | |||||
| 55 | } | |||||
| 56 | } | |||||
| 57 | ||||||
| 58 | this.r egisterLis tener = fu nction(fra meName, ms gId) { | |||||
| 59 | if (this.rou terWnd) { | |||||
| 60 | if (this .checkChro meLocal()) { | |||||
| 61 | if ( this.route rWnd.postM essage) { | |||||
| 62 | var oMsg = new whMes sage(msgId , frameNam e, null); | |||||
| 63 | oMsg.msgTy pe = "regi ster"; | |||||
| 64 | this.route rWnd.postM essage(JSO N.stringif y(oMsg), " *"); | |||||
| 65 | return tru e; | |||||
| 66 | } | |||||
| 67 | } | |||||
| 68 | else { | |||||
| 69 | if ( this.route rWnd.regis terListene r) { | |||||
| 70 | this.route rWnd.regis terListene r(frameNam e, msgId); | |||||
| 71 | return tru e; | |||||
| 72 | } | |||||
| 73 | } | |||||
| 74 | } | |||||
| 75 | re turn false ; | |||||
| 76 | } | |||||
| 77 | ||||||
| 78 | this.r egisterLis tener2 = f unction (m sgId) { | |||||
| 79 | if (this.rou terWnd) { | |||||
| 80 | if (this .checkChro meLocal()) { | |||||
| 81 | var oMsg = new whMessage (msgId, nu ll, null); | |||||
| 82 | oMsg .msgType = "register "; | |||||
| 83 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 84 | } | |||||
| 85 | else | |||||
| 86 | this .routerWnd .registerL istener2(t his.srcWnd , msgId); | |||||
| 87 | return t rue; | |||||
| 88 | } | |||||
| 89 | re turn false ; | |||||
| 90 | } | |||||
| 91 | ||||||
| 92 | this.u nregisterL istener = function ( frameName, msgId) { | |||||
| 93 | if (this.rou terWnd) { | |||||
| 94 | if (this .checkChro meLocal()) { | |||||
| 95 | var oMsg = new whMessage (msgId, fr ameName, n ull); | |||||
| 96 | oMsg .msgType = "unregist er"; | |||||
| 97 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 98 | } | |||||
| 99 | else | |||||
| 100 | this .routerWnd .unregiste rListener( frameName, msgId); | |||||
| 101 | return t rue; | |||||
| 102 | } | |||||
| 103 | re turn false ; | |||||
| 104 | } | |||||
| 105 | ||||||
| 106 | this.u nregisterL istener2 = function (msgId) { | |||||
| 107 | if (this.rou terWnd) { | |||||
| 108 | if (this .checkChro meLocal()) { | |||||
| 109 | var oMsg = new whMessage (msgId, nu ll, null); | |||||
| 110 | oMsg .msgType = "unregist er"; | |||||
| 111 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 112 | } | |||||
| 113 | else | |||||
| 114 | this .routerWnd .unregiste rListener2 (this.srcW nd, msgId) ; | |||||
| 115 | return t rue; | |||||
| 116 | } | |||||
| 117 | re turn false ; | |||||
| 118 | } | |||||
| 119 | ||||||
| 120 | this.n otify = fu nction (oM sg) { | |||||
| 121 | if (this.rou terWnd) { | |||||
| 122 | if (this .checkChro meLocal()) { | |||||
| 123 | oMsg .msgType = "notify"; | |||||
| 124 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 125 | } | |||||
| 126 | else | |||||
| 127 | this .routerWnd .notify(oM sg); | |||||
| 128 | } | |||||
| 129 | } | |||||
| 130 | ||||||
| 131 | this.r equest = f unction (o Msg, fCall back) { | |||||
| 132 | if (this.rou terWnd) { | |||||
| 133 | if (this .checkChro meLocal()) { | |||||
| 134 | this .uniqueId+ +; | |||||
| 135 | if ( fCallback) | |||||
| 136 | g_qCallBac k[this.uni queId] = f Callback; | |||||
| 137 | oMsg .msgType = "request" ; | |||||
| 138 | oMsg .msgSeqNum = this.un iqueId; | |||||
| 139 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 140 | } | |||||
| 141 | else { | |||||
| 142 | this .routerWnd .request(o Msg); | |||||
| 143 | if ( fCallback) | |||||
| 144 | fCallback( oMsg); | |||||
| 145 | } | |||||
| 146 | } | |||||
| 147 | } | |||||
| 148 | ||||||
| 149 | this.r eply = fun ction (oMs g) { | |||||
| 150 | if (this.rou terWnd) { | |||||
| 151 | if (this .checkChro meLocal()) { | |||||
| 152 | oMsg .msgType = "reply"; | |||||
| 153 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 154 | } | |||||
| 155 | } | |||||
| 156 | } | |||||
| 157 | ||||||
| 158 | this.c heckChrome Local = fu nction() { | |||||
| 159 | if (window.c hrome) | |||||
| 160 | if (docu ment.locat ion.protoc ol.substri ng(0, 4) = = "file") | |||||
| 161 | return t rue; | |||||
| 162 | re turn false ; | |||||
| 163 | } | |||||
| 164 | } | |||||
| 165 | ||||||
| 166 | function o nReceiveMs g(event) { | |||||
| 167 | try{ | |||||
| 168 | va r oMsg = J SON.parse( event.data ); | |||||
| 169 | sw itch (oMsg .msgType) { | |||||
| 170 | case "re gister": | |||||
| 171 | brea k; | |||||
| 172 | case "un register": | |||||
| 173 | brea k; | |||||
| 174 | case "no tify": | |||||
| 175 | onRe ceiveNotif ication(oM sg); | |||||
| 176 | brea k; | |||||
| 177 | case "re quest": | |||||
| 178 | onRe ceiveReque st(oMsg); | |||||
| 179 | brea k; | |||||
| 180 | case "re ply": | |||||
| 181 | g_qC allBack[oM sg.msgSeqN um](oMsg); | |||||
| 182 | g_qC allBack[oM sg.msgSeqN um] = null ; | |||||
| 183 | brea k; | |||||
| 184 | } | |||||
| 185 | }catch (e) | |||||
| 186 | { | |||||
| 187 | } | |||||
| 188 | } | |||||
| 189 | ||||||
| 190 | var msgHan dlerProxy = new Mess ageHanderP roxy(); | |||||
| 191 | msgHandler Proxy.init (); | |||||
| 192 | ||||||
| 193 | function r egisterLis tener(fram eName, msg Id) { | |||||
| 194 | msgHan dlerProxy. registerLi stener(fra meName, ms gId); | |||||
| 195 | } | |||||
| 196 | ||||||
| 197 | function r egisterLis tener2(msg Id) { | |||||
| 198 | msgHan dlerProxy. registerLi stener2(ms gId); | |||||
| 199 | } | |||||
| 200 | ||||||
| 201 | function u nregisterL istener(fr ameName, m sgId) { | |||||
| 202 | msgHan dlerProxy. unregister Listener(f rameName, msgId); | |||||
| 203 | } | |||||
| 204 | ||||||
| 205 | function u nregisterL istener2(m sgId) { | |||||
| 206 | msgHan dlerProxy. unregister Listener2( msgId); | |||||
| 207 | } | |||||
| 208 | ||||||
| 209 | function n otify(oMsg ) { | |||||
| 210 | msgHan dlerProxy. notify(oMs g); | |||||
| 211 | } | |||||
| 212 | ||||||
| 213 | function r equest(oMs g, fCallba ck) { | |||||
| 214 | msgHan dlerProxy. request(oM sg, fCallb ack); | |||||
| 215 | } | |||||
| 216 | ||||||
| 217 | function r eply(oMsg) { | |||||
| 218 | msgHa ndlerProxy .reply(oMs g); | |||||
| 219 | } | |||||
| 220 | ||||||
| 221 | var gbWhPr oxy=true; | |||||
| 222 | ||||||
| 223 | var gbPrev iew=false; | |||||
| 224 | gbPreview= false; | |||||
| 225 | if (gbPrev iew) | |||||
| 226 | do cument.onc ontextmenu =contextMe nu; | |||||
| 227 | ||||||
| 228 | function c ontextMenu () | |||||
| 229 | { | |||||
| 230 | re turn false ; | |||||
| 231 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.