|
|
|
@ -32,11 +32,11 @@ fetch('https://rawcdn.githack.com/akabab/superhero-api/0.2.0/api/all.json')
|
|
|
|
|
.then(loadData) // .then will call the function with the JSON value |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Display |
|
|
|
|
|
|
|
|
|
Not every field should be presented in a `<table>` element, |
|
|
|
|
the necessary data will be: |
|
|
|
|
|
|
|
|
|
- Icon (`.images.xs`, should be displayed as images and not as a string) |
|
|
|
|
- Name (`.name`) |
|
|
|
|
- Full Name (`.biography.fullName`) |
|
|
|
@ -60,11 +60,11 @@ It must be possible to filter information by searching the name as a string
|
|
|
|
|
- The search should be interactive, in other words, the results should be |
|
|
|
|
displaying as you write, not needing a button for you to click. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Sort |
|
|
|
|
|
|
|
|
|
It must be possible to sort by any columns of the table |
|
|
|
|
*(either alphabetically or numerically).* |
|
|
|
|
|
|
|
|
|
- Initially all rows should be sorted by the column `name` by `ascending` order |
|
|
|
|
- First click will order the column by `ascending` value |
|
|
|
|
- Consecutive clicks will toggle between `ascending` and `descending` order |
|
|
|
@ -76,7 +76,6 @@ It must be possible to sort by any columns of the table
|
|
|
|
|
> As you know, when you are against heroes, **speed** is critical, every operations on |
|
|
|
|
> the database should be very fast and not slow down the browser |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Optional |
|
|
|
|
|
|
|
|
|
Any additional features will be critical to your success, everything count: |
|
|
|
|