Powtóreczka
This commit is contained in:
1 parent
e80734527f
commit
c1348ef991
648 files changed
+66782
No files matched your search
@@ -0,0 +1,17 @@
|
||||
|
||||
{
|
||||
x: 5,
|
||||
y: 2
|
||||
}
|
||||
|
||||
serwer na podstawie danych wysłanych fetchem przerabia te dane
|
||||
|
||||
res.send({ id_diva: `div${x}${y}` })
|
||||
|
||||
i potem funkcja fetcha na podstawie odpowiedzi z serwera po timeoucie zmienia kolor
|
||||
|
||||
.then ... function(data) {
|
||||
setTimeout(() => {
|
||||
document.getElementById(data.id_diva).background-color = "red";
|
||||
}, 1000);
|
||||
}
|
||||
Reference in new issue
Block a user