You are browsing as a guest. Sign up (or log in) to start making projects!

32m 36s logged

I am working on my HTML project. I want to make it more interesting. The old version of my project had a problem. It was not easy to make it bigger. I had written a lot of code for each book in my library.html file which made the code very long and hard to work with. Today I removed all the code that I had written for each book. I put all my books into a small file called books.json. Now my website uses JavaScript to get the information from this file. It makes the book cards on its own. This way the information and the way it looks are separate so adding books is easy. I just need to add some new information to the file.

I want to note something for developers: when you try to get a file from your own computer the browser will stop you because of security rules. So I started using a tool in my code editor called Live Server to help me work on my project on my own computer. This tool makes sure that my website can get the information, from the file without any problems.

1
112

Comments 0

No comments yet. Be the first!