- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
/pom.xml
r3 r1 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>196 184 </execution> 197 185 </executions> -
/src/main/webapp/newsession.xhtml
r3 r1 31 31 onchange="connectDomain()"> </input> 32 32 <br /> Domain: 33 <select id="domainselection" onc hange="selectDomain()">33 <select id="domainselection" onclick="selectDomain()"> 34 34 <!-- <option>Waiting for profiles server</option> --> 35 35 </select> … … 80 80 81 81 82 83 82 // FIXME quick and dirty code. No clean MVC 84 83 85 84 86 85 <![CDATA[ 87 //"use strict";86 "use strict"; 88 87 89 88 var domainwebsocket = null; … … 103 102 var partyprofiles=[]; 104 103 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 104 123 105 /** 124 106 Refresh known domains using given profilesserver URL. … … 285 267 } 286 268 287 var x=1;288 269 /** 289 270 start the session as currently set on this page. … … 311 292 if (this.status == 200) { 312 293 document.getElementById("startbutton").disabled=true; 294 document.getElementById("started").setAttribute("style",""); 313 295 document.getElementById("logref").href="log/"+this.responseText+".json"; 314 296 document.getElementById("plotref").href="plotlog.xhtml?id="+this.responseText; 315 297 316 sometimeWhen(function() { x=x+1; return x==3 },317 function() { document.getElementById("started").setAttribute("style",""); });318 319 298 } 320 299 else … … 352 331 */ 353 332 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"356 333 connectDomain(); 357 334 connectParties(); -
/src/main/webapp/newtournament.xhtml
r3 r1 51 51 onchange="connectDomain()"> </input> 52 52 <br /> 53 Domain: <select id="domainselection" onc hange="selectDomain()">53 Domain: <select id="domainselection" onclick="selectDomain()"> 54 54 <!-- <option>Waiting for profiles server</option> --> 55 55 </select> … … 374 374 } 375 375 376 var reuseParties = document.getElementById("reuseparties").checked;376 var reuseParties = "on"== document.getElementById("reuseparties").value; 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 389 385 connectDomain(); 390 386 connectParties();
Note:
See TracChangeset
for help on using the changeset viewer.