show versions of code and data
This commit is contained in:
parent
287f928f68
commit
e695930268
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>My first Chartist Tests</title>
|
<title>Fan control</title>
|
||||||
<link rel="stylesheet" href="chartist.min.css.gz">
|
<link rel="stylesheet" href="chartist.min.css.gz">
|
||||||
<style>
|
<style>
|
||||||
.ct-chart{
|
.ct-chart{
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<div class="ct-chart chart2"></div>
|
<div class="ct-chart chart2"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<h1> Log </h1>
|
<h1> Log 1.0.1 </h1>
|
||||||
<div id="log"></div>
|
<div id="log"></div>
|
||||||
</div>
|
</div>
|
||||||
<script >
|
<script >
|
||||||
@ -37,7 +37,7 @@
|
|||||||
if (this.readyState == 4 && this.status == 200) {
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
var series = JSON.parse(this.responseText);
|
var series = JSON.parse(this.responseText);
|
||||||
var data = { series: series };
|
var data = { series: series };
|
||||||
chart = new Chartist.Line(clazz, data , {high: 30 , low: -25});
|
chart = new Chartist.Line(clazz, data , {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xhttp.open("GET", url, true);
|
xhttp.open("GET", url, true);
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
|
|
||||||
|
static String FAN_VERSION = "1.0.1" ;
|
||||||
|
|
||||||
String getContentType(String filename){
|
String getContentType(String filename){
|
||||||
if(filename.indexOf(".htm") > 0) return "text/html";
|
if(filename.indexOf(".htm") > 0) return "text/html";
|
||||||
@ -98,7 +99,7 @@ void server_setup(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
|
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
|
||||||
DEBUG_OUT.println("Index.html");
|
DEBUG_OUT.println("Index.html " + FAN_VERSION);
|
||||||
request->send(LittleFS, "/index.html", "text/html;charset=utf-8");
|
request->send(LittleFS, "/index.html", "text/html;charset=utf-8");
|
||||||
});
|
});
|
||||||
server.on("/chartist.min.css.gz", HTTP_GET, [](AsyncWebServerRequest *request){
|
server.on("/chartist.min.css.gz", HTTP_GET, [](AsyncWebServerRequest *request){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user