jeecrypt / JeeUIFramework

WEB interface and config file for ESP8266 and ESP32
MIT License
94 stars 29 forks source link

#5 Bugfix/enable js auto form send #6

Open ivang7 opened 5 years ago

ivang7 commented 5 years ago

Исправление #5

chupocro commented 4 years ago

When looking the served HTML in the browser the opening <html> tag (after removing the slash) is marked as an error because of the missing doctype before the <html> tag:

<!DOCTYPE html>

But after inserting the doctype the CSS no longer works (loading failed for /js/bootstrap.min.js) because of:

AsyncWebServerResponse *response = request->beginResponse_P(200, F("text/plain"), bootstrap_css, bootstrap_css_len);

The MIME type has to be "text/css", then everything works even with the doctype.

BTW, what version of Bootstrap is used? It is 50% smaller than the current version. Is that some old version or was it stripped down manually?