瀏覽代碼

add color and min max

Thomas Buck 5 年之前
父節點
當前提交
71840bdac4
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      index.html

+ 4
- 0
index.html 查看文件

@@ -15,6 +15,8 @@
15 15
         <script type="text/javascript">
16 16
             var colorFromIndex = function(index) {
17 17
                 var colors = [
18
+                    '129, 38, 204',
19
+                    '48, 181, 36',
18 20
                     '255, 99, 132',
19 21
                     '54, 162, 235',
20 22
                     '255, 206, 86',
@@ -136,6 +138,8 @@
136 138
                     weight_append.setAttribute('type', 'number');
137 139
                     weight_append.setAttribute('name', 'weight');
138 140
                     weight_append.setAttribute('step', '0.1');
141
+                    weight_append.min = 42.0;
142
+                    weight_append.max = 999.9;
139 143
                     weight_append.setAttribute('placeholder', 'Weight');
140 144
                     weight_append.required = true;
141 145
                     addToForm(form_append, weight_append, 'Weight:');

Loading…
取消
儲存