all repos — poop.is @ a35e4e7410f3f80edefc82304d4ac207804ff4db

poop-themed link shortener

templates/index.html

 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
<!doctype html>
<html>
    <head>
        <style>
            p, pre, form {text-align: center; color: aliceblue;}
            body {background-color: #7A5901;}
        </style>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>poop.is: a shitty link shortener</title>
        <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><text y=%2226%22 font-size=%2226%22>💩<200d>⬛ </text></svg>">
    </head>
    
    <body>
        {{ if . }}
        <p>here's your shortened link, stinky:</p>
        <pre>{{ . }}</pre>
        {{ else }}
        <p>💩💩💩💩💩💩💩💩💩💩</p>
        <p>welcome to poop.is - a simple, shitty link shortener</p>
        <form method="POST">
            <label>please enter the link you want to shorten</label><br />
            <input type="text" name="url" size="60" required maxlength="10000"><br />
            <input type="submit">
        </form>
        <sub>made with <3 by <a href="https://j3s.sh">jes</a></sub>
        {{ end }}
    </body>
</html>