📄 webdoc1.c
字号:
//-----------------------------------------------------------------------------
// Net WEBDOC.C
//
// This module contains web pages and headers
//-----------------------------------------------------------------------------
#include "net.h"
// This is the header for web text pages. LENGTH is the body
// length, needed because in HTTP 1.1 we leave connection open
// Includes control statements to prevent browser from caching page
char code html_header[] = {
"HTTP/1.1 200 OK\n"
"Cache-control: no-cache\n"
"Connection: Keep-Alive\n"
"Content-Length: TAG:LEN1\n"
"Content-Type: text/html\r\n\r\n" };
// This page displays a table with weather data and a switch
// to turn a port pin on and off.
char code web_page[] = {
"<HTML><HEAD><TITLE>点石金智能电子webserver演示程序</TITLE>\n"
"<META http-equiv=\"refresh\" content=\"5\">"
"<meta http-equiv=\"content-type\" content=\"text/html; charset=gb2312\">\r\n"
"</HEAD>\n"
"<BODY>\n"
"<FORM action=/index.html method=post>\n"
"<TABLE border=0 width=\"786\">\n"
"<TBODY>\n"
"<TR>\n"
"<TD width=\"739\">\n"
"<H1> \n"
"<IMG src=\"photo1.jpg\" width=\"200\" height=\"134\"></H1>\n"
"<H1><font size=\"4\">点石金智能电子</font><font size=\"4\">嵌入式网页演示\n"
"</font></H1>\n"
"<TABLE border=2 width=\"419\">\n"
"<TBODY>\n"
"<TR>\n"
"<TD width=235 height=25>\n"
"<p align=\"center\">计数器1</TD>\n"
"<TD width=166 height=25 align=\"center\">TAG:TMP1</TD></TR>\n"
"<TR>\n"
"<TD>\n"
"<p align=\"center\">计数器2</TD>\n"
"<TD align=\"center\">TAG:TMP2</TD></TR>\n"
"<TR>\n"
"<TD>\n"
"<p align=\"center\">计数器3</TD>\n"
"<TD align=\"center\">TAG:VOL1</TD></TR></TBODY></TABLE><BR><BR> LED
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -