openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bbd09f2ba1b87a536c1fda8a7098490fbf49ef2c
parent a9837d805ee98a4010730f2429a37fb9f94d2f6e
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Thu,  3 Sep 2020 23:50:56 +0300

css file

Diffstat:
Aii-node/lib/style.css | 3+++
Mii-node/main.go | 3+++
Mii-node/tpl/header.tpl | 2++
3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ii-node/lib/style.css b/ii-node/lib/style.css @@ -0,0 +1,3 @@ +.msgtext { + white-space: pre-wrap; +} diff --git a/ii-node/main.go b/ii-node/main.go @@ -77,6 +77,9 @@ func main() { WebInit(&www, db) + fs := http.FileServer(http.Dir("lib")) + http.Handle("/lib/", http.StripPrefix("/lib/", fs)) + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { err := handleWWW(www, w, r) if err != nil { diff --git a/ii-node/tpl/header.tpl b/ii-node/tpl/header.tpl @@ -3,6 +3,8 @@ <meta name="Robots" content="index,follow"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8"/> +<link rel="icon" href="/lib/icon.png" type="image/png"> +<link rel="stylesheet" type="text/css" href="/lib/style.css"> <title>go-ii</title> </head> <body>