# HG changeset patch # User HIROSE Yuuji # Date 1665921422 -32373 # Node ID ebe2b7a66b9d9a650d183a32949aaae45b3da6ba # Parent 722004cc4375f5fbc10729540486b58f6245263b Add input type="range" completion diff -r 722004cc4375 -r ebe2b7a66b9d yahtml.el --- a/yahtml.el Sat Oct 08 10:21:51 2022 +0859 +++ b/yahtml.el Sun Oct 16 20:56:35 2022 +0859 @@ -1481,7 +1481,9 @@ (defvar yahtml-input-types '(("text") ("password") ("checkbox") ("radio") ("submit") - ("reset") ("image") ("hidden") ("file"))) + ("reset") ("image") ("hidden") ("file") + ("date") ("time") ("datetime-local") ("week") ("number") ("tel") + ("range") ("color"))) (defun yahtml:input () "Add-in function for `input' form" @@ -1502,6 +1504,13 @@ (yahtml-make-optional-argument "value" value) (yahtml-make-optional-argument "id" id) (yahtml-make-optional-argument "size" size) + (if (string-match "range" type) + (concat (yahtml-make-optional-argument + "min" (YaTeX-read-string-or-skip "min: ")) + (yahtml-make-optional-argument + "max" (YaTeX-read-string-or-skip "max: ")) + (yahtml-make-optional-argument + "step" (YaTeX-read-string-or-skip "step: ")))) (yahtml-make-optional-argument "maxlength" maxlength)))) (defun yahtml:datalist ()