svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2857 a5c781b2f8f9
parent 2856 1b529ba018ad
child 2858 39c8d6079f0f
--- a/svghmi/gen_index_xhtml.ysl2	Wed Mar 04 20:02:15 2020 +0100
+++ b/svghmi/gen_index_xhtml.ysl2	Thu Mar 05 10:23:03 2020 +0100
@@ -720,8 +720,12 @@
         |     origin: undefined,
         |     range: undefined,
         |     init: function() {
-        |         let min = this.min_elt ? Number(this.min_elt.textContent) : 0;
-        |         let max = this.max_elt ? Number(this.max_elt.textContent) : 100;
+        |         let min = this.min_elt ?
+        |                     Number(this.min_elt.textContent) :
+        |                     this.args.length >= 1 ? this.args[0] : 0;
+        |         let max = this.max_elt ?
+        |                     Number(this.max_elt.textContent) :
+        |                     this.args.length >= 2 ? this.args[1] : 100;
         |         this.range = [min, max, this.range_elt.getTotalLength()]
         |         this.origin = this.needle_elt.getPointAtLength(0);
         |     },