diff --git a/tagslice.js b/tagslice.js index 8c9ce07..d9ffe71 100644 --- a/tagslice.js +++ b/tagslice.js @@ -2,6 +2,12 @@ class TagSlice { constructor(container) { - container.innerText = 'test'; + let xhr = new XMLHttpRequest(); + xhr.open('GET', 'tagslice.json'); + xhr.responseType = 'json'; + xhr.onload = () => { + console.log(xhr.response); + }; + xhr.send(); } }