diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html.c | 11 | ||||
-rw-r--r-- | src/html.h | 4 |
2 files changed, 15 insertions, 0 deletions
@@ -556,6 +556,17 @@ mq_html_input_number_i(const gchar *name, const gchar *label, } gchar * +mq_html_input_number_d(const gchar *name, const gchar *label, + gdouble min, gdouble step, gdouble max, gdouble value) +{ + return g_strdup_printf("<label for=\"%s\"><span>%s</span>" + "<input type=\"number\" name=\"%s\" id=\"%s\"" + " min=\"%f\" step=\"%f\" max=\"%f\" value=\"%f\">" + "</label>\n", + name, label, name, name, min, step, max, value); +} + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked) { return g_strdup_printf("<label for=\"%s\"><span>%s</span>" @@ -62,6 +62,10 @@ mq_html_input_number_i(const gchar *name, const gchar *label, gint min, gint step, gint max, gint value); gchar * +mq_html_input_number_d(const gchar *name, const gchar *label, + gdouble min, gdouble step, gdouble max, gdouble value); + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked); gchar * |