dynamic page

master
km0 3 years ago
parent 093d8436f1
commit 767d1ef901

@ -1,5 +1,5 @@
let endpoint =
"https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=parse&format=json&origin=*&section=1&page=Padliography&prop=text";
let page = "Padliography";
let endpoint = `https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=parse&format=json&origin=*&section=1&page=${page}&prop=text`;
const container = document.getElementById("wiki-contents");
const filtersContainer = document.getElementById("filters-container");

Loading…
Cancel
Save