mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 03:31:44 +00:00
TODO: bugfixes
This commit is contained in:
parent
7aa1dc90cd
commit
0e33907fe9
@ -13,6 +13,7 @@
|
||||
clearMatrix();
|
||||
const form = event.target as HTMLFormElement;
|
||||
|
||||
// TODO: Calling API via server-side
|
||||
const response = await fetch(`http://localhost:8080/${form.dataset.endpoint}`, {
|
||||
mode: 'cors'
|
||||
});
|
||||
@ -42,6 +43,7 @@
|
||||
// break;
|
||||
}
|
||||
|
||||
// TODO: Calling API via server-side
|
||||
const response = await fetch(`http://localhost:8080/${form.dataset.endpoint}`, {
|
||||
method: form.method,
|
||||
mode: 'cors',
|
||||
@ -111,6 +113,7 @@
|
||||
fdata.append('x', x.toString());
|
||||
fdata.append('y', y.toString());
|
||||
|
||||
// TODO: Calling API via server-side
|
||||
const response = await fetch('http://localhost:8080/pixel', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
@ -421,7 +424,7 @@
|
||||
<td
|
||||
data-x={cell.xIndex}
|
||||
class="p-0.75"
|
||||
style="background-color: #{cell.color}"
|
||||
style="background-color: #{cell.color};"
|
||||
on:mouseenter={setMousePixel}
|
||||
/>
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user