Subversion Repositories IRC-Archiver

Rev

Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 21
Line 1... Line 1...
1
/* $Id: html.c 18 2024-08-30 08:29:19Z nishi $ */
1
/* $Id: html.c 21 2024-08-30 11:16:04Z nishi $ */
2
 
2
 
3
#include "web_html.h"
3
#include "web_html.h"
4
 
4
 
5
#include "web_db.h"
5
#include "web_db.h"
6
 
6
 
Line 108... Line 108...
108
		fprintf(f, "		<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">\n");
108
		fprintf(f, "		<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">\n");
109
		fprintf(f, "		<title>%s</title>\n", title);
109
		fprintf(f, "		<title>%s</title>\n", title);
110
		fprintf(f, "		<style type=\"text/css\">\n");
110
		fprintf(f, "		<style type=\"text/css\">\n");
111
		fprintf(f, "		</style>\n");
111
		fprintf(f, "		</style>\n");
112
		fprintf(f, "	</head>\n");
112
		fprintf(f, "	</head>\n");
113
		fprintf(f, "	<body style=\"padding: 15px; margin: 0 auto; width: 900px;\">\n");
113
		fprintf(f, "	<body style=\"padding: 15px; margin: 0 auto; width: 910px;\">\n");
114
		fprintf(f, "		<div style=\"padding: 1px 0; margin: 0; text-align: center; background-color: #8080ff;\">\n");
114
		fprintf(f, "		<div style=\"padding: 1px 0; margin: 0; text-align: center; background-color: #8080ff;\">\n");
115
		fprintf(f, "			<h1>%s</h1>\n", title);
115
		fprintf(f, "			<h1>%s</h1>\n", title);
116
		fprintf(f, "		</div>\n");
116
		fprintf(f, "		</div>\n");
117
		fprintf(f, "		Archived at %s.<br>\n", date);
117
		fprintf(f, "		Archived at %s.<br>\n", date);
118
		htmlesc = web_html_escape(range.channel);
118
		htmlesc = web_html_escape(range.channel);