summaryrefslogtreecommitdiff
path: root/diff-pem2html.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 15:03:07 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 15:03:07 -0500
commit0b05009ec37a798dd3b2e48c1240064669ba8b25 (patch)
treec0d4e452944b607d18d6872eb12937efc1641e4d /diff-pem2html.go
parent41843133f95e7ca7ec45c40b88c06e35fd7d901e (diff)
unify html
Diffstat (limited to 'diff-pem2html.go')
-rw-r--r--diff-pem2html.go44
1 files changed, 1 insertions, 43 deletions
diff --git a/diff-pem2html.go b/diff-pem2html.go
index 8f3b1e9..3b7716b 100644
--- a/diff-pem2html.go
+++ b/diff-pem2html.go
@@ -24,47 +24,7 @@ func handleBool(ok bool, str string, a ...interface{}) {
}
}
-var tmpl = template.Must(template.New("2html").Parse(`<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>CT log accuracy</title>
- <style>
- html {
- height: 100%;
- }
- body {
- font-size: 10px;
- font-family: monospace;
- height: 100%;
- margin: 0;
- display: flex;
- align-items: center;
- }
- body > * {
- margin: auto;
- }
- .diff-del, .diff-del a { color: red; }
- .diff-add, .diff-add a { color: green; }
- .diff-dat, .diff-dat a { color: blue; }
- .diff-ctx, .diff-ctx a { color: black; }
- tr:hover a {
- background-color: #AAAAF3;
- }
- td a {
- text-decoration: none;
- padding: 0.1em 0.25em;
- display: block;
- width: 100%;
- height: 100%;
- color: black;
- }
- </style>
- <script src="sorttable.js"></script>
- <base target="_parent" />
-</head>
-<body>
-<table>
+var tmpl = template.Must(template.New("2html").Parse(`<table class=diff>
<tr class="diff-del"><td colspan=4>--- tls.pem</td></tr>
<tr class="diff-add"><td colspan=4>+++ crtsh.pem</td></tr>
<tr class="diff-dat"><td colspan=4>@@ -1,{{.nTLS}} +1,{{.nCrtSh}} @@</td></tr>
@@ -77,8 +37,6 @@ var tmpl = template.Must(template.New("2html").Parse(`<!DOCTYPE html>
</tr>
{{end}}
</table>
-</body>
-</html>
`))
type Cert struct {