From 2643958361cc782c4c96063a454d0fdbc4f80b48 Mon Sep 17 00:00:00 2001 From: 16IMA Date: Sat, 28 Dec 2024 22:08:22 +0100 Subject: [PATCH] change link placeholder error and write coments in js --- docs/assets/index-8c2eed89.css | 1 - docs/images/bg-adalab.png | Bin 45776 -> 0 bytes docs/images/favicon.png | Bin 819 -> 0 bytes docs/images/logo-adalab.png | Bin 1999 -> 0 bytes docs/index.html | 41 ------------------------------ docs/js/main.js | 6 ----- src/js/main.js | 44 +++++++++++++++++++-------------- 7 files changed, 26 insertions(+), 66 deletions(-) delete mode 100644 docs/assets/index-8c2eed89.css delete mode 100644 docs/images/bg-adalab.png delete mode 100644 docs/images/favicon.png delete mode 100644 docs/images/logo-adalab.png delete mode 100644 docs/index.html delete mode 100644 docs/js/main.js diff --git a/docs/assets/index-8c2eed89.css b/docs/assets/index-8c2eed89.css deleted file mode 100644 index 219853d..0000000 --- a/docs/assets/index-8c2eed89.css +++ /dev/null @@ -1 +0,0 @@ -*{box-sizing:border-box;margin:0;padding:0}.hidden{display:none}.header{text-align:center;padding:.3125rem}.header__img{width:100%}.search{width:100%;position:absolute;display:flex;justify-content:center;align-items:center}.search__box{padding:.625rem;border:.0625rem solid #ccc;border-radius:.3125rem;width:31.25rem;top:-6.25rem;position:relative;box-shadow:.125rem .125rem .25rem #1414144d;margin-right:.3125rem;font-family:Mouse Memoirs,serif;font-size:1.25rem}.search__btn{position:relative;background-color:#fff;border:.0625rem solid #ccc;border-radius:.3125rem;top:-6.25rem;padding:.625rem;width:6.25rem;box-shadow:.125rem .125rem .25rem #1414144d;margin-left:.3125rem;font-family:Mouse Memoirs,serif;font-size:1.25rem}.cards{display:flex}.cards__title{font-family:Mouse Memoirs,serif;font-size:3.125rem;text-align:center;text-shadow:.125rem .125rem .125rem rgba(32,32,32,.3);color:#000;padding:1.25rem}.cards__heart{color:#f24e7f;font-size:1.875rem}.cards__cleanBtn{background-color:#fff;border:.0625rem solid #ccc;border-radius:.3125rem;top:-6.25rem;padding:.625rem;width:6.25rem;box-shadow:.125rem .125rem .25rem #1414144d;margin-left:.3125rem;font-family:Mouse Memoirs,serif;font-size:1.25rem}.cards__box1{width:30vw;display:flex;flex-direction:column;align-items:center}.cards__box2{width:100vw}.cards__favorites,.cards__characters{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:1.25rem}.cards__box{list-style:none;width:15.625rem;height:18.75rem;margin:.625rem;border:.125rem solid black;border-radius:.3125rem;box-shadow:.125rem .125rem .25rem #1414144d;display:flex;flex-direction:column;justify-content:center;text-align:center;position:relative}.cards__boxImg{width:100%;height:15.625rem;object-fit:fill;padding:.3125rem}.cards__boxTxt{font-family:Mouse Memoirs,serif;font-size:1.5625rem;padding-top:.3125rem}.cards__eraser{width:1.875rem;height:1.875rem;font-size:1.25rem;position:absolute;background-color:#fff;padding:.125rem;border-radius:.3125rem;border:.125rem solid black;box-shadow:.125rem .125rem .25rem #1414144d;top:.9375rem;right:.625rem;z-index:99}.cards__favorite{background-color:#f24e7f;color:#00f}.footer{text-align:center;padding:.3125rem;background-color:#f24e7f;color:#fff;font-family:Mouse Memoirs,serif;font-size:1.25rem;position:fixed;bottom:0;width:100%;box-shadow:.125rem .125rem .25rem #1414144d;z-index:999} diff --git a/docs/images/bg-adalab.png b/docs/images/bg-adalab.png deleted file mode 100644 index 297bb6f9d604bb70c9451e197e4fbc8f4dd47a6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45776 zcmcGVWlUyGx2Dks8f)C4acJCK8h09ZcXxMpcXxMpYuw%4-5(wthWC6kXEJhTGC7$_ z$=-KrC98H-_K&)9hy9Teh5wHI9RvgfUR+E_{%b7yYP8VbzIt)Z)xNI*!a+b>5&Elm zLK}vDy~EgwsX2gvz#{+CK<75S-@Zg#M`2Y*1sh{W7d?9;kl%(j`bIxR%y8LkJSRU2&S2v=e4b=N4fZ%Nh zitnip@qc~%^bt~0!r5*dZeWHR{~W_w=B?~$23k$HbO&9=hXyylK2je~spI36;42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?@t*I7QL(YL7q%Ze#`RG7((`G)*5b8<;rURfNSKhJTc!-?toz|8_#!iFfwp$;Y|w zyZm2H`CMd{A7>bs)f9dzcq~_{74>=~E?j?irALVK9JYfYR4>Ls;OOGWk%w%bI9}%6 z`1+esQO1$_(K4+M)f+|ON9iYBWUWv0>hFFr_&U+rxlWO^t6nI=$N>{4boVhqZ?L!E z)2qJt1n*@hD91frqgKHeqM1=T#h=8>w48DXd+unhdCjl8PO5)|_MGC1KfI44sg($Ov+pQgD-5YS5P$eOygX{x=rCw)U02Zc+8sITBtkqF_8G5rY}tvA zno-ubEQ_Vmv|w+)$0@}h9w>1-%N1YJCfyS+eZjgfK43wdmUA=OviF$8pi3IE>pp+c z4%&3)Y3oRbo;*DNM)*5uyG#{Sa-{oX%qOXtQE$umxZ~S$Gpj1(OyujIo^diF1#f0-)TRt zAE~o#BfN#?DHz|vJf|I9hxHSXwT!Rf07O2W%PW8CdeNbWDh7xdc@*Gru~o!qX!PoMnb-0jOj+L@8xiX8nk ztqbDio_&${$a6_Go?AZ)ODN2c(~}!Yzb_h@H`|XJ77% z&h$tRDoGrI2fMa!Jra}2TT2Wr(qvYHfuwQq{g=eTO51gB;Eh| zqBJ4?Yy9DFmAO<;=@W84uJP&?oqWt2I^`zrVtMQI~KSx%Kt8fwC00Yj>Qi(-Nua9@d{2!yec7pJJQHV7!I@2ZX~MpPap* zthBppyL$W*q56{?xCfMRDi?VJKYzB{0{dwr#po&F@Q;n1BQ23V$DGQfU#ML)vH_{i z@*TCr$VDnNA5JrO%T&yGb1-y@@KngCMk3b*zKjGG7Z>+EYsZ`cl5vKvab;G`K5Q-u i`ByIb{_kYP;!JQ8bybB*IQ-ffckQy_rM!#w5B?Wl_kYy@ diff --git a/docs/images/favicon.png b/docs/images/favicon.png deleted file mode 100644 index 03a7da5ca6c938e3bd6f7a1347bf2222513ff58e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 819 zcmV-31I+x1P)YS3N{uDGPlsBHBGs1e?C6<}<6eC~_r8)O=DAOS zZ%w1Mx_<6cMm-iv93^jsL&d09nu=D6BL=*ixTxk4DMmea>by4^h}C;TATCPYs62~# zr9|ZCA4d!5f_#E%!3tT0nCB)Uo;zAV*CbF1mQsj$r9`yyY~+A0h!#Xbg{bEyBHjHp`EN&xmRk9kSBeMy`AYjDS}9J5CD&9* z3!Dt_S*wU-j8S*}Y}`NK9mJi$;u=SVpziva!H_;c2eRQ#0Mi0#;8b8p)41y&U-S>? zKq|#Cv8)+YO^XkRs?w^zHUB*SCD*9cGsd*azumayAJBnpxMKn{Kw6bka==OjTD3a6 z)mJp${MEi~fSf``Bvk(O>gWCe9Z01(CYH>g?;p+n8~28L$0+203@t5JZ_fG$bRZk< zn21cPYPwacpB@nI8-=VuCL9zn_hM%^6bk>;Kr7|i*6HP)8k?%fL1)uHXMnT5cVKC0 zi4!M2x}d7Jfy?awoj27`u5Yva_n&Mw_YQ-+MC3~~=5h7aD$HRT$-gytw z+C%nFS>Yuxhw7v1_1V4l^8*3dY!(q~VE7P7^^IxHsWA_`!vg^;D|tlBB=7}rY1nYr zRDrt+4^xi4d(cCDfLtzzF**s{0g?g2uSH}|RUbHqg!=$%Yil$b%}L-k-~ zB;O9ZNV3^gM9c+My+g3A{vG&ARliH6oT0<*2}A3NDp!Jrf$ts1uK5jj0hsa`{{y(E zstc)<6FA%r@D&CYj`GGq0Gq%(aNlw4o#P4*1K0xYiO7B1P9A&sFu<0Gd<}eK+sW+@ x75+cKHZU(DBMEl{c7O#DnYZoa)~Lem`4MOB diff --git a/docs/images/logo-adalab.png b/docs/images/logo-adalab.png deleted file mode 100644 index af43e0d92b71a901445c9e485414234b9e1c0523..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1999 zcmZA2eLT}^9|!Q?HZ~E-tUT?c=Eb>7C1$4<$J`NfOpKa3o2M+~X|v7b>E3$M!b-x* zmWQ&IG!NB=qG{a@PH9LZr|1x|LPd%*?sdQJ*Zt~s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P)`!&;&OUCeYJPtju3~5;Idp+^&}PEYzx3M2e3>h_D`RhKe_F zE^>HxW8Y#rSB8rkyHy|i!(L5p=Pgq4TzWgEkbscmn@vQy>YmON^r7H#*1y%)UWE(>9KlB>=R6TpX$FT>%V-)vxqGFJi-7O%3eZVGj7`voqH*xzG0e}mSpI+5PhyK|S;YGKQIwMz$G+C%^GR2yHHvzswOXnKQT+BC z9>uga@^1`18^fZo;ZNBSy(XW!wt!8RLvB^6Pg%`m^`4yX#vd#39b3Usf zxq1C|6uDzTR;){C0Ph{(CH-f_@&5p6tdThY diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 8dfba1e..0000000 --- a/docs/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Tu personaje favorito de Disney - - - - - - - -
-
- Castillo Disney -
-
-
- -
-
-

Favorites

- -
    -
    -
    -

    Characters

    -
      -
      -
      -
      -
      - -
      - - - diff --git a/docs/js/main.js b/docs/js/main.js deleted file mode 100644 index 6ade523..0000000 --- a/docs/js/main.js +++ /dev/null @@ -1,6 +0,0 @@ -const n=document.querySelector(".js_searchBox"),_=document.querySelector(".js_searchBtn");document.querySelector(".js_cards");const f=document.querySelector(".js_cardsFavorites"),h=document.querySelector(".js_cardsCharacteres");document.querySelector(".js_cardsBox1");const p=document.querySelector(".js_cardsCleanBtn");let i=[],c=[];_.addEventListener("click",()=>{const e=n.value.trim().toLowerCase();e===""?l():j(e)});n.addEventListener("input",()=>{n.value.trim()===""&&l()});p.addEventListener("click",()=>{event.preventDefault(),localStorage.removeItem("favorites"),v(),y()});function u(e){const t="https://via.placeholder.com/210x295/ffffff/555555/?text=Disney";return`
    • - character image ${e.name|| -

      ${e.name||"Disney character"}

      -
    • `}function m(e){let t="";for(const r of e)t+=u(r);h.innerHTML=t,g()}function g(){const e=document.querySelectorAll(".js_cardBox");for(const t of e)t.addEventListener("click",r=>{r.preventDefault(),x(r);const s=r.currentTarget.getAttribute("data-id"),a=i.find(o=>o._id===parseInt(s));c.some(o=>o._id===a._id)||(c.push(a),d(),localStorage.setItem("favorites",JSON.stringify(c)))})}function C(){const e=document.querySelectorAll(".js_cardsEraser");if(console.log(e),e.length===0){console.error("No se encontraron elementos con la clase .js_cardsEraser");return}for(const t of e)t.addEventListener("click",r=>{console.log("Click detectado en un elemento .js_cardsEraser"),r.preventDefault();const s=r.currentTarget.getAttribute("data-id"),a=c.findIndex(o=>o._id===parseInt(s));a!==-1&&(c.splice(a,1),localStorage.setItem("favorites",JSON.stringify(c)),d())})}function d(){let e="";for(const t of c)e+=u(t);f.innerHTML=e,S(),C()}const x=e=>{e.currentTarget.classList.add("cards__favorite")};function S(){for(const t of f.children)t.classList.replace("js_cardBox","js_cardBoxFavorite");const e=document.querySelectorAll(".js_cardBoxFavorite");for(const t of e)for(const r of t.children){const s=t.getAttribute("data-id"),a=document.createElement("span"),o=document.createTextNode("✘");a.classList.add("js_cardsEraser","cards__eraser"),a.setAttribute("data-id",s),a.appendChild(o),r.appendChild(a)}}function y(){for(const e of h.children)e.classList.remove("cards__favorite")}function l(){fetch("https://api.disneyapi.dev/character?pageSize=50").then(e=>e.json()).then(e=>{i=e.data,m(i)})}function v(){const e=JSON.parse(localStorage.getItem("favorites"));Array.isArray(e)?c=e:c=[],d()}function j(e){fetch("https://api.disneyapi.dev/character?pageSize=50").then(t=>t.json()).then(t=>{const r=t.data.filter(s=>s.name.toLowerCase().includes(e));m(r)})}l();v(); -//# sourceMappingURL=main.js.map diff --git a/src/js/main.js b/src/js/main.js index f4d1bce..b2e49e0 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -16,6 +16,7 @@ let favorites = []; /* Eventos */ +//Evento botón de búsqueda que hace fetch tomando el témino que se incluya en la barra de búsqueda. searchBtn.addEventListener("click", () => { const searchTerm = searchBox.value.trim().toLowerCase(); @@ -26,12 +27,15 @@ searchBtn.addEventListener("click", () => { } }); +//Evento barra de búsqueda que hace fetch de todo el JSON si la barra está vacía. searchBox.addEventListener("input", () => { if (searchBox.value.trim() === "") { fetchAllCharacters(); } }); +/*Evento botón de borrado que elimina el onjeto del localstorage en el que almacenamos favoritos, +renderiza de nuevo el array vacío y elimina el sombreado de tarjetas characters.*/ cleanBtn.addEventListener("click", () => { event.preventDefault(); localStorage.removeItem("favorites"); @@ -45,7 +49,7 @@ cleanBtn.addEventListener("click", () => { /*Función renderiza una tarjeta */ function renderOneCharacterCard(objCharacter) { - const placeholderImage = "https://via.placeholder.com/210x295/ffffff/555555/?text=Disney"; + const placeholderImage = "https://placehold.co/210x295/ffffff/555555/?text=Disney"; return `
    • `; }; -/*Función renderiza todas las tarjetas*/ +/*Función renderiza todas las tarjetas e incorpora en cada elemento
    • el evento click */ function renderAllCharactersCards(arrayOfCharacter) { let html = ""; @@ -65,7 +69,8 @@ function renderAllCharactersCards(arrayOfCharacter) { attachClickEventsToCards(); }; -/*Añade evento click a cada
    • */ +/*Añade evento click a cada
    • y almacena el obj seleccionado en la array favorites a través del _id. +incorpora la clase que resalta la tarjeta*/ function attachClickEventsToCards() { const cardBox = document.querySelectorAll(".js_cardBox"); @@ -100,21 +105,17 @@ function attachClickEventsToCards() { function attachClickEventsToEraserCards() { const cardsEraser = document.querySelectorAll(".js_cardsEraser"); - console.log(cardsEraser); // Verifica si selecciona los elementos correctamente - - if (cardsEraser.length === 0) { - console.error("No se encontraron elementos con la clase .js_cardsEraser"); - return; - } - + /*Añade evento click a cada */ for (const eraser of cardsEraser) { eraser.addEventListener("click", (ev) => { - console.log("Click detectado en un elemento .js_cardsEraser"); // Depuración - ev.preventDefault(); + ev.preventDefault(); + + /*Coge el atributo nuevo data-id como ancla para coger el objeto del array favorites y eliminarlo del array favorites */ const idCharacter = ev.currentTarget.getAttribute("data-id"); const index = favorites.findIndex((char) => char._id === parseInt(idCharacter)); + /*Si el índice es distinto de -1, significa que el objeto se encontró en el array favorites y lo eliminamos */ if (index !== -1) { favorites.splice(index, 1); localStorage.setItem("favorites", JSON.stringify(favorites)); @@ -128,14 +129,14 @@ function attachClickEventsToEraserCards() { function renderFavoritesCards() { - +/*Con un bucle iteramos por cada objeto de favoritos y pintamos una tarjeta */ let html = ""; for(const objCharacter of favorites){ html+= renderOneCharacterCard(objCharacter); } cardsFavorites.innerHTML=html; - +//Cambiamos las clases de favoritos y aplicamos evento click de borrado a cada tarjeta. changeClassForFavorites(); attachClickEventsToEraserCards(); @@ -149,7 +150,8 @@ const handleFavourite = (ev) => { ev.currentTarget.classList.add('cards__favorite'); }; - +/*Cambia con un bucle la clase del li para que no le afecte attachClickEventsToCards e incluimos con el DOM el input que nos permite +eliminar cada tarjeta favorita por separado*/ function changeClassForFavorites() { for (const child of cardsFavorites.children) { @@ -171,12 +173,15 @@ function changeClassForFavorites() { }; +/* cambia con un bucle la clase de cada una de las tarjetas para quitar el +resaltado favorito de las tarjetas de charaters a través del DOM */ function changeClassForcharacters() { for (const child of cardsCharacteres.children) { child.classList.remove("cards__favorite"); } }; +/*Función que se ejecuta cuando se carga la página, hace fetch de todo el JSON y renderiza las tarjetas de characters */ function fetchAllCharacters(){ fetch('https://api.disneyapi.dev/character?pageSize=50'). then(response => response.json()) @@ -187,20 +192,22 @@ function fetchAllCharacters(){ }); }; - +/*Función que se ejecuta cuando se carga la página, hace get de toda la información guardada en localStorage +y renderiza las tarjetas de favorites. Si no hay nada en el localStorage, inicia de nuevo el array favorites vacío*/ function getFavoritesLocalstorage() { const savedFavorites = JSON.parse(localStorage.getItem('favorites')); - // Si savedFavorites no existe o no es un array, inicializa favorites como un array vacío if (Array.isArray(savedFavorites)) { favorites = savedFavorites; } else { - favorites = []; // Si no hay datos válidos, inicializa favorites como un array vacío + favorites = []; } renderFavoritesCards(); } +/*Función que se ejecuta cuando se hace click en un botón de búsqueda, hace fetch de los personajes que coinciden con el término de búsqueda. +Si no hay coincidencias, renderiza todas las tarjetas de characters.*/ function fetchSearchedCharacters(searchTerm) { fetch("https://api.disneyapi.dev/character?pageSize=50") .then((response) => response.json()) @@ -213,5 +220,6 @@ function fetchSearchedCharacters(searchTerm) { } +//Inicializa la página cargando las tarjetas de characters y favorites. fetchAllCharacters(); getFavoritesLocalstorage(); \ No newline at end of file