Changeset 2 for src/main/webapp/newsession.xhtml
- Timestamp:
- 08/29/19 17:09:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/newsession.xhtml
r1 r2 31 31 onchange="connectDomain()"> </input> 32 32 <br /> Domain: 33 <select id="domainselection" onc lick="selectDomain()">33 <select id="domainselection" onchange="selectDomain()"> 34 34 <!-- <option>Waiting for profiles server</option> --> 35 35 </select> … … 80 80 81 81 82 82 83 // FIXME quick and dirty code. No clean MVC 83 84 84 85 85 86 <![CDATA[ 86 "use strict";87 //"use strict"; 87 88 88 89 var domainwebsocket = null; … … 102 103 var partyprofiles=[]; 103 104 104 105 /** from http://fitzgeraldnick.com/2010/08/10/settimeout-patterns.html */ 106 107 function async (fn) { 108 setTimeout(fn, 1000); 109 } 110 111 function sometimeWhen (test, then) { 112 async(function () { 113 if ( test() ) { 114 then(); 115 } else { 116 async(arguments.callee); 117 } 118 }); 119 } 120 121 122 105 123 /** 106 124 Refresh known domains using given profilesserver URL. … … 267 285 } 268 286 287 var x=1; 269 288 /** 270 289 start the session as currently set on this page. … … 292 311 if (this.status == 200) { 293 312 document.getElementById("startbutton").disabled=true; 294 document.getElementById("started").setAttribute("style","");295 313 document.getElementById("logref").href="log/"+this.responseText+".json"; 296 314 document.getElementById("plotref").href="plotlog.xhtml?id="+this.responseText; 297 315 316 sometimeWhen(function() { x=x+1; return x==3 }, 317 function() { document.getElementById("started").setAttribute("style",""); }); 318 298 319 } 299 320 else … … 331 352 */ 332 353 function init() { 354 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.0.0" 355 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.0.0" 333 356 connectDomain(); 334 357 connectParties();
Note:
See TracChangeset
for help on using the changeset viewer.