<html>
<head>
<title>{{ .Site.Title }}{{ if .Page.Title }} :: {{ .Page.Title }}{{ end }}</title>
- <link rel="stylesheet" href="{{relURL `/css/main.css`}}">
- <script src="{{relURL `/js/main.js`}}"></script>
+ <link rel="stylesheet" href="/css/speedy.css">
+ <script src="/js/speedy.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
{{ .Hugo.Generator }}
<body>
<header>
{{- $sp := .Site.GetPage "section" .Section }}
- {{- $ph := .Page.Resources.GetMatch "header.png" -}}
- {{- $ph := cond (not $ph) ($sp.Resources.GetMatch "header.png") $ph }}
- {{- $ph := cond (not $ph) (relURL "/img/speedy.png") $ph.RelPermalink }}
+ {{- $sh := cond (or (not $sp.Params.header) (not (fileExists (printf "static/%s" $sp.Params.header)))) (cond (or (not .Site.Home.Params.header) (not (fileExists (printf "static/%s" .Site.Home.Params.header)))) "/img/speedy.png" .Site.Home.Params.header) $sp.Params.header }}
+ {{- $sc := cond (or (not $sp.Params.caption)) (cond (not .Site.Home.Params.caption) .Site.Title .Site.Home.Params.caption) $sp.Params.caption }}
+ {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }}
<img src="{{ $ph }}">
<div>
- {{ $caption := cond (not .Page.Params.caption) (cond (not $sp.Params.caption) .Site.Title $sp.Params.caption) .Page.Params.caption }}
+ {{ $caption := cond (not .Params.caption) $sc .Params.caption }}
{{- if (eq (printf "%T" $caption) "string") }}
{{- $caption -}}
{{- else }}
<nav>
<div>
{{- $pg := . }}
- {{- range union (where .Site.Menus.main "Weight" 0).Reverse (where .Site.Menus.main "Weight" "!=" 0) }}
- <a href="{{ .URL }}">
+ {{- range .Site.Menus.main }}
+ <a href="{{ absURL .URL }}">
<summary>{{ .Name }}</summary>
- <svg{{- if or ($pg.InSection .Page) (eq .Page $sp) }} class="selected"{{ end }}>
- <use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/>
+ <svg{{- if or ($pg.InSection .Page) (eq .Page $pg) }} class="selected"{{ end }}>
+ <use xlink:href="{{ relURL `/img/nav.svg` | safeHTML }}#{{ .Name }}"/>
</svg>
</a>
{{- end }}
+++ /dev/null
-<!doctype html>
-<html>
- <head>
- <title>{{ .Site.Title }}{{ if .Page.Title }} :: {{ .Page.Title }}{{ end }}</title>
- <link rel="stylesheet" href="{{relURL `/css/main.css`}}">
- <script src="{{relURL `/js/main.js`}}"></script>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
- {{ .Hugo.Generator }}
- </head>
- <body>
- <header>
- <figure>
- {{- if (.Page.Resources.GetMatch "header.png") }}
- <img src="header.png"></img>
- {{- else }}
- <img src="{{relURL `/img/speedy.png`}}"></img>
- {{- end }}
- </figure>
- <nav>
- <header>{{ if .Page.Title }}{{ .Page.Title }}{{ else }} {{ end }}</header>
- <nav>
- {{- $pg := . }}
- {{- range union (where .Site.Menus.main "Weight" 0).Reverse (where .Site.Menus.main "Weight" "!=" 0) }}
- {{- if or ($pg.IsMenuCurrent "main" .) ($pg.HasMenuCurrent "main" .) }}
- <svg class="selected"><use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/></svg>
- {{- else }}
- <a href="{{ .URL }}">
- <summary>{{ .Name }}</summary>
- <svg><use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/></svg>
- </a>
- {{- end }}
- {{- end }}
- </nav>
- <footer>
- {{- if isset .Page.Params "caption" -}}
- {{- if (eq (printf "%T" .Page.Params.caption) "string") }}
- {{- replaceRE "([&<>'])" "$1" .Page.Params.caption -}}
- {{- else }}
- {{ replaceRE "([&<>'])" "$1" (index .Page.Params.caption 0) }}
- {{- range after 1 .Page.Params.caption -}}
- <br>
- {{ replaceRE "([&<>'])" "$1" . }}
- {{- end }}
- {{- end }}
- {{- else }}
- {{- .Site.Title -}}
- {{- end }}
- </footer>
- </nav>
- </header>
- <main>
- {{ block "main" . }}{{ end }}
- </main>
- <footer>
- <p>©{{ .Site.Copyright }}</p>
- </footer>
- </body>
-</html>
{{- define "main" -}}
-{{ $paginator := .Paginate (where .Data.Pages.ByLastmod.Reverse "Section" .Section) 12 }}
-{{- if (gt (len (findRE "<h1" .Content)) 0) -}}
-{{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n " | safeHTML }}</article>
-{{- else -}}
-{{ .Content }}
-{{- end -}}
- {{- if gt (len $paginator.Pages) 0 }}
+{{- .Content }}
+{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 6 }} <!-- 12 -->
+{{- $.Scratch.Set "cardskip" 0 }}
+{{- if eq $paginator.PageNumber 1 }}
+{{- $.Scratch.Set "cardskip" 4 }}
+{{- range first ($.Scratch.Get "cardskip") $paginator.Pages }}
+{{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) (cond (or (not .Parent.Params.header) (not (fileExists (printf "static/%s" .Parent.Params.header)))) "/img/speedy.png" .Parent.Params.header) .Params.header }}
+ <article>
+ <a class="speedy-header" href="{{ absURL .URL }}">
+ <div class="speedy-img"><div style="background-image: url({{ relURL $ph }});"></div></div>
+ <h1>
+ {{ .Title }}
+ <div style="font-weight: normal; font-size: 0.8rem;">{{ dateFormat "January 2 2006 15:04 MST" .PublishDate }}</div>
+ </h1>
+ <div class="speedy-img" style="height: 0px"></div>
+ </a>
+ {{ .Content | safeHTML | truncate 1024 }}
+ {{- if .Truncated }}
+ <div align="right"><a href="{{ absURL .URL }}">Read More...</a></div>
+ {{- end }}
+ </article>
+{{- end }}
+{{- end }}
+{{- $cardskip := $.Scratch.Get "cardskip" }}
+{{- if gt (len $paginator.Pages) $cardskip }}
<div class="speedy-cards">
- {{- $rsc := .Resources }}
+ {{- if gt $cardskip 1 }}
+ {{- range after $cardskip $paginator.Pages }}
+ {{- partial "speedycard.html" . -}}
+ {{- end }}
+ {{- else }}
{{- range $paginator.Pages }}
- {{- $secHead := cond (not .Params.header) ($rsc.GetMatch "header.png") (string .Params.header | $rsc.GetMatch) }}
- {{- $secHead := cond (not $secHead) (relURL "/img/speedy.png") $secHead.RelPermalink }}
- <a href="{{ .RelPermalink }}">
- <img style="background-image: url({{ $secHead }})">
- <div>{{ .GitInfo.AuthorDate.Format "January 2 2006" }}</div>
- {{.Title}}
- <div>{{ truncate 100 .Summary }}</div>
- </a><br>
+ {{- partial "speedycard.html" . -}}
+ {{- end }}
{{- end }}
</div>
- {{ template "_internal/pagination.html" . -}}
- {{- end }}
+{{ partial "pagination.html" . -}}
+{{- end }}
{{- end -}}
+++ /dev/null
-{{ define "main" }}
- List
-{{ end }}
{{- define "main" -}}
-<small>{{ .Page.Lastmod.Local }}</small>
{{- if (gt (len (findRE "<h1" .Content)) 0) }}
-{{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n " | safeHTML }}</article>
+ <article>
+ {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | replaceRE "\n" "\n " | safeHTML }}
{{- else -}}
- <h1>{{ .Page.Title }}</h1>
- <article>
- {{ .Content | replaceRE "\n" "\n " | safeHTML }}
- </article>
+ <article>
+ {{ .Content | replaceRE "\n" "\n " | safeHTML }}
{{- end }}
+ </article>
+ {{ if .Params.categories }}[{{ range .Params.categories }} <a href="/categories/{{ . }}">@{{ . }}</a> {{ end }}]{{ end }}
+ {{ if .Params.tags }}[{{ range .Params.tags }} <a href="/tags/{{ . }}">#{{ . }}</a> {{ end}}]{{ end }}
+ <div class="last-modified">Last modified {{ dateFormat "January 2 2006 15:04 MST" .Lastmod }}</div>
<div class="page-nav" align="center">
- {{- if .Page.NextInSection }}
- <a href="{{ .Page.NextInSection.URL }}">Newer</a>
+ {{- if .NextInSection }}
+ <a href="{{ .NextInSection.Permalink }}">Newer</a>
{{- end }}
- <a href="{{ .Parent.URL }}"><{{ .Parent.Name }}></a>
- {{- if .Page.PrevInSection }}
- <a href="{{ .Page.PrevInSection.URL }}">Older</a>
+ <a href="{{ .Parent.Permalink }}"><{{ .Parent.Name }}></a>
+ {{- if .PrevInSection }}
+ <a href="{{ .PrevInSection.Permalink }}">Older</a>
{{- end }}
</div>
{{- end -}}
+++ /dev/null
-{{ define "main" }}
- Single
-{{ end }}
+++ /dev/null
-:root {
- --palette0: rgb(148,26,20);
- --palette0-t: rgb(148,26,20,0.8);
- --palette0-d: rgb(100,5,0);
- --palette0-l: rgb(172,78,73);
- --palette1: rgb(227,93,36);
- --palette1-d: rgb(170,51,0);
- --palette1-h: rgb(242,72,0);
- --palette1-l: rgb(243,157,121);
- --palette1-u: rgb(255,101,36);
- --palette2: rgb(236,222,222);
- --palette2-d: rgb(230,198,196);
- --palette2-l: rgb(255,250,250);
- --palette3: rgb(13,62,86);
- --palette3-d: rgb(2,38,56);
- --palette3-l: rgb(5,76,111);
-
- --color-bg: var(--palette2);
- --color-bg-light: var(--palette2-l);
- --color-bg-dark: var(--palette2-d);
- --color-text: black;
- --color-text-link: var(--palette3-l);
- --color-text-active: var(--palette3-d);
- --color-header: var(--palette0-t);
- --color-header: var(--palette0-l);
- --color-header-dark: var(--palette0);
- --color-header-contrast: var(--palette3);
-
- background-color: var(--color-bg);
- color: var(--color-text);
-}
-a {
- color: var(--color-text-link);
-}
-a:hover,
-a:active {
- color: var(--color-text-active);
-}
-h1 {
- text-align: center;
- font-size: 1.66em;
-}
-h2 {
- text-decoration: underline;
- font-size: 1.33em;
-}
-body {
- margin: 0;
-}
-body > header {
- padding: 0 0 1px 0;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-flow: row wrap;
- background-color: var(--color-header);
-}
-body > main {
- margin: 0 1vw;
- font-size: calc(10pt + 0.25vw); /* at least 60 chars wide */
- /* font-size: 1.8rem; */
- font-family: sans;
-}
-body > footer {
- font-size: 0.8rem;
- background-color: var(--color-header);
- height: 4rem;
- display: flex;
- flex-direction: column;
- text-align: center;
- justify-content: center;
-}
-body > header > img {
- margin: 0 3px 0 0;
- min-width: 128px;
- min-height: 128px;
- border-radius: 50%;
- box-shadow: 2px 1px 2px black;
- border: 1px solid black;
- background-color: var(--color-header-contrast);
-}
-body > header > div {
- min-width: 256px;
- max-width: 50vw;
- font-size: 1.1rem;
- font-family: fantasy;
- box-shadow: 2px 1px black;
- border: 1px solid black;
- border-radius: 3px;
- padding: 3px;
- background-color: var(--color-header-contrast);
- color: var(--color-bg);
- text-align: center;
- border: thin solid black;
-}
-body > nav {
- opacity: 0.8;
-}
-body > nav svg {
- margin: 0 0;
- padding: 0 0;
- width: 3rem;
- max-width: 12.5vw;
- height: 3rem;
- max-height: 12.5vw;
- fill: var(--color-text-link);
-}
-body > nav a > summary {
- display: none;
-}
-body > nav a > svg:hover,
-body > nav a > svg:active,
-body > nav svg.selected {
- fill: var(--color-text-active);
-}
-body > nav > div {
- display: flex;
- justify-content: center;
- flex-flow: row wrap;
- background-color: var(--color-bg);
-}
-body > nav > footer {
- font-size: 1.3rem;
- font-family: fantasy;
- background-color: var(--color-header-dark);
- color: var(--color-bg);
- border-radius: 0 0 1.3rem 1.3rem;
- text-align: center;
-}
-@media screen and (orientation:landscape) {
- body > main > article {
- margin: 0 1vw;
- padding: 0 1vw;
- background-color: var(--color-bg-light);
- border: 1px solid black;
- border-radius: 3px;
- box-shadow: 2px 1px 2px black;
- }
-}
-body > main {
- overflow-y: auto;
-}
-body > main > article > * {
- overflow-y: auto;
-}
-@media screen and (orientation:portrait) {
- body > nav {
- position: -webkit-sticky;
- position: sticky;
- z-index: 100;
- top: 0;
- }
- body > nav svg {
- width: 6vh;
- max-width: 3rem;
- height: 6vh;
- max-height: 3rem;
- }
- body > nav > footer {
- font-size: 2vh;
- }
-}
-div.speedy-cards {
- display: flex;
- justify-content: space-around;
- flex-flow: row wrap;
- font-size: 0.8em;
-}
-div.speedy-cards > a {
- position: relative;
- display: block;
- text-decoration: none;
- font-size: 5vmin;
- font-weight: bold;
- margin: 3vw;
- width: 33vmin;
- height: 33vmin;
- box-shadow: 2px 1px 2px black;
- border: 1px solid black;
- border-radius: 3px;
- padding: 3px;
- overflow: hidden;
- background-color: var(--color-bg-dark);
-}
-div.speedy-cards > a > div {
- font-size: 3vmin;
- font-weight: normal;
-}
-div.speedy-cards > a > img {
- opacity: 0.2;
- position: absolute;
- top: 3vmin;
- right: 1vmin;
- width: 40%;
- height: 40%;
- background-size: 100% 100%;
- border-radius: 50%;
- border: 1px solid black;
-}
-div.speedy-cards > br {
- /* Linebreaks are inserted and made invisible to make text browsers and
- ARIA-readers break between anchors */
- display: none;
-}
-div.page-nav {
- font-size: 0.8em;
-}
-ul.pagination {
- padding: 0;
- list-style: none;
- text-align: center;
-}
-ul.pagination > li {
- margin: 0 0.2em;
- display: inline;
-}
-ul.pagination > li.disabled {
- cursor: not-allowed;
- opacity: 0.5;
- text-decoration: none;
- pointer-events: none;
-}
<symbol id="Blog" viewBox="0 0 400 480">
<path d="M 200 20 C 89.866039 20 0 107.26516 0 214.61719 C 0 261.68638 17.509248 307.12664 49.255859 342.52539 C 54.207519 348.04625 62.755537 348.60327 68.404297 343.81445 C 74.052877 339.02561 74.680457 330.24728 69.730469 324.72656 L 69.730469 324.72461 C 42.358001 294.20213 27.310547 255.11307 27.310547 214.61719 C 27.310547 122.17276 104.6329 46.892578 200 46.892578 C 295.36706 46.892578 372.68648 122.17387 372.68555 214.61914 C 372.68555 258.83924 355.19141 300.46783 323.2832 332.0625 C 294.69898 360.36435 257.51121 377.45372 217.33594 381.33008 L 217.33594 334.1875 L 233.77734 334.1875 C 241.15554 334.1875 247.43359 328.19 247.43359 320.74219 L 247.43359 299.20508 C 247.43359 252.70922 208.48831 214.95314 160.94727 214.95312 C 113.40619 214.95312 74.464844 252.70933 74.464844 299.20508 L 74.464844 320.74219 C 74.464844 328.19 80.742902 334.1875 88.121094 334.1875 L 104.5625 334.1875 L 104.5625 412.80664 C 104.5625 427.8951 117.2231 440.09961 132.46094 440.09961 C 133.04043 440.09961 133.59777 440.00321 134.16992 439.96875 C 137.46819 451.50851 148.26425 460 160.94727 460 C 176.18572 460 188.84961 447.79368 188.84961 432.70508 L 188.84961 427.77148 C 189.04757 427.77548 189.23675 427.81641 189.43555 427.81641 C 201.89891 427.81641 212.62447 419.69609 216.12305 408.44141 C 264.03052 404.72575 308.64647 384.69461 342.65234 351.02344 C 379.58379 314.45733 400 265.93746 400 214.61719 C 400 107.26515 310.1348 20 200 20 z M 139.69922 150.76758 C 135.37457 150.72318 131.0503 152.7206 128.36133 156.50195 L 128.35938 156.50195 C 124.10622 162.4857 114.83389 166.98437 104.35742 166.98438 C 94.241717 166.98438 84.689448 162.46412 79.837891 156.12305 C 75.329704 150.22925 66.843157 149.03721 60.845703 153.375 C 54.848942 157.71194 53.513759 166.40846 58.023438 172.30273 C 68.427279 185.90175 86.008088 193.87474 104.35742 193.87695 C 123.17084 193.87695 140.85089 185.82952 150.73633 171.92383 L 150.73828 171.92383 L 150.73828 171.92188 C 155.03768 165.87138 153.38775 157.23441 147.24805 153.10742 L 147.24609 153.10742 C 144.9437 151.56 142.29421 150.79424 139.69922 150.76758 z M 256.26953 150.76758 C 251.94483 150.72328 247.61959 152.72121 244.93164 156.50391 C 240.67661 162.4874 231.40686 166.98436 220.92969 166.98438 C 210.81553 166.98438 201.264 162.46367 196.41211 156.12305 C 191.9039 150.22715 183.4159 149.03846 177.41797 153.37695 C 171.42122 157.7139 170.08407 166.40846 174.59375 172.30273 C 184.99751 185.90168 202.5797 193.87695 220.92969 193.87695 C 239.74466 193.87695 257.42475 185.83011 267.30859 171.92383 C 271.61046 165.8721 269.9618 157.2315 263.81836 153.10547 C 261.51523 151.55794 258.86456 150.79424 256.26953 150.76758 z M 80.544922 340.25586 C 73.165919 340.25586 66.888672 346.2535 66.888672 353.70117 C 66.888672 361.14884 73.165919 367.14648 80.544922 367.14648 C 87.923923 367.14648 94.201172 361.14885 94.201172 353.70117 C 94.201172 346.25349 87.923923 340.25586 80.544922 340.25586 z " />
</symbol>
- <symbol id="History" viewBox="0 0 400 480">
+ <symbol id="About" viewBox="0 0 400 480">
<path d="M 201.42969 2.5429688 C 134.28965 2.5429688 79.700254 56.317616 78.046875 123.25781 L 40.9375 123.25781 L 96.5 185.1582 L 152.04883 123.25781 L 108.91797 123.25781 C 110.55674 73.405227 151.32302 33.490234 201.42969 33.490234 C 252.56756 33.490234 294.0293 75.071144 294.0293 126.35547 C 294.0293 177.63792 252.56756 219.20117 201.42969 219.20117 C 180.92583 219.20117 161.9898 212.50853 146.64844 201.19922 L 125.41016 223.9082 C 136.07838 232.2755 148.15436 238.92345 161.2207 243.43945 L 132.69141 243.43945 C 59.614623 243.43945 0 297.36077 0 363.45898 L 0 462.60742 C 0 471.30515 9.6145766 480 19.230469 480 L 380.76758 480 C 392.30697 480 400 473.0447 400 462.60742 L 400 363.45898 C 400 297.36077 340.38418 243.43945 267.30664 243.43945 L 241.6582 243.43945 C 290.09009 226.70447 324.88477 180.60186 324.88477 126.35547 C 324.88477 57.968815 269.61679 2.5429687 201.42969 2.5429688 z M 190.45703 59.912109 L 190.45703 130.73438 L 235.85547 176.10352 L 250.79688 161.1543 L 211.60547 121.97656 L 211.60547 59.912109 L 190.45703 59.912109 z M 132.69141 278.22852 L 269.23047 278.22852 C 321.15249 278.22852 363.46094 316.4958 363.46094 363.45898 L 363.46094 445.21094 L 309.61523 445.21094 L 309.61523 398.24805 C 309.61523 387.81077 301.92217 380.85547 290.38281 380.85547 C 278.846 380.85547 271.1543 387.81077 271.1543 398.24805 L 271.1543 445.21094 L 128.8457 445.21094 L 128.8457 398.24805 C 128.8457 387.81077 121.15357 380.85547 109.61523 380.85547 C 98.077139 380.85547 90.382812 387.81077 90.382812 398.24805 L 90.382812 445.21094 L 38.460938 445.21094 L 38.460938 363.45898 C 38.460938 316.4958 80.768589 278.22852 132.69141 278.22852 z " />
</symbol>
<symbol id="Cyber Civics" viewBox="0 0 400 480">
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg">
- <symbol id="Git" viewBox="0 0 122.52 122.52">
- <g transform="matrix(1.3333333,0,0,-1.3333333,0,122.52)">
- <g transform="scale(0.1)">
- <path d="M 901.543,500.352 500.352,901.527 c -23.094,23.11 -60.567,23.11 -83.692,0 L 333.359,818.211 439.031,712.535 c 24.563,8.293 52.727,2.727 72.297,-16.847 19.688,-19.696 25.203,-48.102 16.699,-72.75 L 629.883,521.094 c 24.648,8.496 53.066,3.004 72.754,-16.711 27.5,-27.492 27.5,-72.059 0,-99.574 -27.52,-27.516 -72.078,-27.516 -99.61,0 -20.683,20.703 -25.8,51.097 -15.312,76.582 l -95,94.992 V 326.414 c 6.699,-3.32 13.027,-7.742 18.613,-13.312 27.5,-27.497 27.5,-72.059 0,-99.598 -27.5,-27.488 -72.09,-27.488 -99.57,0 -27.5,27.539 -27.5,72.101 0,99.598 6.797,6.789 14.668,11.925 23.066,15.363 v 252.281 c -8.398,3.438 -16.25,8.531 -23.066,15.367 -20.828,20.821 -25.84,51.395 -15.156,76.977 L 292.422,777.285 17.3242,502.211 c -23.10545,-23.129 -23.10545,-60.602 0,-83.711 L 418.535,17.3242 c 23.098,-23.10545 60.559,-23.10545 83.692,0 L 901.543,416.641 c 23.113,23.113 23.113,60.605 0,83.711"/>
- </g>
- </g>
- </symbol>
- <symbol id="Forth" viewBox="0 0 400 480" >
- <path d="m 326.00796,0 c -16.32061,0 -29.59812,14.2983 -29.59812,31.87363 0,6.14625 1.62907,11.8864 4.43838,16.75953 L 272.49215,67.93575 225.42524,67.54674 H 145.8166 L 0,304.28335 v 76.50521 h 152.51565 v 86.13454 h 72.90959 v -86.13454 c 15.50909,0.0836 31.85182,-0.0799 47.0516,-0.0577 l 25.76991,50.62088 c -2.81543,4.87688 -4.44734,10.62396 -4.44734,16.77603 0,17.57514 13.27751,31.87225 29.59811,31.87225 16.32057,0 29.59681,-14.29711 29.59681,-31.87225 0,-17.57524 -13.2775,-31.87225 -29.59811,-31.87225 -4.13952,0 -8.08306,0.92324 -11.66459,2.58431 l -26.46685,-51.99002 c -1.52788,-3.00187 -4.45373,-4.86894 -7.63219,-4.86894 h -9.95791 V 331.886 h 53.35493 l 23.21819,25.00046 c -2.19386,4.44937 -3.44272,9.51571 -3.44272,14.89414 0,17.57524 13.2775,31.875 29.59811,31.875 16.32056,0 29.59681,-14.29976 29.59681,-31.875 0,-17.57533 -13.27625,-31.87087 -29.59681,-31.87087 -5.00056,0 -9.71352,1.34614 -13.8487,3.71426 l -25.76095,-27.74146 c -1.63322,-1.75782 -3.8465,-2.74652 -6.15528,-2.74652 h -56.96358 v -0.0248 H 225.42524 V 167.18978 l 99.21302,-0.29416 c 2.30878,0 4.52206,-0.98871 6.15528,-2.74653 l 25.76095,-27.74284 c 4.13518,2.36812 8.84814,3.71563 13.8487,3.71563 C 386.72375,140.12188 400,125.82359 400,108.24825 400,90.67293 386.72375,76.376 370.40319,76.376 c -16.32061,0 -29.59811,14.29693 -29.59811,31.87225 0,5.37939 1.24928,10.4489 3.44398,14.89829 l -23.21819,24.99908 h -95.25459 c -0.1165,-0.0717 -0.23431,-0.13912 -0.35104,-0.21032 V 86.68576 h 52.20483 c 3.17062,0 7.88656,-1.85546 10.23492,-4.84421 L 314.3191,61.15194 c 3.58848,1.66688 7.53883,2.59531 11.68886,2.59531 16.32056,0 29.59807,-14.2983 29.59807,-31.87363 C 355.60603,14.2983 342.32852,0 326.00796,0 Z m 0,18.75 c 6.72078,0 12.18668,5.88706 12.18668,13.12363 0,7.23751 -5.4659,13.12362 -12.18668,13.12362 -6.71995,0 -12.18674,-5.88611 -12.18674,-13.12362 0,-7.23657 5.46679,-13.12363 12.18674,-13.12363 z m 44.39523,76.37464 c 6.72079,0 12.18669,5.88475 12.18669,13.12225 0,7.2375 -5.4659,13.12499 -12.18669,13.12499 -6.71994,0 -12.18799,-5.88749 -12.18799,-13.12499 0,-7.2375 5.46805,-13.12225 12.18799,-13.12225 z m -217.88754,60.1622 v 157.8244 H 55.390955 Z m 217.88624,52.98936 c -13.29189,0 -24.56236,9.4838 -28.2884,22.49725 h -75.35408 c -4.80729,0 -8.70569,4.19719 -8.70569,9.375 0,5.17688 3.8984,9.37501 8.70569,9.37501 h 75.35408 c 3.72604,13.01344 14.99651,22.49724 28.2884,22.49724 16.3206,0 29.59811,-14.29786 29.59811,-31.87225 0,-17.57532 -13.27751,-31.87225 -29.59811,-31.87225 z m 0,18.74726 c 6.72083,0 12.18799,5.88748 12.18799,13.12499 0,7.23657 -5.46805,13.12501 -12.18799,13.12501 -6.71995,0 -12.18669,-5.88844 -12.18669,-13.12501 0,-7.23751 5.46674,-13.12499 12.18669,-13.12499 z m 0,131.63489 c 6.72078,0 12.18668,5.88611 12.18668,13.12362 0,7.23751 -5.46674,13.125 -12.18668,13.125 -6.71995,0 -12.18795,-5.88749 -12.18795,-13.125 0,-7.23751 5.468,-13.12362 12.18795,-13.12362 z m -47.00693,76.34438 c 6.72078,0 12.18668,5.88825 12.18668,13.12501 0,7.23741 -5.46674,13.125 -12.18668,13.125 -6.71995,0 -12.18669,-5.88759 -12.18669,-13.125 0,-7.23676 5.46674,-13.12501 12.18669,-13.12501 z" />
- </symbol>
- <symbol id="Home" viewBox="0 0 400 480">
- <path d="M 96.71781,430 C 73.90667,430 55.411291,411.13206 55.411291,387.85969 v -99.18521 c 0,-3.05614 1.190989,-5.98875 3.296363,-8.13256 L 192.03729,144.55833 c 4.39143,-4.48948 11.52023,-4.48948 15.92377,0 l 133.3174,135.98359 c 2.11245,2.14381 3.29538,5.07642 3.29538,8.13256 v 99.18521 C 344.57384,411.13206 326.07955,430 303.26851,430 H 237.25363 V 325.70329 H 162.72757 V 430 Z M 22.930179,261.66369 c -5.871458,0 -11.744084,-2.28657 -16.2212373,-6.85995 -8.9452556,-9.13031 -8.9452556,-23.93219 0,-33.07898 L 158.28865,67.085006 c 22.26401,-22.753181 61.06628,-22.793394 83.38479,-0.04022 L 286.81211,113.0959 V 88.43168 c 0,-12.915468 10.25847,-23.385557 22.90997,-23.385557 12.68378,0 22.94211,10.470089 22.94211,23.385557 v 71.44637 l 60.62028,61.84671 c 8.95344,9.14679 8.95336,23.94867 0.004,33.07898 -4.48227,4.57288 -10.35334,6.84949 -16.22339,6.84949 -5.85894,0 -11.7179,-2.27661 -16.21632,-6.84949 L 209.2618,100.1485 c -4.91222,-4.9961 -13.61335,-4.99604 -18.55385,0.0155 L 39.144621,254.8037 c -4.47284,4.57337 -10.343088,6.85995 -16.214545,6.85995 z" />
- </symbol>
- <symbol id="CV" viewBox="0 0 400 480">
- <path d="M 15.726562 0 C 6.8376238 0 1.1842379e-15 7.2621219 0 16.701172 L 0 463.29883 C 0 472.01355 6.8376238 480 15.726562 480 L 384.27344 480 C 392.47829 480 400 472.7399 400 463.29883 L 400 16.701172 C 399.31619 7.2621219 392.47851 -2.3684758e-15 383.58984 0 L 15.726562 0 z M 15.726562 14.523438 L 384.27344 14.523438 C 384.95725 14.523438 386.32422 15.249682 386.32422 16.701172 L 386.32422 462.57227 L 385.64062 462.57227 C 385.64062 463.29745 384.95747 464.75 383.58984 464.75 L 15.726562 464.75 C 15.042931 464.75 13.675781 464.02387 13.675781 462.57227 L 13.675781 16.701172 C 13.675781 15.249682 14.359026 14.523437 15.726562 14.523438 z M 116.58984 30.53125 C 86.584362 30.45475 62.436532 60.124624 69.744141 94.402344 C 73.846662 112.55712 86.837578 127.80765 103.93164 132.16406 L 92.992188 132.16406 C 67.009365 132.16406 45.8125 154.67279 45.8125 182.26758 L 45.8125 223.66211 C 45.8125 227.29325 49.231415 230.92383 52.650391 230.92383 L 181.19531 230.92383 C 185.29818 230.92383 188.03516 228.0195 188.03516 223.66211 L 188.03516 182.26758 C 188.03516 154.67279 166.83857 132.16406 140.85547 132.16406 L 129.91602 132.16406 C 154.53148 124.90273 170.25693 98.034243 164.10352 70.439453 C 160.00064 50.833183 145.64062 35.581352 127.86328 31.951172 C 124.04919 30.998002 120.27472 30.54063 116.58984 30.53125 z M 116.7793 44.876953 C 119.49261 44.835153 122.28701 45.112707 125.12891 45.748047 C 138.12046 48.652977 148.37608 60.27259 151.11133 73.34375 C 156.58184 100.93854 134.01518 124.17507 108.7168 118.36523 C 96.409066 115.46129 85.469362 104.56984 82.734375 90.771484 C 77.86261 66.842544 94.685188 45.217573 116.7793 44.876953 z M 218.80273 107.47266 C 214.70076 107.47266 211.96484 110.37896 211.96484 114.73633 C 211.96484 119.09274 215.38366 121.99805 218.80273 121.99805 L 245.4707 121.99805 C 249.57358 121.99805 252.30664 119.09274 252.30664 114.73633 C 252.30664 110.37896 249.57358 107.47266 245.4707 107.47266 L 218.80273 107.47266 z M 278.97266 107.47266 C 274.86978 107.47266 272.13672 110.37896 272.13672 114.73633 C 272.13672 119.09274 274.86978 121.99805 278.97266 121.99805 L 356.92188 121.99805 C 361.02476 121.99805 363.76172 119.09274 363.76172 114.73633 C 363.76172 110.37896 361.02475 107.47266 356.92188 107.47266 L 278.97266 107.47266 z M 218.80273 144.50781 C 214.70076 144.50781 211.96484 147.41216 211.96484 151.76953 C 211.96484 156.12595 215.38366 159.03125 218.80273 159.03125 L 297.43555 159.03125 C 301.53843 159.03125 304.27344 156.12595 304.27344 151.76953 C 304.27344 147.41216 301.53843 144.50781 297.43555 144.50781 L 218.80273 144.50781 z M 330.25586 144.50781 C 326.15298 144.50781 323.41797 147.41216 323.41797 151.76953 C 323.41797 156.12595 326.15298 159.03125 330.25586 159.03125 L 356.92188 159.03125 C 361.02476 159.03125 363.76172 156.12595 363.76172 151.76953 C 363.76172 147.41216 361.02475 144.50781 356.92188 144.50781 L 330.25586 144.50781 z M 92.992188 146.68555 L 141.53906 146.68555 C 160.00021 146.68555 175.04297 162.66131 175.04297 182.26758 L 175.04297 216.39844 L 155.89648 216.39844 L 155.89648 196.79297 C 155.89648 192.4356 153.16343 189.53125 149.06055 189.53125 C 144.95857 189.53125 142.22266 192.4356 142.22266 196.79297 L 142.22266 216.39844 L 91.623047 216.39844 L 91.623047 196.79297 C 91.623047 192.4356 88.887676 189.53125 84.785156 189.53125 C 80.682732 189.53125 77.949219 192.4356 77.949219 196.79297 L 77.949219 216.39844 L 59.486328 216.39844 L 59.486328 182.26758 C 59.486328 162.66131 74.530766 146.68555 92.992188 146.68555 z M 218.80273 180.0918 C 214.70076 180.0918 211.96484 182.99419 211.96484 187.35156 C 211.96484 190.98271 215.38366 194.61328 218.80273 194.61328 L 245.4707 194.61328 C 249.57358 194.61328 252.30664 191.70797 252.30664 187.35156 C 252.30664 182.99419 249.57358 180.0918 245.4707 180.0918 L 218.80273 180.0918 z M 278.97266 180.0918 C 274.86978 180.0918 272.13672 182.99419 272.13672 187.35156 C 272.13672 191.70797 274.86978 194.61328 278.97266 194.61328 L 356.92188 194.61328 C 361.02476 194.61328 363.76172 191.70797 363.76172 187.35156 C 363.76172 182.99419 361.02475 180.0918 356.92188 180.0918 L 278.97266 180.0918 z M 218.80273 213.49609 C 214.70076 213.49609 211.96484 216.39848 211.96484 220.75586 C 211.96484 224.38701 215.38366 228.01758 218.80273 228.01758 L 297.43555 228.01758 C 301.53843 228.01758 304.27344 225.11323 304.27344 220.75586 C 304.27344 216.39848 301.53843 213.49609 297.43555 213.49609 L 218.80273 213.49609 z M 330.25586 213.49609 C 326.15298 213.49609 323.41797 216.39848 323.41797 220.75586 C 323.41797 225.11323 326.15298 228.01758 330.25586 228.01758 L 356.92188 228.01758 C 361.02476 228.01758 363.76172 225.11323 363.76172 220.75586 C 363.76172 216.39848 361.02475 213.49609 356.92188 213.49609 L 330.25586 213.49609 z M 157.49805 262.85742 C 140.88307 262.85742 127.72039 267.51255 118.00977 276.82227 C 108.29915 286.08747 103.44531 298.69381 103.44531 314.64062 C 103.44531 330.54289 108.29915 343.14923 118.00977 352.45898 C 127.72039 361.72414 140.88307 366.35547 157.49805 366.35547 C 163.06606 366.35547 168.41257 365.7316 173.53516 364.48438 C 178.65772 363.23714 183.57911 361.38939 188.30078 358.93945 L 188.30078 338.29297 C 183.53457 341.54471 178.83571 343.92886 174.20312 345.44336 C 169.57053 346.95786 164.69289 347.71484 159.57031 347.71484 C 150.39423 347.71484 143.17809 344.77434 137.92188 338.89453 C 132.66567 333.0147 130.03711 324.93034 130.03711 314.64062 C 130.03711 304.3064 132.66568 296.19819 137.92188 290.31836 C 143.17809 284.43853 150.39423 281.49805 159.57031 281.49805 C 164.69289 281.49805 169.57053 282.25697 174.20312 283.77148 C 178.8357 285.28598 183.53457 287.66819 188.30078 290.91992 L 188.30078 270.27344 C 183.57911 267.82352 178.65772 265.97575 173.53516 264.72852 C 168.41257 263.48129 163.06606 262.85742 157.49805 262.85742 z M 197.78906 264.66211 L 234.73828 364.41797 L 265.40625 364.41797 L 302.35742 264.66211 L 276.5 264.66211 L 250.10547 338.29297 L 223.64648 264.66211 L 197.78906 264.66211 z M 44.443359 400.12305 C 40.340841 400.12305 37.605469 403.02544 37.605469 407.38281 C 37.605469 411.74009 40.340841 414.64453 44.443359 414.64453 L 350.76953 414.64453 C 354.8715 414.64453 357.60547 411.74009 357.60547 407.38281 C 357.60547 403.02544 354.18859 400.12305 350.76953 400.12305 L 44.443359 400.12305 z " />
- </symbol>
- <symbol id="Blog" viewBox="0 0 400 480">
- <path d="M 200 20 C 89.866039 20 0 107.26516 0 214.61719 C 0 261.68638 17.509248 307.12664 49.255859 342.52539 C 54.207519 348.04625 62.755537 348.60327 68.404297 343.81445 C 74.052877 339.02561 74.680457 330.24728 69.730469 324.72656 L 69.730469 324.72461 C 42.358001 294.20213 27.310547 255.11307 27.310547 214.61719 C 27.310547 122.17276 104.6329 46.892578 200 46.892578 C 295.36706 46.892578 372.68648 122.17387 372.68555 214.61914 C 372.68555 258.83924 355.19141 300.46783 323.2832 332.0625 C 294.69898 360.36435 257.51121 377.45372 217.33594 381.33008 L 217.33594 334.1875 L 233.77734 334.1875 C 241.15554 334.1875 247.43359 328.19 247.43359 320.74219 L 247.43359 299.20508 C 247.43359 252.70922 208.48831 214.95314 160.94727 214.95312 C 113.40619 214.95312 74.464844 252.70933 74.464844 299.20508 L 74.464844 320.74219 C 74.464844 328.19 80.742902 334.1875 88.121094 334.1875 L 104.5625 334.1875 L 104.5625 412.80664 C 104.5625 427.8951 117.2231 440.09961 132.46094 440.09961 C 133.04043 440.09961 133.59777 440.00321 134.16992 439.96875 C 137.46819 451.50851 148.26425 460 160.94727 460 C 176.18572 460 188.84961 447.79368 188.84961 432.70508 L 188.84961 427.77148 C 189.04757 427.77548 189.23675 427.81641 189.43555 427.81641 C 201.89891 427.81641 212.62447 419.69609 216.12305 408.44141 C 264.03052 404.72575 308.64647 384.69461 342.65234 351.02344 C 379.58379 314.45733 400 265.93746 400 214.61719 C 400 107.26515 310.1348 20 200 20 z M 139.69922 150.76758 C 135.37457 150.72318 131.0503 152.7206 128.36133 156.50195 L 128.35938 156.50195 C 124.10622 162.4857 114.83389 166.98437 104.35742 166.98438 C 94.241717 166.98438 84.689448 162.46412 79.837891 156.12305 C 75.329704 150.22925 66.843157 149.03721 60.845703 153.375 C 54.848942 157.71194 53.513759 166.40846 58.023438 172.30273 C 68.427279 185.90175 86.008088 193.87474 104.35742 193.87695 C 123.17084 193.87695 140.85089 185.82952 150.73633 171.92383 L 150.73828 171.92383 L 150.73828 171.92188 C 155.03768 165.87138 153.38775 157.23441 147.24805 153.10742 L 147.24609 153.10742 C 144.9437 151.56 142.29421 150.79424 139.69922 150.76758 z M 256.26953 150.76758 C 251.94483 150.72328 247.61959 152.72121 244.93164 156.50391 C 240.67661 162.4874 231.40686 166.98436 220.92969 166.98438 C 210.81553 166.98438 201.264 162.46367 196.41211 156.12305 C 191.9039 150.22715 183.4159 149.03846 177.41797 153.37695 C 171.42122 157.7139 170.08407 166.40846 174.59375 172.30273 C 184.99751 185.90168 202.5797 193.87695 220.92969 193.87695 C 239.74466 193.87695 257.42475 185.83011 267.30859 171.92383 C 271.61046 165.8721 269.9618 157.2315 263.81836 153.10547 C 261.51523 151.55794 258.86456 150.79424 256.26953 150.76758 z M 80.544922 340.25586 C 73.165919 340.25586 66.888672 346.2535 66.888672 353.70117 C 66.888672 361.14884 73.165919 367.14648 80.544922 367.14648 C 87.923923 367.14648 94.201172 361.14885 94.201172 353.70117 C 94.201172 346.25349 87.923923 340.25586 80.544922 340.25586 z " />
- </symbol>
- <symbol id="History" viewBox="0 0 400 480">
- <path d="M 201.42969 2.5429688 C 134.28965 2.5429688 79.700254 56.317616 78.046875 123.25781 L 40.9375 123.25781 L 96.5 185.1582 L 152.04883 123.25781 L 108.91797 123.25781 C 110.55674 73.405227 151.32302 33.490234 201.42969 33.490234 C 252.56756 33.490234 294.0293 75.071144 294.0293 126.35547 C 294.0293 177.63792 252.56756 219.20117 201.42969 219.20117 C 180.92583 219.20117 161.9898 212.50853 146.64844 201.19922 L 125.41016 223.9082 C 136.07838 232.2755 148.15436 238.92345 161.2207 243.43945 L 132.69141 243.43945 C 59.614623 243.43945 0 297.36077 0 363.45898 L 0 462.60742 C 0 471.30515 9.6145766 480 19.230469 480 L 380.76758 480 C 392.30697 480 400 473.0447 400 462.60742 L 400 363.45898 C 400 297.36077 340.38418 243.43945 267.30664 243.43945 L 241.6582 243.43945 C 290.09009 226.70447 324.88477 180.60186 324.88477 126.35547 C 324.88477 57.968815 269.61679 2.5429687 201.42969 2.5429688 z M 190.45703 59.912109 L 190.45703 130.73438 L 235.85547 176.10352 L 250.79688 161.1543 L 211.60547 121.97656 L 211.60547 59.912109 L 190.45703 59.912109 z M 132.69141 278.22852 L 269.23047 278.22852 C 321.15249 278.22852 363.46094 316.4958 363.46094 363.45898 L 363.46094 445.21094 L 309.61523 445.21094 L 309.61523 398.24805 C 309.61523 387.81077 301.92217 380.85547 290.38281 380.85547 C 278.846 380.85547 271.1543 387.81077 271.1543 398.24805 L 271.1543 445.21094 L 128.8457 445.21094 L 128.8457 398.24805 C 128.8457 387.81077 121.15357 380.85547 109.61523 380.85547 C 98.077139 380.85547 90.382812 387.81077 90.382812 398.24805 L 90.382812 445.21094 L 38.460938 445.21094 L 38.460938 363.45898 C 38.460938 316.4958 80.768589 278.22852 132.69141 278.22852 z " />
- </symbol>
-</svg>
+++ /dev/null
-/**
-* @file main.js
-* @author Ken Grimes
-* @license AGPL-3.0
-* @copyright 2018 - Ken Grimes
-* @summmary Script for populating text to summary box on svg:hover
-*/
-'use strict'
-window.onload = () => {
- const header = document.body.getElementsByTagName('header').item(0)
- const nav = document.body.getElementsByTagName('nav').item(0)
- const main = document.body.getElementsByTagName('main').item(0)
- const navAnchors = Array.from(nav.getElementsByTagName('div').item(0).getElementsByTagName('a'))
- const pageDisplay = nav.getElementsByTagName('footer').item(0)
- const currentPageName = `${pageDisplay.innerHTML}`
- const updateNav = () => navAnchors.forEach((a) => {
- const summary = a.getElementsByTagName('summary').item(0).innerHTML
- const svg = a.getElementsByTagName('svg').item(0)
- a.addEventListener('mouseover', () => pageDisplay.innerHTML = summary)
- a.addEventListener('mousedown', () => pageDisplay.innerHTML = summary)
- a.addEventListener('mouseout', () => pageDisplay.innerHTML = currentPageName)
- })
- updateNav()
-
- let oldScrollY = window.scrollY
- const _downDelay = 15
- let downDelay = 0
- const _upDelay = 5
- let upDelay = _upDelay
- const navUp = () => nav.style.top = Math.min(parseInt(nav.style.top,10) + (oldScrollY - window.scrollY), 0) + 'px'
- const navDown = () => nav.style.top = Math.max(parseInt(nav.style.top,10) - (window.scrollY - oldScrollY), -nav.offsetHeight) + 'px'
- nav.style.top = 0 + 'px'
- window.onscroll = () => {
- if (window.matchMedia("(orientation: portrait)").matches) {
- if (window.scrollY < oldScrollY) /* up */ {
- if (upDelay-- <= 0)
- downDelay = _downDelay
- navUp()
- }
- else {
- upDelay = _upDelay
- if(downDelay-- <= 0)
- navDown()
- else
- navUp()
- }
- oldScrollY = window.scrollY
- }
- }
-}
-
-const resizeIFrame = (iframe) => {
- iframe.style.height = 0
- iframe.style.height = (iframe.contentWindow.document.body.scrollHeight * 1.2) + 'px';
-}