Skip to content
Snippets Groups Projects
Verified Commit 6bc77b8d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

More statistics

parent 581cb2e9
No related branches found
No related tags found
No related merge requests found
/.idea/ /.idea/
/vendor/ /vendor/
/node_modules/ /node_modules/
/assets/css/
\ No newline at end of file
*
font-family: Verdana, Arial, sans-serif
body
display: flex
flex-direction: column
align-items: center
table
max-width: 720px
width: 100%
border-collapse: collapse
th
background: rgba(52, 68, 84, 1.0)
color: #ffffff
tr
background: rgba(52, 68, 84, 0.2)
font-size: 13px
&:nth-child(2n)
background: rgba(52, 68, 84, 0.1)
&.small-followup
tbody
background: rgba(52, 68, 84, 0.2)
tr
background: none
tr:not(:first-child)
font-size: 10px
&:nth-child(2n)
background: rgba(52, 68, 84, 0.1)
\ No newline at end of file
...@@ -112,7 +112,7 @@ func main() { ...@@ -112,7 +112,7 @@ func main() {
panic(err) panic(err)
} }
assets := http.FileServer(http.Dir("assets")) http.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("assets"))))
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
_, channel := path.Split(r.URL.Path) _, channel := path.Split(r.URL.Path)
if strings.HasPrefix(channel, "#") { if strings.HasPrefix(channel, "#") {
...@@ -193,10 +193,6 @@ func main() { ...@@ -193,10 +193,6 @@ func main() {
handleError(err) handleError(err)
return return
} }
} else {
w.Header().Set("Vary", "Accept-Encoding")
w.Header().Set("Cache-Control", "public, max-age=31536000")
assets.ServeHTTP(w, r)
} }
}) })
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<meta name="apple-mobile-web-app-status-bar-style" content="#FFC107"> <meta name="apple-mobile-web-app-status-bar-style" content="#FFC107">
<link href="/assets/css/style.css" rel="stylesheet"> <link href="/assets/css/style.css" rel="stylesheet">
<p>Total: {{.Lines}} Lines, {{.Words}} Words, {{printf "%.1f" .WordsPerLine}} Words per Line</p>
<table> <table>
<thead> <thead>
...@@ -48,7 +47,7 @@ ...@@ -48,7 +47,7 @@
</tbody> </tbody>
</table> </table>
<table> <table class="small-followup">
<thead> <thead>
<tr> <tr>
<th>Big numbers</th> <th>Big numbers</th>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment