From 7bddea7cad79ba5a52fe8e1e1cd08d61ac8e6804 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 3 Mar 2017 19:14:35 +0100 Subject: [PATCH] clickable links --- main.go | 2 +- web/css/style.css | 14 +++++++++++++- web/index.html | 10 +++++----- web/js/script.js | 12 ++++++------ 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/main.go b/main.go index 1e6e787..30f772c 100644 --- a/main.go +++ b/main.go @@ -140,7 +140,7 @@ func answer(c *telgo.Client, args []string) bool { c.Sayln("") c.Sayln(" Get more Info:") c.Sayln(" https://wiki.realraum.at/unterkunft") - c.Sayln(" idle at irc://#realraum@irc.oftc.net") + c.Sayln(" idle at irc://irc.oftc.net/#realraum") fmt.Printf("client(%s) wants to come to the party!\n", c.Conn.RemoteAddr()) case "n": fallthrough diff --git a/web/css/style.css b/web/css/style.css index 05d0c06..461d782 100644 --- a/web/css/style.css +++ b/web/css/style.css @@ -12,7 +12,7 @@ div { display: inline-block; } -code { +pre.code { margin: 0 auto; } @@ -22,3 +22,15 @@ pre { text-align: left; line-height: 1.2em; } + +pre a:link { + color: #5cb85c; +} + +pre a:visited { + color: #5cb85c; +} + +pre a:hover { + color: #5cb85c; +} diff --git a/web/index.html b/web/index.html index 851aa2a..062dad9 100644 --- a/web/index.html +++ b/web/index.html @@ -11,11 +11,11 @@
-
$ telnet 10.r3.at
-
...loading...
-
-
-
+
$ telnet 10.r3.at
+
...loading...
+
+
+
diff --git a/web/js/script.js b/web/js/script.js index c3bf78c..dab5c53 100644 --- a/web/js/script.js +++ b/web/js/script.js @@ -167,18 +167,18 @@ $(function () { printLine($output, ''); printLine($output, ' Find the place:'); printLine($output, ' realraum, Brockmanngasse 15, 8010 Graz'); - printLine($output, ' http://osm.org/go/0Iz~oIpTW?m=&node=668061696'); + printLine($output, ' http://osm.org/go/0Iz~oIpTW?m=&node=668061696'); printLine($output, ''); printLine($output, ' Save the date:'); - printLine($output, ' https://plus.google.com/u/0/events/cqiq6003lok2qd9jcqmh4u4p8d4'); - printLine($output, ' https://10.r3.at/10r3.ics'); + printLine($output, ' https://plus.google.com/u/0/events/cqiq6003lok2qd9jcqmh4u4p8d4'); + printLine($output, ' https://10.r3.at/10r3.ics'); printLine($output, ''); printLine($output, ' Get more Info:'); - printLine($output, ' https://wiki.realraum.at/unterkunft'); - printLine($output, ' idle at irc://#realraum@irc.oftc.net'); + printLine($output, ' https://wiki.realraum.at/unterkunft'); + printLine($output, ' idle at irc://irc.oftc.net/#realraum'); printLine($output, ''); - printLine($output, ' https://github.com/realraum/telme10'); + printLine($output, ' https://github.com/realraum/telme10'); printLine($output, ''); } if (event.which === 13 && (input === 'n' || input === 'no')) {