From 580ab0da9da86fd4801d5956b6aa2b4a8fd701ff Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 20 Dec 2022 15:28:59 +0100 Subject: [PATCH] added html --- call.html | 13 +++++++++++++ call.js | 3 +++ call.py | 4 +++- terms.json => terms.original.json | 0 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 call.html create mode 100644 call.js rename terms.json => terms.original.json (100%) diff --git a/call.html b/call.html new file mode 100644 index 0000000..dbced9a --- /dev/null +++ b/call.html @@ -0,0 +1,13 @@ + + + + + + XPUB call + + + +

Hello world!

+ + + diff --git a/call.js b/call.js new file mode 100644 index 0000000..5ae5953 --- /dev/null +++ b/call.js @@ -0,0 +1,3 @@ +fetch("terms.json") + .then(response => response.json()) + .then(terms => console.log("terms", terms)); diff --git a/call.py b/call.py index 3192aed..7bc8487 100755 --- a/call.py +++ b/call.py @@ -14,6 +14,8 @@ f = urlopen("https://pad.xpub.nl/p/XPUB-promo-terms/export/txt") terms = yaml.load(f) with open("terms.yaml", "w") as f: yaml.dump(terms, f) +with open("terms.json", "w") as f: + json.dump(terms, f, indent=2) def make_pub(): actor = random.choice(terms['actor']) @@ -51,7 +53,7 @@ call = ''' |/__\|/__\|/__\|/__\| Master of Arts in Fine Art and Design: Experimental Publishing -at the Piet Zwart Institute in Rotterdam (the Netherlands) +at the Piet Zwart Institute (Rotterdam, Netherlands /// diff --git a/terms.json b/terms.original.json similarity index 100% rename from terms.json rename to terms.original.json