Changeset 16 for src/main/webapp/newsession.xhtml
- Timestamp:
- 08/05/20 09:42:31 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/newsession.xhtml
r15 r16 29 29 <br /> Domain/Profile Server: 30 30 <input type="url" name="url" id="profilesserverurl" 31 value="localhost:8080/profilesserver-1.4. 2"31 value="localhost:8080/profilesserver-1.4.4" 32 32 pattern=".*:[0-9]+/profilesserver" size="30" 33 33 onchange="connectDomain()"> </input> … … 43 43 <br /> <b>Participants</b> <br /> Parties Server: <input type="url" 44 44 name="url" id="partiesserverurl" 45 value="localhost:8080/partiesserver-1.4. 2"45 value="localhost:8080/partiesserver-1.4.4" 46 46 pattern=".*:[0-9]+/partiesserver" size="30" 47 47 onchange="connectParties()"> </input> <br /> <br /> <b>Party … … 49 49 </select> <br /> Profile: <select id="profileselection"></select> Filter: <input 50 50 type="text" id="filter" value="" maxlength="40" /> <br /> 51 Parameters: { <input type="text" id="parameters" 52 onchange="updateParameters()" value="" maxlength="100" /> } <br /> 53 <br /> 51 Parameters: { 52 <textarea id="parameters" rows="2" cols="70" 53 onchange="updateParameters()" value="" /> 54 } <br /> <br /> 54 55 55 56 <div id="cobsetting"> 56 <input type="checkbox" id="advancedCobSettings" onchange="advancedCobSet()" ></input> 57 Advanced COB settings<br/>58 <div id="advancedsettings" style="display:none">57 <input type="checkbox" id="advancedCobSettings" 58 onchange="advancedCobSet()"></input> Advanced COB settings<br /> 59 <div id="advancedsettings" style="display: none"> 59 60 <b>COB party settings</b> <br /> Party : <select 60 61 id="cobpartyselection"> 61 </select> <br /> Profile: <select id="cobprofileselection"></select> 62 Filter: <input type="text" id="cobfilter" value="" 63 maxlength="40" /> <br /> Parameters: { <input 64 type="text" id="cobparameters" onchange="updateCobParameters()" 65 value="" maxlength="100" /> } <br /> <br /> 62 </select> <br /> Profile: <select id="cobprofileselection"></select> Filter: 63 <input type="text" id="cobfilter" value="" maxlength="40" /> <br /> 64 <!-- --> 65 Parameters: { <textarea id="cobparameters" rows="2" cols="70" 66 onchange="updateCobParameters()" value="" /> } <br /> 67 <br /> 66 68 </div> 67 69 </div> … … 113 115 114 116 <script type="application/javascript"> 117 115 118 116 119 … … 273 276 refresh table: copy all parties elements in there. 274 277 Typically parties is something like 275 [{"uri":"http:130.161.180.1:8080/partiesserver/run/randomparty-1.4. 2",278 [{"uri":"http:130.161.180.1:8080/partiesserver/run/randomparty-1.4.4", 276 279 "capabilities":{"protocols":["SAOP"]}, 277 280 "description":"places random bids until it can accept an offer with utility >0.6", 278 "id":"randomparty-1.4. 2",281 "id":"randomparty-1.4.4", 279 282 "partyClass":"geniusweb.exampleparties.randomparty.RandomParty"}, 280 283 ...] … … 438 441 439 442 cell1.innerHTML = partyprofiles[pp]["party"]["partyref"]; 440 cell2.innerHTML = JSON.stringify(partyprofiles[pp]["party"]["parameters"]); 443 // help browser breaking too large strings 444 cell2.innerHTML = JSON.stringify(partyprofiles[pp]["party"]["parameters"]).replace(/,/g,", "); 445 cell2.setAttribute("style","overflow-wrap: anywhere;"); 441 446 cell3.innerHTML = partyprofiles[pp]["profile"]; 442 447 cell4.innerHTML = cobpartyprofiles[pp]["party"]["partyref"]; 443 cell5.innerHTML = JSON.stringify(cobpartyprofiles[pp]["party"]["parameters"]); 448 cell5.innerHTML = JSON.stringify(cobpartyprofiles[pp]["party"]["parameters"]).replace(/,/g,", "); 449 cell5.setAttribute("style","overflow-wrap: anywhere;"); 444 450 cell6.innerHTML = cobpartyprofiles[pp]["profile"]; 445 451 } … … 571 577 function init() { 572 578 selectProtocol(); 573 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.4. 2"574 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.4. 2"579 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.4.4" 580 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.4.4" 575 581 connectDomain(); 576 582 connectParties(); … … 585 591 586 592 593 587 594 </script> 588 595
Note:
See TracChangeset
for help on using the changeset viewer.