Mercurial Hosting > luan
comparison src/goodjava/webserver/handlers/DirHandler.java @ 1617:d88fb2eb15aa
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 13 Jun 2021 23:39:09 -0600 |
parents | fa066aaa068c |
children |
comparison
equal
deleted
inserted
replaced
1616:915cb538e2a3 | 1617:d88fb2eb15aa |
---|---|
45 response.headers.put( "Content-Type", "text/html; charset=utf-8" ); | 45 response.headers.put( "Content-Type", "text/html; charset=utf-8" ); |
46 Writer writer = new OutputStreamWriter( new ResponseOutputStream(response) ); | 46 Writer writer = new OutputStreamWriter( new ResponseOutputStream(response) ); |
47 writer.write( "<!doctype html>\n<html>\n" ); | 47 writer.write( "<!doctype html>\n<html>\n" ); |
48 writer.write( "\t<head>\n" ); | 48 writer.write( "\t<head>\n" ); |
49 writer.write( "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" ); | 49 writer.write( "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" ); |
50 writer.write( "\t\t<meta name=\"robots\" content=\"noindex,nofollow\">\n" ); | |
50 writer.write( "\t\t<style>\n" ); | 51 writer.write( "\t\t<style>\n" ); |
51 writer.write( "\t\t\ttd {padding: 2px 8px}\n" ); | 52 writer.write( "\t\t\ttd {padding: 2px 8px}\n" ); |
52 writer.write( "\t\t\ta {text-decoration: none}\n" ); | 53 writer.write( "\t\t\ta {text-decoration: none}\n" ); |
53 writer.write( "\t\t\ta:hover {text-decoration: underline}\n" ); | 54 writer.write( "\t\t\ta:hover {text-decoration: underline}\n" ); |
54 writer.write( "\t\t</style>\n" ); | 55 writer.write( "\t\t</style>\n" ); |