Add [12_m1284p_WIZNET_HTTPServer_SDCARD_pages] prj

This commit is contained in:
maxxir_w
2019-01-18 14:35:51 +04:00
parent 4c8449a175
commit aa2ce7afd2
50 changed files with 17471 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
function AinCallback(o)
{
var pin = o.ain_p;
$('txtain_v'+pin).value = o.ain_v;
AinDrawgraph(o);
}
function getAin(o)
{
var p = o.attributes['pin'].value;
var oUpdate;
setTimeout(function()
{
oUpdate = new AJAX('get_ain'+p+'.cgi',
function(t)
{
try
{
eval(t);
}
catch(e)
{
alert(e);
}
}
);
oUpdate.doGet();
}
, 300);
}
function AinDrawgraph(o)
{
var pin = o.ain_p;
var val = o.ain_v;
$('ain_v'+pin).style.width = val*500/1023+'px';
}
function getAin6_update()
{
var oUpdate;
setTimeout(function()
{
oUpdate = new AJAX('get_ain6.cgi',
function(t)
{
try
{
eval(t);
}
catch(e)
{
alert(e);
}
}
);
oUpdate.doGet();
}
, 300); setTimeout('getAin6_update()', 500);
}