aboutsummaryrefslogtreecommitdiffgithub
path: root/tools/share/templates/figlet.html
blob: 1d3f4b3347e61f6f40c6ee65c81187d01e8763c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
  <head>
    <title>figlet frontend « austin adams</title>
    <style type="text/css">
      form {
        display: block;
        width: 256px;
        margin: 0 auto;
      }
      form pre {
        text-align: center;
      }
      body > pre {
        display: block;
        width: 75%;
        text-align: center;
        padding: 8px 0;
        margin: 16px auto 0 auto;

        border: 1px solid #c9c9c9;
        background-color: #f0f0f0;
        border-radius: 2px;
      }

      /* idiotic defaults */
      form input {
        padding: 0;
        margin: 0;
      }

      form input[type="text"] {
        width: 210px;
        margin-right: 5px;
      }

      form input[type="submit"] {
        width: 35px;
      }
    </style>
  </head>
  <body>
    <form method="post" action="">
      <pre>
  __ _       _      _   
 / _(_) __ _| | ___| |_ 
| |_| |/ _` | |/ _ \ __|
|  _| | (_| | |  __/ |_ 
|_| |_|\__, |_|\___|\__|
       |___/            <a href="http://www.figlet.org/">?</a></pre>
      <input placeholder="some text" name="text" type="text" value="{{ .Text }}"><input type="submit" value="go">
      <select name="font">{{ range $category, $fonts := .Fonts }}<optgroup label="{{ $category }}">{{ range $fonts }}<option{{ if eq $.Font . }} selected{{ end }}>{{ . }}</option>{{ end }}</optgroup>{{ end }}</select>
    </form>
    {{ if .Text }}<pre>{{ .Result }}</pre>{{ end }}
  </body>
</html>
<!-- vim: set ts=2 sw=2 et : -->