commit c4c39004480ebda73cc0fdf46ab35569bbad16ab Author: lzzfnc Date: Mon Nov 1 21:49:19 2021 +0100 init 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); + });