Giter Site home page Giter Site logo

library-project's Introduction

Library-Project

A tracker that allows books to be stored in a grid format and marked as read, or deleted from the list. Supports book cover images if an URL is added in the add book dialog form pop up.


alt_text

alt_text


Concepts learned from this project

-Adding a form in a div that is not visible when the page first loads but can toggle visibility later on.

-Adding e.preventDefault() so that values can be grabbed from the form and stored in variables ovverriding default form behavior.

-Using a constructor so that variables from the form can be saved in a new object created from that constructor.

-Using document.createElement and the .classList.add or .classList.remove to create/remove HTML elements such as divs, buttons, p tags, and add classes to them.

-Using document.appendChild to add a created element to the HTML DOM.

-Using relative positioning, event listeners to trigger opacity, and z-index so that the book title, pages, and author and buttons are only displayed when you hover over the book card's thumbnail.

-Learned how to save an array of objects to local storage by stringifying an array of objects into a JSON file. Then learned how to retrieve that JSON file and parse it back into an array, and then back into an array of objects by looping over the array and calling the object constructor. This is so that users' books are loaded when returning to the website.

-Added a button to clear all local storage, made delete buttons on cards also delete from local storage and card div itself with parentNode.removeChild, and added a button to load a sample library of books.


Additional Screenshots


alt_text

alt_text

alt_text

library-project's People

Contributors

mike11199 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.