Git Product home page Git Product logo

karam084 / awesome-books-es6 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 401 KB

This is web app that allows users to enter information about their favorite books. Data displayed on the UI depends on the local storage. The data entered by the user are stored in local storage and can be removed from localStorage. This is a crud application and it is build with JavaScript, HTML and CSS.

Home Page: https://karam084.github.io/awesome-books-es6/

JavaScript 95.35% HTML 2.57% CSS 2.07%
css html5 javascript luxon modules

awesome-books-es6's Introduction

Awesome Books

The app that adds books title and authors to a list, this project content of add and remove list of books and author. The project developed by javascript to do more dynamic and more active.

Built With

  • CSS
  • HTML
  • Javascript
  • Git
  • ECMAScript

To get a local copy up and running follow these simple example steps.

Setup

  • Download the code from the repo.

Install

  • Open index.html with live-server

Authors

πŸ‘€ Karam

πŸ‘€ Henry

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

πŸ“ License

This project is MIT licensed.

awesome-books-es6's People

Contributors

hsztan avatar karam084 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

awesome-books-es6's Issues

PP CODE REVIEW 24/04

Hi @karam084 πŸ‘‹

Great work so far but there are spaces to improve

  • You did a great job on the LUXOR time, it is running
  • You may want to add your name to the copyright
  • the .vscode you can add to the .gitignore file
  • You might want to add an image of your application to the README.md

export default [];

Does this have a function?

In the Books module, you declared your methods using a #…the s could be led to syntax error and misunderstanding of your code. I think you can do without them.

#preserveBookData() {

Inside index.html kindly remove lines 73-80 in the index.html

    <script src="./modules/data.js" type="module"></script>
    <script src="./modules/book.js" type="module"></script>
    <script src="./modules/addBooksListener.js" type="module"></script>
    <script src="./modules/addNavListeners.js" type="module"></script>
    <script src="./modules/checkAndDisplayList.js" type="module"></script>
    <script src="./modules/displayAllBooksListener.js" type="module"></script>
    <script src="./modules/domElements.js" type="module"></script>
    <script src="./luxon.js"></script>
    <script src="./index.js" type="module"></script>

export default () => {
window.addEventListener('DOMContentLoaded', () => {
if (localStorage.getItem('books')) {
new Book().displayAllBooksValues();
const remBookBtns = document.querySelectorAll('.btn-remove');
remBookBtns.forEach((btn, i) => {
btn.dataset.index = i;
btn.addEventListener('click', (e) => {
new Book().deleteBookValues(e.target);
});
});

Listening for Dom Loading could lead to overload in cases you have multiple listeners for your document. You can use Window.onLoad() to only run only when the DOM loads

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.