diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-19 16:35:13 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-19 16:35:13 -0500 |
commit | f1d1926dfe59a00f98a0a394d955e0a3d8ab203e (patch) | |
tree | 2b0f840f774e8cf32d8fece62737b3ece75ceb66 | |
parent | d4cf234175535e3f14438a45b7bc09882d819953 (diff) |
show everything at once
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | crtsh-pem2html.go | 3 | ||||
-rw-r--r-- | index.html | 43 | ||||
-rw-r--r-- | tls-pem2html.go | 3 |
5 files changed, 51 insertions, 5 deletions
@@ -1,4 +1,5 @@ *.html +!index.html *.pem *.txt NET-* @@ -1,7 +1,7 @@ all: index.html - -index.html: crtsh.html - cp $< $@ +all: crtsh.html +all: tls.html +all: diff.html %: %.go go build $< diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go index ea54ae9..20953be 100644 --- a/crtsh-pem2html.go +++ b/crtsh-pem2html.go @@ -75,6 +75,7 @@ var tmpl = template.Must(template.New("pem2html"). } </style> <script src="sorttable.js"></script> + <base target="_parent" /> </head> <body> <table class=sortable> @@ -166,7 +167,7 @@ func (l Certs) Len() int { // Less reports whether the element with // index i should sort before the element with index j. func (l Certs) Less(i, j int) bool { - return l[i].Updated.UTC().After(l[j].Updated.UTC()) + return l[i].Updated.After(l[j].Updated) } // Swap swaps the elements with indexes i and j. diff --git a/index.html b/index.html new file mode 100644 index 0000000..47f5178 --- /dev/null +++ b/index.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>Dashboard</title> + <style> + html { + height: 100%; + } + body { + font-size: 10px; + font-family: monospace; + height: 100%; + margin: 0; + display: flex; + align-items: center; + } + body > * { + width: 100%; + height: 100%; + } + iframe { + width: 100%; + height: 100%; + display: block; + border: 0; + top: 0; + position: absolute; + } + td { + position: relative; + } + </style> + <script src="sorttable.js"></script> +</head> +<body> + <table> + <tr><td><iframe src="crtsh.html"></iframe></td></tr> + <tr><td><iframe src="tls.html"></iframe></td></tr> + <tr><td><iframe src="diff.html"></iframe></td></tr> + </table> +</body> +</html> diff --git a/tls-pem2html.go b/tls-pem2html.go index 9e8e80a..2dce49a 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -78,6 +78,7 @@ var tmpl = template.Must(template.New("pem2html"). } </style> <script src="sorttable.js"></script> + <base target="_parent" /> </head> <body> <table class=sortable> @@ -180,7 +181,7 @@ func (l Certs) Len() int { // Less reports whether the element with // index i should sort before the element with index j. func (l Certs) Less(i, j int) bool { - return l[i].X509.NotAfter.UTC().After(l[j].X509.NotAfter.UTC()) + return l[i].X509.NotAfter.After(l[j].X509.NotAfter) } // Swap swaps the elements with indexes i and j. |