Giter Site home page Giter Site logo

karam084 / awesome-books-es6 Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.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

Hi there, πŸ‘‹ I'm Karam Fouad,

  • πŸ”­ I’m currently a full-time student at Microverse Online School.
  • 🌱 I’m currently learning Full-Stack Web Development (Ruby on Rails, JavaScript, and React) and Peer Programming.
  • πŸ‘― I’m looking to collaborate on JavaScript, React, and Ruby on Rails Projects.
  • πŸ€” I’m passionate about programming.
  • πŸ’¬ Ask me about anything I am happy about that.
  • πŸ“« Let's connect on LinkedIn and on Twitter
  • πŸ˜„ Pronouns: I am a He/Him
  • ⚑ Fact about me: I wrote my first line of code in 2017 and I am working towards getting my first dev job for hard work pays!

My GitHub Stats

My GitHub Language Stats

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.