mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
added icon font
This commit is contained in:
@@ -141,6 +141,12 @@ static int HttpGetAssets(httpd_request_t *req)
|
||||
file_data = css_pack;
|
||||
content_type = HTTP_CONTENT_CSS_ZIP;
|
||||
}
|
||||
else if (strcmp(file_name + 8, "web_icons.woff2") == 0)
|
||||
{
|
||||
total_sz = sizeof(web_icons_woff2);
|
||||
file_data = web_icons_woff2;
|
||||
content_type = HTTP_CONTENT_WOFF2;
|
||||
}
|
||||
|
||||
if (total_sz == 0) return err;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#define HTTP_CONTENT_HTML_ZIP "text/html\r\nContent-Encoding: gzip\r\nCache-Control: public"
|
||||
#define HTTP_CONTENT_JS_ZIP "text/javascript\r\nContent-Encoding: gzip\r\nCache-Control: public"
|
||||
#define HTTP_CONTENT_CSS_ZIP "text/css\r\nContent-Encoding: gzip\r\nCache-Control: public"
|
||||
#define HTTP_CONTENT_WOFF2 "font/woff2\r\nCache-Control: public"
|
||||
|
||||
#define HTTPD_HDR_DEFORT (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_PRAGMA_NO_CACHE)
|
||||
#define HTTPD_HDR_CACHE (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_CACHE_CTRL_NO_CHK)
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
font-family: 'Material Icons';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
|
||||
/* src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2'); */
|
||||
src: url(/assets/web_icons.woff2) format('woff2');
|
||||
}
|
||||
.material-icons {
|
||||
font-family: 'Material Icons';
|
||||
|
||||
Reference in New Issue
Block a user