Endra navn på api

This commit is contained in:
Trygve 2024-10-27 18:34:42 +01:00
parent 35df188cf6
commit 3ec19dd4cb
5 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@
</div>
<h2>Vi tar forbehold om feil. Dette er ikke offisielle resultater</h2>
<?php
include("get_table.php")
include("table.php")
?>
<footer>
<h3>Laget av Trygve. <a href="https://git.willy.club/Trygve/elektronisk-kadaver-tidtakingssystem">Kildekode</a></h3>
@ -30,7 +30,7 @@ include("get_table.php")
<script>
function update() {
const table = document.querySelector("table");
const myRequest = new Request(`get_table.php`);
const myRequest = new Request(`table.php`);
fetch(myRequest)
.then((response) => response.text())
.then((text) => {

View File

@ -22,7 +22,7 @@
<h2>Oppdatert 13.10.24</h2>
<?php
$query = ["paameldte"];
include("get_table.php");
include("table.php");
?>
<footer>
<h3>Laget av Trygve. <a href="https://git.willy.club/Trygve/elektronisk-kadaver-tidtakingssystem">Kildekode</a></h3>

View File

@ -77,7 +77,7 @@ function register_runner(id) {
formData.append(name= 'id', value=id);
time = new Date(Date.now()).toISOString().split('.')[0]+"Z"
formData.append('time', time);
response = fetch("post.php", {
response = fetch("passing.php", {
method: "POST",
body: formData,
})
@ -132,7 +132,7 @@ function update_row(id, name, passed) {
function update() {
const table = document.getElementById("runners");
control = get_control();
const myRequest = new Request(`get_table.php?registrering,`+control);
const myRequest = new Request(`table.php?registrering,`+control);
fetch(myRequest)
.then((response) => response.text())
.then((text) => {