Changeset 13 for src/main/webapp/utilstable.xhtml
- Timestamp:
- 04/28/20 14:43:48 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/utilstable.xhtml
r12 r13 4 4 <title>Show tournament results table</title> 5 5 <link rel="stylesheet" type="text/css" href="style.css" /> 6 <script src="Chart.min_2.8.0.js"></script>7 6 </head> 8 7 <style> … … 150 149 /** 151 150 This function returns immediately and will add the profile to the profiles dictionary some time later. 151 @param profurl the profile URL may have ?partial filter. 152 152 @param callwhendone function is called (without arguments) when profiles contains no pending anymore 153 153 */ 154 function getProfile(profileurl, callwhendone) { 155 profiles[profileurl]='pending'; 156 157 var profileurl1 = profileurl; // idem but possibly without query 158 if (SHAOP) { 159 profileurl1 = profileurl1.split('?',1)[0]; // hacky, remove complete query. 160 } 161 162 setStatus("fetching profile "+profileurl1); 154 function getProfile(profurl, callwhendone) { 155 profiles[profurl]='pending'; // store ORIGINAL URL 156 var profileurl = profurl.split('?',1)[0]; // hacky, remove complete query. 157 158 setStatus("fetching profile "+profileurl); 163 159 var ws; 164 160 if ('WebSocket' in window) { 165 ws = new WebSocket(profileurl 1);161 ws = new WebSocket(profileurl); 166 162 } else if ('MozWebSocket' in window) { 167 ws = new MozWebSocket(profileurl 1);163 ws = new MozWebSocket(profileurl); 168 164 } else { 169 165 setStatus('Fatal: WebSocket is not supported by this browser. Please use a newer browser'); … … 174 170 var profile = JSON.parse(event.data); 175 171 if (profile['LinearAdditiveUtilitySpace']==undefined) { 176 setStatus('Fatal: profile '+ uri+" does not contain a LinearAdditiveUtilitySpace.");172 setStatus('Fatal: profile '+profileurl+" does not contain a LinearAdditiveUtilitySpace."); 177 173 return; 178 174 } 179 175 180 profiles[prof ileurl]=profile['LinearAdditiveUtilitySpace'];176 profiles[profurl]=profile['LinearAdditiveUtilitySpace']; 181 177 182 178 checkAllProfiles(callwhendone);
Note:
See TracChangeset
for help on using the changeset viewer.