website.git

commit 4711ec4f2ad064e8f02a0cd54cde5a5de61cfea3

Author: Adam Evyčędo <git@apiote.xyz>

add dogtag

 router.go | 6 ++++++
 templates/dogtag.en.html | 30 ++++++++++++++++++++++++++++++
 templates/dogtag.pl.html | 30 ++++++++++++++++++++++++++++++


diff --git a/router.go b/router.go
index 7d71091125f421bc89490f3878a92680e0bda134..4b65f542f99782964e001c6ff634486f62e590e7 100644
--- a/router.go
+++ b/router.go
@@ -603,6 +603,11 @@ 		}
 	}
 }
 
+func dogtag(w http.ResponseWriter, r *http.Request) {
+	acceptLanguage := r.Header.Get("Accept-Language")
+	showHtml(w, "dogtag", nil, acceptLanguage)
+}
+
 func route() {
 	http.HandleFunc("/", index)
 	http.HandleFunc("/static/", static)
@@ -614,6 +619,7 @@ 	http.HandleFunc("/programs/", programs)
 	http.HandleFunc("/donate", donate)
 	http.HandleFunc("/pgp/", pgp)
 	http.HandleFunc("/calendar", calendar)
+	http.HandleFunc("/tag", dogtag)
 
 	http.HandleFunc("/s/", shortRedirect)
 	http.HandleFunc("/short/", shortShow)




diff --git a/templates/dogtag.en.html b/templates/dogtag.en.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d95476c52e5c822e41c693ec2a13c1700eab705
--- /dev/null
+++ b/templates/dogtag.en.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+	{{ template "head" . }}
+	<body>
+		{{ template "header" }}
+		{{ template "nav" }}
+		<main>
+			<h2>In case of emergency</h2>
+      <ul>
+        <li>My name is Adam Pioterek.</li>
+        <li>
+          To contact my next of kin:
+          <ol>
+            <li>take my phone,</li>
+            <li>click any button to see the clock,</li>
+            <li>swipe up to see the numpad,</li>
+            <li>click ‘Emergency’,</li>
+            <li>double tap ‘Emergency information’ at the top,</li>
+            <li>click ‘CONTACTS’ tab,</li>
+            <li>click the contact to dial.</li>
+          </ol>
+        </li>
+        <li>My blood type is B RH+.</li>
+        <li>I explicitly agree to donate my organs.</li>
+        <li>I do not take any medication.</li>
+      </ul>
+		</main>
+		{{ template "aside" . }}
+	</body>
+</html>




diff --git a/templates/dogtag.pl.html b/templates/dogtag.pl.html
new file mode 100644
index 0000000000000000000000000000000000000000..b3db6a1edfb876e48c5b379945a6b386adf36de0
--- /dev/null
+++ b/templates/dogtag.pl.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="pl">
+	{{ template "head" . }}
+	<body>
+		{{ template "header" }}
+		{{ template "nav" }}
+		<main>
+			<h2>W razie wypadku</h2>
+      <ul>
+        <li>Nazywam się Adam Pioterek.</li>
+        <li>
+          Aby skontaktować się z najbliższą osobą:
+          <ol>
+            <li>weź mój telefon,</li>
+            <li>naciśnij dowolny przycisk, żeby zobaczyć zegar,</li>
+            <li>przeciągnij ekran do góry, żeby zobaczyć klawiaturę numeryczną,</li>
+            <li>naciśnij „Emergency”,</li>
+            <li>naciśnij dwa razy „Emergency information” na górze ekranu,</li>
+            <li>naciśnij zakładkę „CONTACTS”,</li>
+            <li>naciśnij kontakt, aby zadzwonić.</li>
+          </ol>
+        </li>
+        <li>Moja grupa krwi to B RH+.</li>
+        <li>Wyrażam jawną zgodę na oddanie narządów.</li>
+        <li>Nie przyjmuję żadnych leków.</li>
+      </ul>
+		</main>
+		{{ template "aside" . }}
+	</body>
+</html>