-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rick and Morty filter page. #40
base: master
Are you sure you want to change the base?
Conversation
…ow info into javascript to html and an eventlistener to use a button that show another page for choose seasons
Pleaseenter the commit message for your changes. Lines starting
werge branch 'develop' of https://github.com/Dianax69/CDMX009-Data-Lovers into develop
export const example = () => { | ||
return 'example'; | ||
}; | ||
export const sum = (a, b) => a + b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Para que utilizas esta función?
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<link rel="stylesheet" href="style.css" /> | ||
<link rel="stylesheet" href="style.css"/> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bubblegum+Sans"> | ||
</head> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hay que ser consistentes con los espacios.
</header> | ||
<div> | ||
<button class="button_characters" id="button-random-char">Personajes Aleatorios</button> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
<div id="container-cards"></div> | ||
</section> | ||
<!-- Mobile menu --> | ||
<div id="mobile-menu" style="display: none;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El comentario no es necesario ya que la clase es suficientemente descriptiva.
/* | ||
function to generate a filter object with params | ||
Prams: (Original object, key to filter, value to match with key) | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recuerda borrar el código que no se utiliza y los console.log
} | ||
}); | ||
// Filter for Gender | ||
document.querySelector('#buttonGroupGender').addEventListener('click', (e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter by gender*
} | ||
}); | ||
// Filter for Status | ||
const filterAlive = objectRMData.filter((item) => item.status === 'Alive'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
buttonAlive.addEventListener('click', () => { | ||
makeCard(filterAlive); | ||
}); | ||
const filterDead = objectRMData.filter((item) => item.status === 'Dead'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Procura que los espacios sean consistentes.
} | ||
#wrapper_data { | ||
margin-top: auto; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Felicidades por el uso de media queries!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy bue trabajo! Muchas felicidades!
Data Lovers sobre Rick and Morty, "Wubba Lubba Dub Dub" sirve para filtrar y mostrar información sobre los personajes de las tres temporadas de la serie.