Changeset 9 for src/main/webapp/plotlog.xhtml
- Timestamp:
- 01/30/20 16:52:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/plotlog.xhtml
r4 r9 35 35 36 36 37 37 38 38 39 … … 76 77 */ 77 78 function processLogFile(json) { 78 if (json['SAOPState']==undefined) { 79 if (json['SAOPState']!=undefined) { 80 processSAOP(json['SAOPState']); 81 } else if (json['SHAOPState']!=undefined) { 82 processSHAOP(json['SHAOPState']); 83 } else { 79 84 setStatus("Unknown log file contents "+Object.keys(json)); 80 return; 81 } 82 processSAOP(json['SAOPState']); 85 } 83 86 } 84 87 … … 95 98 getProfiles(json, partyprofiles); 96 99 } 100 101 /** 102 Handle SHAOP protocol result. Get only SHAOP profiles. Remove all 'partial=XX' from relevant profiles. 103 */ 104 function processSHAOP(json) { 105 var partyprofiles={} 106 var teams=json['settings']['SHAOPSettings']['participants']; 107 for (var partyid in json['partyNumbers']) { 108 var nr= json['partyNumbers'][partyid]; 109 if ( (nr & 1 != 0)) continue; // skip COB parties 110 var shaop=teams[nr/2]['shaop']; 111 var profile = shaop['profile'].split('?',1)[0]; // hacky, remove complete query. 112 partyprofiles[partyid]=profile; 113 } 114 115 116 getProfiles(json, partyprofiles); 117 } 118 97 119 98 120 /** … … 334 356 335 357 358 336 359 </script> 337 360 … … 339 362 340 363 <script type="application/javascript"> 364 341 365 342 366 … … 368 392 369 393 394 370 395 </script> 371 396
Note:
See TracChangeset
for help on using the changeset viewer.