add readme and fix save
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 2m1s
Build Docker Image Back / run (pull_request) Successful in 24s
JsDocs / docs (pull_request) Successful in 26s
Test and coverage / coverage (pull_request) Successful in 1m15s

This commit is contained in:
Clement 2024-06-09 13:12:32 +02:00
parent dba9f6ada9
commit 4113b77f81
2 changed files with 18 additions and 3 deletions

View File

@ -2,3 +2,18 @@ Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB
Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/ Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/
# Prod link :
JSDocs : https://drink-tweb.docs.cb85.fr/
Swagger : https://drink-tweb.cb85.fr/api-docs/
PB : https://pb-tweb.cb85.fr/
Datatourisme :
- https://datatour-tweb.cb85.fr/
- https://datatour-tweb.cb85.fr/graphiql
- https://datatour-tweb.cb85.fr/voyager

View File

@ -204,9 +204,9 @@ console.log(fav);
.bindPopup(`<b>${prop.name}</b><br/>note : ${prop.rate} <br/>tags:<br/> ${tags} <p>favori : <input type="checkbox" name="like" id=${element.id}/><p>`) .bindPopup(`<b>${prop.name}</b><br/>note : ${prop.rate} <br/>tags:<br/> ${tags} <p>favori : <input type="checkbox" name="like" id=${element.id}/><p>`)
.on("click", () => { .on("click", () => {
document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => { document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => {
e.addEventListener("click", () => { e.addEventListener("click", async () => {
console.log(element) console.log(element)
saveToFav(element, e.checked) await saveToFav(element, e.checked)
document.location.reload() document.location.reload()
}) })
}) })