From e0ea8ee45545b51a1423030f1d45b5ed58c51ed5 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Wed, 1 Feb 2023 10:33:54 +0100 Subject: [PATCH] WORK --- tools/percentage-calc/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/percentage-calc/index.html b/tools/percentage-calc/index.html index 5f7d713..23a79c0 100644 --- a/tools/percentage-calc/index.html +++ b/tools/percentage-calc/index.html @@ -2,13 +2,14 @@ function percentage(partialValue, totalValue) { return (100 * partialValue) / totalValue; } - + function docalc(){ const num2 = document.getElementById("input2"); const num1 = document.getElementById("input1"); + var calcu = percentage(num1, num2); //percentage(num1, num2) - document.getElementById("output").value = percentage(num1, num2); + document.getElementById("output").value = calcu }