From c4571241a4731b92492e14a89a7334f613d98654 Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 3 Feb 2020 18:33:07 +0100 Subject: Remove unused file --- res.js | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 res.js diff --git a/res.js b/res.js deleted file mode 100644 index 25c52a9..0000000 --- a/res.js +++ /dev/null @@ -1,4 +0,0 @@ -var itemEntries=nodeListToArray(document.querySelectorAll(".g-Recipe ul > li")).map(function(a){return{tag:"li",node:a}}),h1=document.querySelector(".g-Recipe h1");null!==h1&&itemEntries.push({tag:"h1",node:h1});var inputs=setInputs(itemEntries);inputs.map(function(a){a.node.oninput=function(c){if(null!==c.target&&(c=parseNumber(c.target.value),void 0!==c&&""===c.before&&""===c.after)){var b=parseFloat(c.number)/a.number;inputs.map(function(a){a.node.value=(a.number*b).toString()})}}}); -function setInputs(a){for(var c=[],b=0;b=a}function nodeListToArray(a){var c=[];a.forEach(function(a){c.push(a)});return c}; -- cgit v1.2.3