yatex

changeset 598:ebe2b7a66b9d dev

Add input type="range" completion
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 16 Oct 2022 20:56:35 +0859
parents 722004cc4375
children e73e41509124
files yahtml.el
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/yahtml.el	Sat Oct 08 10:21:51 2022 +0859
     1.2 +++ b/yahtml.el	Sun Oct 16 20:56:35 2022 +0859
     1.3 @@ -1481,7 +1481,9 @@
     1.4  
     1.5  (defvar yahtml-input-types
     1.6    '(("text") ("password") ("checkbox") ("radio") ("submit")
     1.7 -    ("reset") ("image") ("hidden") ("file")))
     1.8 +    ("reset") ("image") ("hidden") ("file")
     1.9 +    ("date") ("time") ("datetime-local") ("week") ("number") ("tel")
    1.10 +    ("range") ("color")))
    1.11  
    1.12  (defun yahtml:input ()
    1.13    "Add-in function for `input' form"
    1.14 @@ -1502,6 +1504,13 @@
    1.15       (yahtml-make-optional-argument "value" value)
    1.16       (yahtml-make-optional-argument "id" id)
    1.17       (yahtml-make-optional-argument "size" size)
    1.18 +     (if (string-match "range" type)
    1.19 +	 (concat (yahtml-make-optional-argument
    1.20 +		  "min" (YaTeX-read-string-or-skip "min: "))
    1.21 +		 (yahtml-make-optional-argument
    1.22 +		  "max" (YaTeX-read-string-or-skip "max: "))
    1.23 +		 (yahtml-make-optional-argument
    1.24 +		  "step" (YaTeX-read-string-or-skip "step: "))))
    1.25       (yahtml-make-optional-argument "maxlength" maxlength))))
    1.26  
    1.27  (defun yahtml:datalist ()