void foo() {}
const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<style>
html {
font-family: Arial;
display: inline-block;
margin: 0px auto;
text-align: center;
}
h2 { font-size: 3.0rem; }
p { font-size: 3.0rem; }
.units { font-size: 1.2rem; }
.ds-labels{
font-size: 1.5rem;
vertical-align:middle;
padding-bottom: 15px;
}
</style>
</head>
<body>
<h2>ESP DS18B20 Server</h2>
<p>
<i class="fas fa-thermometer-half" style="color:#059e8a;"></i>
<span class="ds-labels">Temperature Celsius</span>
<span id="temperaturec">%TEMPERATUREC%</span>
<sup class="units">°C</sup>
</p>
<p>
<h3> Target Temperature </h3>
<i class="fas fa-thermometer-half" style="color:#059e8a;"></i>
<span class="ds-labels"></span>
<span id="TargetTemp">%TARGETTEMPERATURE%</span>
<sup class="units">°C</sup>
<button class = "addingButton" onclick = addToInt()"> + </button>
<button class = "subtractingButton" onclick = subFromInt()"> + </button>
</p>
</body>
<script>
setInterval(function ( ) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("temperaturec").innerHTML = this.responseText;
}
};
xhttp.open("GET", "/temperaturec", true);
xhttp.send();
}, 10000) ;
setInterval(function ( ) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("TargetTemp").innerHTML = this.responseText;
}
};
xhttp.open("GET", "/TargetTemp", true);
xhttp.send();
}, 10000) ;
function addToInt(){
var xhr = new XMLHttpRequest();
xhr.open("GET", "/add", true);
xhr.send();
}
function subFromInt(){
var xhr = new XMLHttpRequest();
xhr.open("GET", "/subtract", true);
xhr.send();
}
</script>
</html>)rawliteral";
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}