~johanvandegriff/games.johanv.xyz

ref: f5159cba329536f24261a58dc25038d87913d0c8 games.johanv.xyz/templates/hornswiggle.html -rw-r--r-- 1.0 KiB
f5159cbaJohan Vandegriff more hornswiggle words 7 months ago
                                                                                
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
{% include 'header.html' %}

<script>
function newItem() {
    var list = document.getElementById("list");

    let xhr = new XMLHttpRequest();
    xhr.open('get', "/hornswiggle_api");
    xhr.send();

    xhr.onload = function () {
        var newItem = document.createElement("li");
        newItem.textContent = xhr.response;
        list.appendChild(newItem);
    };
}
</script>

<h1>Dr. Hornswiggle's Trancendental Ideations Generator</h1>
<input type="submit" value="Additional Ideation" class="purpleButton" onclick="newItem()">

<ul id="list">
    <li>{{ item }}</li>
</ul>

<p>You can see the source code for this... thing (under the <a target="_blank" href="https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)">AGPLv3 license</a>) on <a target="_blank" href="https://git.sr.ht/~johanvandegriff/games.johanv.xyz/tree/master/item/hornswiggle.py">sourcehut</a> or <a target="_blank" href="https://github.com/johanvandegriff/games.johanv.xyz/blob/master/hornswiggle.py">github</a>.</p>

{% include 'footer.html' %}