oboeru

a collection of simple, scriptable flashcard programs
git clone anongit@rnpnr.xyz:oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 4676a851f8adb80513b1ac5bb081e26829034db1
Parent: 96cb82a6a478ff62ad2559ad12243be22e7f9b26
Author: Randy Palamar
Date:   Mon, 16 Aug 2021 16:52:34 -0600

oboeruhttp: give links the class "link"

Diffstat:
MMakefile | 2+-
Moboeruhttp.go | 11++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -17,7 +17,7 @@ $(OBOERU_OBJ): config.h oboeru: $(OBOERU_OBJ) $(CC) -o $@ $(OBOERU_OBJ) $(LDFLAGS) -oboeruhttp: +oboeruhttp: oboeruhttp.go go build -ldflags "$(GOLDFLAGS)" $@.go install: oboeru diff --git a/oboeruhttp.go b/oboeruhttp.go @@ -107,11 +107,12 @@ func main() { flag.Usage = usage flag.Parse() - html_midf = strings.Join([]string{"<a href='/quit'>", *quit, - "</a> · <a href='/show'>", *show, "</a>"}, "") - html_midb = strings.Join([]string{"<a href='/fail'>", *fail, - "</a> · <a href='/quit'>", *quit, - "</a> · <a href='/pass'>", *pass, "</a>"}, "") + html_midf = strings.Join([]string{"<div class='link'><a href='/quit'>", + *quit, "</a> · <a href='/show'>", *show, + "</a></div>"}, "") + html_midb = strings.Join([]string{"<div class='link'><a href='/fail'>", + *fail, "</a> · <a href='/quit'>", *quit, + "</a> · <a href='/pass'>", *pass, "</a></div>"}, "") html_quit = *bye ctx, cancel = context.WithCancel(context.Background())