|
|
@ -19,6 +19,7 @@ let table;
|
|
|
|
fetch(endpoint)
|
|
|
|
fetch(endpoint)
|
|
|
|
.then((response) => response.json())
|
|
|
|
.then((response) => response.json())
|
|
|
|
.then((data) => {
|
|
|
|
.then((data) => {
|
|
|
|
|
|
|
|
// TODO: custom class in the table to call the element
|
|
|
|
// Create a new element to parse the response from the wiki and get an HTML table element out of it
|
|
|
|
// Create a new element to parse the response from the wiki and get an HTML table element out of it
|
|
|
|
let section = document.createElement("div");
|
|
|
|
let section = document.createElement("div");
|
|
|
|
section.innerHTML = data.parse.text["*"];
|
|
|
|
section.innerHTML = data.parse.text["*"];
|
|
|
|