Giter VIP home page Giter VIP logo

bootstrapmathdrills's Introduction

bootstrapMathDrills

Learning bootstrap and jQuery

Challenge

  1. Have the four tabs work
  2. Only fill the Addition tab with content
  3. Generate a random addition problem with whole numbers between 0 and 100.
  4. Offer three possible answers as buttons
  5. When the user clicks on an answer button, display "Try again" or "Correct"
  6. When the user clicks "New Addition Problem", make a new problem

Notes about Matt's Quick solution

  1. Line counts (made by the wc command line utility)
  97 index.html
   7 styles.css
 104 total
  1. 45 lines of javascript in four functions. I did not write shuffle, I got it from here: http://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array Shuffle is 16 lines long. The functions I did write are:
    1. newAddProblem -- Generates random numbers and displays
    2. grade -- compares the answer with the number on the button and changes the text on the addFeedback paragraph
    3. assign -- Displays the value on a button and connects grade to the click

Future Stuff

  1. We'll keep score!
  2. We'll use local storage to persist the score
  3. We'll use github pages to serve the app
  4. We'll see if it looks good on cell phones

example part one solution

bootstrapmathdrills's People

Contributors

payne avatar

Watchers

James Cloos avatar  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.