- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
/pom.xml
r1 r3 182 182 </resources> 183 183 </configuration> 184 </execution> 185 </executions> 186 </plugin> 187 <plugin> 188 <groupId>org.apache.maven.plugins</groupId> 189 <artifactId>maven-source-plugin</artifactId> 190 <executions> 191 <execution> 192 <id>attach-sources</id> 193 <goals> 194 <goal>jar</goal> 195 </goals> 184 196 </execution> 185 197 </executions> -
/src/main/webapp/newsession.xhtml
r1 r3 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(); -
/src/main/webapp/newtournament.xhtml
r1 r3 51 51 onchange="connectDomain()"> </input> 52 52 <br /> 53 Domain: <select id="domainselection" onc lick="selectDomain()">53 Domain: <select id="domainselection" onchange="selectDomain()"> 54 54 <!-- <option>Waiting for profiles server</option> --> 55 55 </select> … … 374 374 } 375 375 376 var reuseParties = "on"== document.getElementById("reuseparties").value;376 var reuseParties = document.getElementById("reuseparties").checked; 377 377 var sessionSettings = {"SAOPSettings":{"participants":[],"deadline":deadline}}; 378 378 return JSON.stringify({"AllPermutationsSettings":{"parties":parties,"profiles":profiles,"reuseParties":reuseParties,"partiesPerSession":2,"sessionsettings":sessionSettings}}); … … 383 383 */ 384 384 function init() { 385 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.0.0" 386 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.0.0" 387 388 385 389 connectDomain(); 386 390 connectParties();
Note:
See TracChangeset
for help on using the changeset viewer.