Bien commencé le projet météo pour la prévision de la pluie avec un NoceMCU et des LED's RGB

This commit is contained in:
Christian Zufferey
2019-03-04 09:33:40 +01:00
parent 162ae7bc45
commit 1d75dfa3d6
17 changed files with 305 additions and 5 deletions

36
WebIDE/web_ide3.html Normal file
View File

@@ -0,0 +1,36 @@
if vars=="edit" then
conn:send("
<script>function tag(c){document.getElementsByTagName('w')[0].innerHTML=c};\n
")
conn:send("
var x=new XMLHttpRequest()\nx.onreadystatechange=function(){if(x.readyState==4) document.getElementsByName('t')[0].value = x.responseText; };\nx.open('GET',location.pathname,true)\nx.send()</script>
")
conn:send("
<a href='/'>Back to file list</a><br><br><textarea name=t cols=79 rows=17></textarea></br>
")
conn:send("
<button onclick=\"tag('Saving');x.open('POST',location.pathname,true);\nx.onreadystatechange=function(){if(x.readyState==4) tag(x.responseText);};\nx.send(new Blob([document.getElementsByName('t')[0].value],{type:'text/plain'}));\">Save</button><a href='?run'>run</a><w></w>
")
end
<script>function tag(c){document.getElementsByTagName('w')[0].innerHTML=c};\n
var x=new XMLHttpRequest()\nx.onreadystatechange=function(){if(x.readyState==4) document.getElementsByName('t')[0].value = x.responseText; };\nx.open('GET',location.pathname,true)\nx.send()</script>
<a href='/'>Back to file list</a><br><br><textarea name=t cols=79 rows=17></textarea></br>
<button onclick=\"tag('Saving');x.open('POST',location.pathname,true);\nx.onreadystatechange=function(){if(x.readyState==4) tag(x.responseText);};\nx.send(new Blob([document.getElementsByName('t')[0].value],{type:'text/plain'}));\">Save</button><a href='?run'>run</a><w></w>