Code Monkey home page Code Monkey logo

ui-shopping-cart's People

Contributors

jihan2032 avatar

Watchers

James Cloos avatar

ui-shopping-cart's Issues

Blocks are using tables

We didn't discuss how to do it and I said don't do it. Keep that issue opened so that in the futuer we use divs instead :)

The JavaScript Part

I am impressed. Let me tell you what I liked

  • Appending the $ to the beginning of the variables that contain jQuery object
  • Caching the elements by using variables
  • Properly walking the DOM

My only advice is, when you pass arguments to a funtion make sure you use those arguments ... Otherwise just ignore them. Example:

$(document).on('click', '.sub-btn', function(ev) {

You are passing the event as ev and you are not using it inside the function. If you're not going to use it, omit it.

Using a common title for the footer links

Congratulations. So far you are the best student to use document outline. I would suggest convert the footer h1s to h2 and use a visually hidden h1 that have the text Sitemap inside it :)

Proper file naming

This assignment is going to grow. What you are building here is the homepage. It should be renamed to index.html :)

Move JavaScript to the bottom

I love what you did with this:

    <script>
      window.jQuery ||
      document.write('<script src="scripts/vendor/jquery.min.js"><\/script>')
    </script>
    <script src="scripts/main.js"></script>

But please move it to the bottom of the page :D It's a good practice to move JavaScript to the bottom

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.