mirror of https://github.com/arendst/Tasmota.git
[Shutter] Fix html table syntax (#20519)
* [Shutter] Fix html table syntax The html code for the slider was placed in a `<table>` but not fenced with `<tr>` / `<td>` tags. So the browser placed it "randomly" outside of the table. * [Shutter] revert date
This commit is contained in:
parent
eac5c69720
commit
0ac559bf7f
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
xdrv_27_Shutter.ino - Shutter/Blind support for Tasmota
|
||||
|
||||
Copyright (C) 2023 Stefan Bode
|
||||
Copyright (C) 2023 Stefan Bode
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -54,8 +54,10 @@ int32_t current_real_position = 0;
|
|||
int32_t current_pwm_velocity = 0;
|
||||
|
||||
const char HTTP_MSG_SLIDER_SHUTTER[] PROGMEM =
|
||||
"<tr><td colspan=2>"
|
||||
"<div><span class='p'>%s</span><span class='q'>%s</span></div>"
|
||||
"<div><input type='range' min='0' max='100' value='%d' onchange='lc(\"u\",%d,value)'></div>";
|
||||
"<div><input type='range' min='0' max='100' value='%d' onchange='lc(\"u\",%d,value)'></div>"
|
||||
"{e}";
|
||||
|
||||
const uint8_t MAX_MODES = 8;
|
||||
enum Shutterposition_mode {SHT_UNDEF, SHT_TIME, SHT_TIME_UP_DOWN, SHT_TIME_GARAGE, SHT_COUNTER, SHT_PWM_VALUE, SHT_PWM_TIME,SHT_AUTOCONFIG};
|
||||
|
|
Loading…
Reference in New Issue