fix: prod #17
17
README.md
17
README.md
@ -1,4 +1,19 @@
|
||||
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
|
@ -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>`)
|
||||
.on("click", () => {
|
||||
document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => {
|
||||
e.addEventListener("click", () => {
|
||||
e.addEventListener("click", async () => {
|
||||
console.log(element)
|
||||
saveToFav(element, e.checked)
|
||||
await saveToFav(element, e.checked)
|
||||
document.location.reload()
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user