MastersAcademy / frontend-course-2021

Репозиторій з курсу «Advanced Front-end» проекту Masters Academy
MIT License
5 stars 29 forks source link

Homework 3 - Asynchronous JS #99

Open NickCashFlow opened 3 years ago

NickCashFlow commented 3 years ago

Homework 3 - Asynchronous JS

Deadline

Task

  1. Get the latest updates from Academy's repo by instruction;

  2. To your homework folder add a folder named 3-async

  3. Add there the file index.hml. So you should have the following structure:

homeworks/elon.musk_spacex2021/3-async/index.html
  1. Make a simple app like a blog with filtering and sorting:
    • Before sending a request for posts, add a timeout of 3 seconds
    • When opening the page, show the loading and hide it after downloading the posts
    • Render a list of posts according to the attached layout
    • Add sorting and title filter to posts that have been rendered.
    • Sorting has 3 options: a. Initial version (without sorting) b. Sort from A to Z c. Sort from Z to A
    • In the filter field when entering text, only those posts are displayed whose titles match the text (non-case-sensitive match) For example: the text "ed T" will leave posts with the titles "red text", "rED T"
    • Sorting and filtering should work in combination, ie when displaying search results, the selected sorting should be applied to them.

The task with an asterisk (optional):

Add a Delete icon to each post you click on

Where to send a request to get posts: https://jsonplaceholder.typicode.com/posts You can learn how to work with the address here: https://jsonplaceholder.typicode.com/ Use this design: image