|
24 | 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
25 | 25 | SOFTWARE. |
26 | 26 | --> |
27 | | -<title>HitCounter GUI</title> |
| 27 | +<title>Hitcounter GUI</title> |
28 | 28 | <script type="text/javascript" src="javascript.js"></script> |
29 | 29 | </head> |
30 | 30 | <body> |
|
279 | 279 |
|
280 | 280 | // generate actual split table entry |
281 | 281 | new_tbl += '<tr class="' + (d.split_active == i ? 'current' : (d.high_contrast ? (i%2==0 ? 'even' : 'odd') : '')) + '">' + |
282 | | - '<td class="' + s.class_name + highlight_class + bottom_class + ' left">' + s.name + '</td>' + // Split |
283 | | - (!d.show_hits || !d.show_hitscombined ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_combined) : s.hits_combined)) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_combined))) + '</td>') + // Now |
284 | | - (!d.show_hits || d.show_hitscombined ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_boss ) : s.hits_boss )) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_boss ))) + '</td>'+ // Boss |
285 | | - '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_way ) : s.hits_way )) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_way ))) + '</td>') + // Way |
286 | | - (!d.show_numbers || !d.show_diff ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (!s.reached || (hits_blank && ((s.hits_combined - s.hits_pb) == 0)) ? "-" : IntToStringSigned(s.hits_combined - s.hits_pb)) + '</td>') + // Diff |
287 | | - (!d.show_pb ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? ' ' + (d.use_roman ? IntToRomanStr(s.hits_pb) : s.hits_pb) + (d.show_pb_totals ? (d.supPB ? '<sub> ' : '') + '(' + s.comulative_pb + ')' + (d.supPB ? '</sub>' : '') : '') : ShowCrossOrCheckMark(d.purpose == 3 && !s.hitless_pb ? 1 : s.hits_pb)) + '</td>') + // PB |
288 | | - (!d.show_time ? '' : '<td class="' + highlight_class + bottom_class + ' right">' + (d.split_active == i ? BuildSpan('time_split_current', '', comulative_time_duration_str) : (!s.reached && s.duration == 0 ? empty_str : comulative_time_duration_str)) + '</td>') + // Time |
289 | | - (!d.show_time_diff ? '' : '<td class="' + s.class_time + highlight_class + bottom_class + ' right">' + (0 < s.duration_pb ? (d.split_active == i ? BuildSpan('time_split_diff', s.class_time, comulative_time_diff_str ) : (!s.reached && s.duration == 0 ? empty_str : comulative_time_diff_str )) : empty_str) + '</td>') + // Diff (Time) |
290 | | - (!d.show_time_pb ? '' : '<td class="' + highlight_class + bottom_class + ' right">' + (0 < s.duration_pb ? IntToTimeStr(s.comulative_time_pb, false) : empty_str) + '</td>') + // PB (Time) |
291 | | - (!d.show_session_progress ? '' : '<td class="' + highlight_class + bottom_class + '">' + (d.session_progress == i ? ShowSessionProgress() : ' ') + '</td>') + // Star |
| 282 | + '<td class="' + s.class_name + highlight_class + bottom_class + ' left">' + s.name + '</td>' + // Split |
| 283 | + (!d.show_hits || !d.show_hitscombined ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_combined) : s.hits_combined)) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_combined))) + '</td>') + // Now |
| 284 | + (!d.show_hits || d.show_hitscombined ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_boss ) : s.hits_boss )) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_boss ))) + '</td>'+ // Boss |
| 285 | + '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? (hits_blank ? "-" : (d.use_roman ? IntToRomanStr(s.hits_way ) : s.hits_way )) : ShowCrossOrCheckMark(hits_blank ? -1 : (d.purpose == 3 && !s.hitless ? 1 : s.hits_way ))) + '</td>') + // Way |
| 286 | + (!d.show_numbers || !d.show_diff ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (!s.reached || (hits_blank && ((s.hits_combined - s.hits_pb) == 0)) ? "-" : IntToStringSigned(s.hits_combined - s.hits_pb)) + '</td>') + // Diff |
| 287 | + (!d.show_pb ? '' : '<td class="' + s.class_hits + highlight_class + bottom_class + '">' + (d.show_numbers ? ' ' + (d.use_roman ? IntToRomanStr(s.hits_pb) : s.hits_pb) + (d.show_pb_totals ? (d.supPB ? '<sub> ' : '') + '(' + s.comulative_pb + ')' + (d.supPB ? '</sub>' : '') : '') : ShowCrossOrCheckMark(d.purpose == 3 && !s.hitless_pb ? 1 : s.hits_pb)) + '</td>') + // PB |
| 288 | + (!d.show_time ? '' : '<td class="' + highlight_class + bottom_class + ' timestamp right">' + (d.split_active == i ? BuildSpan('time_split_current', '', comulative_time_duration_str) : (!s.reached && s.duration == 0 ? empty_str : comulative_time_duration_str)) + '</td>') + // Time |
| 289 | + (!d.show_time_diff ? '' : '<td class="' + s.class_time + highlight_class + bottom_class + ' right">' + (0 < s.duration_pb ? (d.split_active == i ? BuildSpan('time_split_diff', s.class_time, comulative_time_diff_str ) : (!s.reached && s.duration == 0 ? empty_str : comulative_time_diff_str )) : empty_str) + '</td>') + // Diff (Time) |
| 290 | + (!d.show_time_pb ? '' : '<td class="' + highlight_class + bottom_class + ' timestamp right">' + (0 < s.duration_pb ? IntToTimeStr(s.comulative_time_pb, false) : empty_str) + '</td>') + // PB (Time) |
| 291 | + (!d.show_session_progress ? '' : '<td class="' + highlight_class + bottom_class + '">' + (d.session_progress == i ? ShowSessionProgress() : ' ') + '</td>') + // Star |
292 | 292 | '</tr>'; |
293 | 293 | } |
294 | 294 | } |
|
337 | 337 | } |
338 | 338 |
|
339 | 339 | new_tbl += |
340 | | - (!d.show_time ? '' : '<td class="' + majorclass + ' bottom right">' + BuildSpan('time_total_current', '', IntToTimeStr(total_time_current, true)) + '</td>') + // Total Time |
341 | | - (!d.show_time_diff ? '' : '<td class="' + majorclass + ' bottom right">' + BuildSpan('time_total_diff', time_class, DiffToTimeStr(total_time_current - total_time_pb, true)) + '</td>') + // Diff between Total Time and Total PB (Time) |
342 | | - (!d.show_time_pb ? '' : '<td class="' + majorclass + ' bottom right">' + IntToTimeStr(total_time_pb, true) + '</td>') + // Total PB (Time) |
| 340 | + (!d.show_time ? '' : '<td class="' + majorclass + ' bottom timestamp right">' + BuildSpan('time_total_current', '', IntToTimeStr(total_time_current, true)) + '</td>') + // Total Time |
| 341 | + (!d.show_time_diff ? '' : '<td class="' + majorclass + ' bottom timestamp right">' + BuildSpan('time_total_diff', time_class, DiffToTimeStr(total_time_current - total_time_pb, true)) + '</td>') + // Diff between Total Time and Total PB (Time) |
| 342 | + (!d.show_time_pb ? '' : '<td class="' + majorclass + ' bottom timestamp right">' + IntToTimeStr(total_time_pb, true) + '</td>') + // Total PB (Time) |
343 | 343 | (!d.show_session_progress ? '' : '<td class="' + majorclass + ' bottom"> </td>') + // Star |
344 | 344 | '</tr>'; |
345 | 345 |
|
|
355 | 355 | new_tbl += |
356 | 356 | '<tr>' + |
357 | 357 | '<td class="' + majorclass + ' bottom left">Time:</td>' + // Time |
358 | | - '<td colspan="' + hit_cols + '" class="' + majorclass + ' bottom"><span id="time_total_footer">' + IntToTimeStr(total_time_current, true) + '</span></td>' + // Total Time (Footer) |
| 358 | + '<td colspan="' + hit_cols + '" class="' + majorclass + ' bottom timestamp"><span id="time_total_footer">' + IntToTimeStr(total_time_current, true) + '</span></td>' + // Total Time (Footer) |
359 | 359 | '<td colspan="' + (max_cols-1-hit_cols) + '" class="' + majorclass + ' bottom"> </td>' + // Filler |
360 | 360 | '</tr>'; |
361 | 361 | } |
362 | 362 | else if ((d.purpose == 1 /*DeathCounter*/) || (d.purpose == 2 /*Checklist*/)) |
363 | 363 | { |
364 | 364 | new_tbl += |
365 | 365 | '<tr class="' + (d.high_contrast ? 'even' : '') + '">' + |
366 | | - '<td colspan="' + max_cols + '" class="bottom left">Time: <span id="time_total_footer">' + IntToTimeStr(total_time_current, true) + '</span></td>' + // Total Time (Footer) |
| 366 | + '<td colspan="' + max_cols + '" class="bottom timestamp left">Time: <span id="time_total_footer">' + IntToTimeStr(total_time_current, true) + '</span></td>' + // Total Time (Footer) |
367 | 367 | '</tr>'; |
368 | 368 | } |
369 | 369 | } |
|
0 commit comments