master
Camilo G 2 years ago
parent 4c9ddf9bd3
commit 64a871f40f

@ -45,6 +45,7 @@
<button id="form" class="btn form-s" onclick="filterSelection('form')">form→ <span class='symbol form-s'>Y</span> </button> <button id="form" class="btn form-s" onclick="filterSelection('form')">form→ <span class='symbol form-s'>Y</span> </button>
</div> </div>
<div id="words" class="words"> <div id="words" class="words">
</div> </div>
</div> </div>
</body> </body>
@ -101,6 +102,6 @@ form[i].innerHTML += "<span class='symbol form-s'>Y</span>";
</script> </script>
<script type="text/javascript" src="glossary.js"></script> <!-- <script type="text/javascript" src="glossary.js"></script> -->
<script src="main.js"></script> <script src="main.js"></script>
</html> </html>

@ -1,6 +1,8 @@
/////// Make the website ////// /////// Make the website //////
fetch("glossary.json").then(response => response.json()).then(data => glossary = data).then(()=>{
function voices(voices) { function voices(voices) {
return ` return `
${voices.map((voice) => `<p>${voice}</p>`).join("")} ${voices.map((voice) => `<p>${voice}</p>`).join("")}
@ -25,6 +27,13 @@ function wordTemplate(word) {
document.getElementById("words").innerHTML = `${glossary.map(wordTemplate).join("")}` document.getElementById("words").innerHTML = `${glossary.map(wordTemplate).join("")}`
console.log(glossary)
}); ///// END OF FETCH!!!!!!

Loading…
Cancel
Save