Code Monkey home page Code Monkey logo

recipeproportions's Introduction

#Recipe proportions calculator

An online calculator for comparing different recipes for a single dish.

This was inspired when I was looking for a chutney recipe: there seemed to be a variety of recipes that used a wide range of different proportions. I wanted to compare these, but it was a bit of a manual job so I decided to automate it.

For each recipe, a set of ingredients is input; the amount for each of the ingredients is normalised (so that all different measurements, including imperial, cups (volume) and eggs can be compared against metric measurements), and a bar produced using a canvas element so that the proportions can be seen. This can be repeated for each different recipe and the proportions compared.

Currently the measurements are all assumed to be grammes.

##Still to do

  • Produce sectioned canvas bar (colour coded)
  • Create normalisation formulae and function
  • Write the list of ingredients on the page as they're entered
  • Produce further results divs on the page using Javascript
  • Make the bar responsive - read the length when it's less than 600px

##Future ideas

  • Produce fallback for older browsers, maybe using ASCII art
  • Save results in a database so they can be returned to
  • All ingredients listed and displayed in alphabetical order

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.