Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery User Input Calculator or A javascript calculator online (allow non-integer inputs) #194

Open
brianek opened this issue Feb 25, 2016 · 0 comments

Comments

@brianek
Copy link
Contributor

brianek commented Feb 25, 2016

The law we are working with is complicated but it is basically an equation. Can you create
Create a calculator that accepts user input (non-integers) using jQuery event listeners and JavaScript functions, if/else or switch statements, and jQuery val methods. This basically allows someone to input parts of the equation (parts of the law) and get a result.

Here are great resources:

  1. http://thecodeplayer.com/walkthrough/javascript-css3-calculator
  2. http://stackoverflow.com/questions/13627701/how-to-calculate-two-input-form-fields-and-put-the-value-in-another-using-js-and
  3. http://thecodeplayer.com/walkthrough/javascript-css3-calculator
  4. http://www.jqueryscript.net/blog/10-Newest-Free-jQuery-Plugins-For-This-Week-32-2015.html

Here is are some example equations:

  1. A Non-conviction+ Misdemeanor+at leas 2 years off probation+5 years since any new conviction for a misdemeanor + 10 years are more since being convicted of felony+ no pending case in any jurisdiction= Eligible as long as the client was not given a deferred sentencing agreement & has a misdemeanor or a felony conviction.
  2. A conviction (C) + Conviction was a misdemeanor (M)+ it's been at least 8 years since finishing probation +no subsequent conviction/it was my last conviction + no pending court case + =Eligible for sealing if there are no other felony convictions or ineligible misdemeanors in another jurisdiction.
  3. non-conviction+ felony +off probation for 4 years or 3 year+ haven't committed a misdemeanor in the last 5 years+ 10 years since committing a felony (clock starts after probation ends) +no pending case in any jurisdiction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant