{"id":23346715,"url":"https://github.com/dak79/odin-library","last_synced_at":"2026-04-14T19:32:06.223Z","repository":{"id":163126365,"uuid":"530816873","full_name":"dak79/odin-library","owner":"dak79","description":"Object constructors, prototypical inheritance, JavaScript classes ","archived":false,"fork":false,"pushed_at":"2023-05-26T13:27:30.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T21:30:48.327Z","etag":null,"topics":["css","git","html","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dak79.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-30T20:20:04.000Z","updated_at":"2023-04-11T15:53:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f710c8cc-a301-49e4-83ad-47c164cd9202","html_url":"https://github.com/dak79/odin-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dak79/odin-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dak79%2Fodin-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dak79%2Fodin-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dak79%2Fodin-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dak79%2Fodin-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dak79","download_url":"https://codeload.github.com/dak79/odin-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dak79%2Fodin-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","git","html","javascript"],"created_at":"2024-12-21T07:14:44.836Z","updated_at":"2026-04-14T19:32:06.206Z","avatar_url":"https://github.com/dak79.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library\n\n## Live Preview\n\n[Library](https://dak79.github.io/odin-library/)\n\n## Description\n\nThis project is part of [The Odin Project - Full Stack JavaScript Path](https://www.theodinproject.com/lessons/node-path-javascript-library).\nThis project had two stages: in the first stage Library app was using object and object constructors. In the second stage the code was refactored with `class` syntax. The main goal is to organize JavaScript code in Objects (later in class) and get some experience with prototype inheritance end OOP in JavaScript.\n\n## Technologies\n\n-   HTML\n-   CSS\n-   JavaScript\n-   Git\n\n## Assignment\n\n-   First stage:\n\n    -   Set up your project with skeleton HTML/CSS and JS files.\n    -   All of your book objects are going to be stored in a simple array, so add a function to the script (not the constructor) that can take user’s input and store the new book objects into an array.\n    -   Write a function that loops through the array and displays each book on the page.\n    -   Add a “NEW BOOK” button that brings up a form allowing users to input the details for the new book: author, title, number of pages, whether it’s been read and anything else you might want.\n    -   Add a button on each book’s display to remove the book from the library.\n    -   You will need to associate your DOM elements with the actual book objects in some way. One easy solution is giving them a data-attribute that corresponds to the index of the library array.\n    -   Add a button on each book’s display to change its read status.\n    -   To facilitate this you will want to create the function that toggles a book’s read status on your Book prototype instance.\n    -   NOTE: You’re not required to add any type of storage right now. You will have the option to come back to this project later on in the course.\n\n-   Second stage:\n    -   Go back to your “Library” example and refactor it to use class instead of plain constructors.\n    -   Don’t forget to use the git workflow (branches) you learned in this foundations lesson to work on a new feature. You should get used to working like this!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdak79%2Fodin-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdak79%2Fodin-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdak79%2Fodin-library/lists"}