From 14433a928f7fdf9be3193812cbbed1a5ae49ecd7 Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 8 May 2017 20:44:45 +0200 Subject: Let the user upgrade an ingredient quantity and adapt other quantities --- js/Dom.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 js/Dom.js (limited to 'js/Dom.js') diff --git a/js/Dom.js b/js/Dom.js new file mode 100644 index 0000000..6835c1f --- /dev/null +++ b/js/Dom.js @@ -0,0 +1,12 @@ +"use strict"; + +exports.onInput = function (elt) { + return function (f) { + return function () { + elt.oninput = function(e) { + f(e.target.value)() + } + return {}; + }; + }; +}; -- cgit v1.2.3