config.html (2403B)
1 "<!DOCTYPE html>\r\n" 2 "<html lang=\"de\">\r\n" 3 " <head>\r\n" 4 " <meta charset=\"utf-8\">\r\n" 5 " <title>%s (Configuration)</title>\r\n" 6 " <style>\r\n" 7 "button{width:10em;}\r\n" 8 "@media only screen and (max-device-width: 1024px){\r\n" 9 " html{font-size : 300%%; line-height: 100%%;}\r\n" 10 " button{font-size : 200%%; width:10em;}\r\n" 11 " input[type=text] {\r\n" 12 " font-size: 150%%;\r\n" 13 " }\r\n" 14 " input[type=password] {\r\n" 15 " font-size: 150%%;\r\n" 16 " }\r\n" 17 " input[type=radio] {\r\n" 18 " width: 5em;\r\n" 19 " height: 5ex;\r\n" 20 " }\r\n" 21 "}\r\n" 22 " </style>\r\n" 23 " </head>\r\n" 24 " <body>\r\n" 25 " <h1>%s (Configuration)</h1>\r\n" 26 " <form action=\"/config.html\" method=\"POST\"> \r\n" 27 " Name:<br />\r\n" 28 " <input type=\"text\" name=\"app_name\" value=\"%s\"></input><br /><br />\r\n" 29 " ESSID:<br />\r\n" 30 " <input type=\"text\" name=\"essid\" value=\"%s\"></input><br /><br />\r\n" 31 " Password (Min. 8 Characters!):<br />\r\n" 32 " <input type=\"password\" name=\"password\" value=\"%s\"></input><br /><br />\r\n" 33 " <input type=\"radio\" name=\"ap\" value=\"yes\" %s>Run Access Point</input><br /><br />\r\n" 34 " <input type=\"radio\" name=\"ap\" value=\"no\" %s>Join Existing Network</input><br /><br />\r\n" 35 " LED Matrix Width:<br /> <input type=\"text\" name=\"led_strip_w\" value=\"%d\"></input><br /><br />\r\n" 36 " LED Matrix Height:<br /> <input type=\"text\" name=\"led_strip_h\" value=\"%d\"></input><br /><br />\r\n" 37 " <input type=\"radio\" name=\"snake\" value=\"yes\" %s>Snake Wiring</input><br /><br />\r\n" 38 " <input type=\"radio\" name=\"snake\" value=\"no\" %s>Linear Wiring</input><br /><br />\r\n" 39 " <input type=\"radio\" name=\"wrap_around\" value=\"yes\" %s>\r\n" 40 " Circular Wiring</input><br /><br />\r\n" 41 " <input type=\"radio\" name=\"wrap_around\" value=\"no\" %s>\r\n" 42 " Non-Circual Wiring</input><br /><br />\r\n" 43 " Number of Worms:<br /> <input type=\"text\" name=\"number_of_worms\" value=\"%d\"></input><br /><br />\r\n" 44 " Max. Brightness:<br /> <input type=\"text\" name=\"max_brightness\" value=\"%d\"></input><br /><br />\r\n" 45 " <button type=\"submit\">Save & Reset!</button><br /><br />\r\n" 46 " </form>\r\n" 47 " \r\n" 48 " \r\n" 49 " \r\n" 50 " \r\n" 51 "<p><a href=\"/\"</a>LED Control</a></p>\r\n" 52 " </body>\r\n" 53 "</html>\r\n";