#ifndef _WEBPAGE_H_ #define _WEBPAGE_H_ /* * To online encode text file to C source use online utility (Text->Cpp): * https://tomeko.net/online_tools/cpp_text_escape.php?lang=en * add option (this is for good reading into browser, as source code) * after that insert in any text editor and replace <\n"> sequence to <\n"\> (this is for recognize multiple string into C-source headers) * * Also can use File->HEX (BIN2HEX) - for prepare images for example: * https://tomeko.net/online_tools/file_to_hex.php?lang=en */ /************************************************************************************* * JavaScript Functions *************************************************************************************/ #define wiz550web_ajax_js "function AJAX(a,e){var c=d();c.onreadystatechange=b;function d(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){return new ActiveXObject(\"Microsoft.XMLHTTP\")}}}function b(){if(c.readyState==4){if(c.status==200){if(e){e(c.responseText)}}}}this.doGet=function(){c.open(\"GET\",a,true);c.send(null)};this.doPost=function(f){c.open(\"POST\",a,true);c.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");c.setRequestHeader(\"ISAJAX\",\"yes\");c.send(f)}}function $(a){return document.getElementById(a)}function $$(a){return document.getElementsByName(a)}function $$_ie(a,c){if(!a){a=\"*\"}var b=document.getElementsByTagName(a);var e=[];for(var d=0;d\n"\ "\n"\ "\n"\ "\n"\ " W5500-AtMEGA1284p Web Server\n"\ " \n"\ "\n"\ "\n"\ "\n"\ "
\n"\ " W5500-AtMEGA1284p Web Server Demopage\n"\ "

\n"\ " Network Information
\n"\ " Base64 Image Data
\n"\ "
\n"\ " Ex1> Digital I/O
\n"\ " Ex2> Analog Input
\n"\ " Ex3> Analog Input: Google Gauge Chart
\n"\ "
\n"\ " Device Information
\n"\ "\n"\ "\n"\ "" #define wiz550web_info_js \ "function getInfo()\n"\ "{\n"\ " var oUpdate;\n"\ " setTimeout(function()\n"\ " {\n"\ " oUpdate = new AJAX('get_info.cgi', function(t)\n"\ " {\n"\ " try\n"\ " {\n"\ " //*eval(t);\n"\ " document.getElementById('info_txt').innerHTML = t;\n"\ " }\n"\ " catch(e)\n"\ " {\n"\ " alert(e);\n"\ " }\n"\ " }\n"\ " ); oUpdate.doGet();\n"\ " }\n"\ " , 300); setTimeout('getInfo()', 3000);\n"\ "}\n"\ "" #define netinfo_page ""\ ""\ ""\ "W5500-AtMEGA1284p Web Server Network Info"\ ""\ ""\ ""\ ""\ ""\ ""\ "
"\ "W5500-AtMEGA1284p Web Server Network Information"\ "
"\ "
"\ ""\ ""\ "" #define dio_page ""\ ""\ ""\ "W5500-AtMEGA1284p Web Server Digital I/O v1.1"\ ""\ ""\ ""\ ""\ ""\ ""\ "

LED1: unknown..

"\ "
"\ " "\ ""\ "
"\ "
"\ ""\ ""\ "" #define ain_page ""\ ""\ ""\ "W5500-AtMEGA1284p Web Server Analog Input"\ ""\ ""\ ""\ ""\ ""\ ""\ ""\ ""\ ""\ "
"\ " "\ " "\ " "\ "
"\ "
"\ "
"\ ""\ ""\ "" #define info_page \ "\n"\ "\n"\ "\n"\ "\n"\ " W5500-AtMEGA1284p Device Info\n"\ " \n"\ " \n"\ " \n"\ "\n"\ "\n"\ "\n"\ "
\n"\ " W5500-AtMEGA1284p Device Information\n"\ "

\n"\ "

..

\n"\ "\n"\ "\n"\ "" //!! No space at RAM in AtMega1284p (16kb only..) //!! Need replace all pages into FLASH memory (PROGMEM) - Shame AVR-8bit HARVARD Architecture!! /* #define ain_gauge_page ""\ ""\ ""\ "W5500-AtMEGA1284p Web Server Analog Input Gauge"\ ""\ ""\ ""\ ""\ ""\ ""\ ""\ ""\ "
"\ " "\ " "\ " "\ "
"\ ""\ "
"\ "
"\ ""\ "" */ /* Base64 Image converter: http://base64.wutils.com/encoding-online/ */ /* #define img_page ""\ ""\ ""\ "W5500-AtMEGA1284p Web Server Image"\ ""\ ""\ ""\ ""\ ""\ "
"\ "wizwebserver.png"\ "
"\ ""\ "" */ #endif