~lastrosade/jsthttpd

b297c22ab8d363c2149a4254b21dfa5286a0becf — Jeremy Lee Shields 1 year, 2 months ago d688d23
js, css
1 files changed, 10 insertions(+), 9 deletions(-)

M src/libhttpd.c
M src/libhttpd.c => src/libhttpd.c +10 -9
@@ 724,9 724,9 @@ send_response( httpd_conn* hc, int status, char* title, char* extraheads, char* 
	hc, status, title, "", extraheads, "text/html; charset=%s", (off_t) -1,
	(time_t) 0 );
    (void) my_snprintf( buf, sizeof(buf), "\
<HTML>\n\
<html>\n\
<HEAD><TITLE>%d %s</TITLE></HEAD>\n\
<BODY BGCOLOR=\"#f2f2f2\" TEXT=\"#444\" LINK=\"green\" VLINK=\"green\">\n\
<body BGCOLOR=\"#101010\" TEXT=\"#eeeeee\" LINK=\"#00EE00\" VLINK=\"#00EE00\">\n\
<H2>%d %s</H2>\n",
	status, title, status, title );
    add_response( hc, buf );


@@ 752,8 752,8 @@ send_response_tail( httpd_conn* hc )

    (void) my_snprintf( buf, sizeof(buf), "\
<HR>\n\
</BODY>\n\
</HTML>\n" );
</body>\n\
</html>\n" );
    add_response( hc, buf );
    }



@@ 2751,16 2751,17 @@ ls( httpd_conn* hc )
		exit( 1 );
		}

	    (void) fprintf( fp, "<HTML><HEAD><TITLE>Index of %.80s</TITLE>\n\
	    (void) fprintf( fp, "<html><head><TITLE>Index of %.80s</TITLE>\n\
<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n\
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\
<meta name=\"keywords\" content=\"Index\">\n\
<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n\
<style type=\"text/css\">\n\
a { color: #009900; }\n\
a { color: #00EE00; }\n\
.red { color: red }\n\
body { background-color: #101010; color: #eeeeee; -webkit-font-smoothing: none; }\n\
</style></HEAD><BODY>\n\
body { background-color: #101010; color: #eeeeee; -webkit-font-smoothing: none; padding: 0 5px; margin: 40px auto; max-width: 750px; line-height: 1.1; -webkit-font-smoothing: none;}\n\
</style><link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"/></head><body>\n\
<div id=\"particles-js\"></div>\n\
<h3><span class=\"red\">[</span>Index of %.80s<span class=\"red\">]</span></h3>\n\
<pre>\n\
mode  links  bytes  last-changed  name\n\


@@ 2918,7 2919,7 @@ mode  links  bytes  last-changed  name\n\
		    nameptrs[i], linkprefix, link, fileclass );
		}

	    (void) fprintf( fp, "</pre></BODY>\n</HTML>\n" );
	    (void) fprintf( fp, "<script src=\"/scripts.js\"></script></pre></body>\n</html>\n" );
	    (void) fclose( fp );
	    exit( 0 );
	    }