This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/view/pages/race/results.php

40 lines
907 B
PHP
Raw Normal View History

2022-05-09 09:36:01 +00:00
<?php
if (!isset($focused)) {
$focused = FALSE;
}
?>
2022-04-26 19:55:10 +00:00
<div id="alertBox" class="alert danger hidden" role="alert"></div>
2022-05-09 09:36:01 +00:00
<?php if ($focused == FALSE): ?>
2022-04-26 21:20:32 +00:00
<h1>Resultater</h1>
2022-05-09 09:36:01 +00:00
<span class="float-right">[&nbsp;<a class="info" href="?focused=1" target="_blank">Fokusert visning</a>&nbsp;]</span>
<?php endif; ?>
2022-04-26 19:55:10 +00:00
<noscript>
Denne siden krever JavaScript
</noscript>
<div id="rankingTable">
Laster inn...
</div>
2022-05-09 09:36:01 +00:00
<style>
.b {
animation: coolFlash 1s;
}
@keyframes coolFlash {
from { background: lightgreen; }
}
</style>
2022-05-08 20:00:11 +00:00
<script src="<?=$this->config['root_url']?>static/js/ResultService.js"></script>
2022-04-26 19:55:10 +00:00
<script>
document.addEventListener('DOMContentLoaded', () => {
2022-05-08 20:00:11 +00:00
alertBox = document.getElementById("alertBox");
rankingTable = document.getElementById("rankingTable");
new ResultService(alertBox, rankingTable, '<?=$this->config['root_url']?>api/race/results.php?h=');
2022-04-26 19:55:10 +00:00
});
</script>