1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="zepto.min.js"></script> <script type="text/javascript"> function refresh() { $('#content').load('/arduino/temperature'); } </script> </head> <body onload="setInterval(refresh, 1000);"> <span id="content">0</span> </body> </html>