From c4c39004480ebda73cc0fdf46ab35569bbad16ab Mon Sep 17 00:00:00 2001 From: lzzfnc Date: Mon, 1 Nov 2021 21:49:19 +0100 Subject: [PATCH] init --- index.html | 13 +++++++++++++ script.js | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 index.html create mode 100644 script.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..c0e4719 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Document + + + + Hello + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..1e2ac55 --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ +let page = "Padliography"; +let endpoint = `https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=parse&format=json&origin=*&page=${page}&prop=text`; + +fetch(endpoint) + .then((response) => response.json()) + .then((data) => { + console.log(data); + });