diff options
| author | Jeff Carr <[email protected]> | 2024-01-12 12:40:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-12 12:40:54 -0600 |
| commit | e34f8f57342fe940901c73c9d3fb391680eb7ecc (patch) | |
| tree | 657ff200cbc74709c91bdb3ec195ad7bb8264002 | |
| parent | f8ae1dee50c18b4d33036ed48c48d2111b35fe85 (diff) | |
very close to working
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | indexHtml.go | 38 | ||||
| -rw-r--r-- | main.go | 1 |
2 files changed, 26 insertions, 13 deletions
diff --git a/indexHtml.go b/indexHtml.go index 5af15bf..fcf9815 100644 --- a/indexHtml.go +++ b/indexHtml.go @@ -36,7 +36,7 @@ func indexHeader(w http.ResponseWriter) { fmt.Fprintln(w, "<!DOCTYPE html>") fmt.Fprintln(w, "<html>") fmt.Fprintln(w, " <head>") - fmt.Fprintln(w, " <link rel=\"stylesheet\" href=\"skeleton.v2.css\" />") + // fmt.Fprintln(w, " <link rel=\"stylesheet\" href=\"skeleton.v2.css\" />") fmt.Fprintln(w, " <style>") fmt.Fprintln(w, " #footer {") fmt.Fprintln(w, " position: fixed;") @@ -54,20 +54,32 @@ func indexHeader(w http.ResponseWriter) { func indexBodyStart(w http.ResponseWriter) { // fmt.Fprintln(w, " - fmt.Fprintln(w, " <body>") - fmt.Fprintln(w, " <div class=\"container\">") - fmt.Fprintln(w, " <div class=\"row\">") - fmt.Fprintln(w, " <table class=\"u-full-width\">") - fmt.Fprintln(w, " <thead>") + fmt.Fprintln(w, "<body>") + fmt.Fprintln(w, " <div class=\"container\">") + fmt.Fprintln(w, " <div class=\"row\">") + fmt.Fprintln(w, " <table class=\"u-full-width\">") + fmt.Fprintln(w, " <thead>") + fmt.Fprintln(w, " <tr>") + fmt.Fprintln(w, " <th>Package</th>") + fmt.Fprintln(w, " <th>go get</th>") + fmt.Fprintln(w, " <th>Authoritative sources (IPv6 only)</th>") + fmt.Fprintln(w, " <th>github mirror</th>") + fmt.Fprintln(w, " <th>Documentation</th>") + fmt.Fprintln(w, " </tr>") + fmt.Fprintln(w, " </thead>") + fmt.Fprintln(w, " <tbody>") + fmt.Fprintln(w, "") +} + +func indexBodyRepo(w http.ResponseWriter, repourl string) { + fmt.Fprintln(w, " <tr> <td><h5>log/ (needed for the gui)</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>") fmt.Fprintln(w, " <tr>") - fmt.Fprintln(w, " <th>Package</th>") - fmt.Fprintln(w, " <th>go get</th>") - fmt.Fprintln(w, " <th>Authoritative sources (IPv6 only)</th>") - fmt.Fprintln(w, " <th>github mirror</th>") - fmt.Fprintln(w, " <th>Documentation</th>") + fmt.Fprintln(w, " <td>log</td>") + fmt.Fprintln(w, " <td> <a href=\"//go.wit.com/log\">go.wit.com/log</a></td>") + fmt.Fprintln(w, " <td> <a href=\"//git.wit.org/wit/log\">git.wit.org/wit/log</a></td>") + fmt.Fprintln(w, " <td> <a href=\"//github.com/wit-go/log\">github.com/wit-go/log</a></td>") + fmt.Fprintln(w, " <td> <a href=\"//pkg.go.dev/go.wit.com/log\"> <img src=\"goReference.svg\" alt=\"Go Reference\" /> </a> </td>") fmt.Fprintln(w, " </tr>") - fmt.Fprintln(w, " </thead>") - fmt.Fprintln(w, " <tbody>") fmt.Fprintln(w, "") } @@ -27,6 +27,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { if tmp == "/new" { indexHeader(w) indexBodyStart(w) + indexBodyRepo(w, "go.wit.com/gui/gui") indexBodyEnd(w) return } |
