noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 221/323: Calc : hightlight result


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 221/323: Calc : hightlight result
Date: Wed, 14 Mar 2018 17:38:53 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4621382a6d7ae95e00464f0e889b3d632969141f
Author: Dany De Bontridder <address@hidden>
Date:   Mon Feb 19 09:20:53 2018 +0100

    Calc : hightlight result
---
 html/js/calc.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/html/js/calc.js b/html/js/calc.js
index fe71536..ae5dac2 100644
--- a/html/js/calc.js
+++ b/html/js/calc.js
@@ -27,6 +27,11 @@
  */
 var p_history="";
 var p_variable="";
+/**
+ * Compute and update the box 
+ * @see show_calc()
+ * @returns nothing
+ */
 // add input
 function cal()
 {
@@ -59,7 +64,7 @@ function cal()
         return false;
     }
     p_history=p_variable+"="+result.toString()+'<br>'+p_history;
-    var str_sub="Total :"+p_variable+" = "+result.toString();
+    var str_sub="Total :"+p_variable+" = "+'<b>'+result.toString()+'</b>';
     this.document.getElementById("sub_total").innerHTML=str_sub;
     this.document.getElementById("listing").innerHTML=p_history;
     this.document.getElementById('inp').value=result;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]