Currently in the process of creating a compact website where users can input an anagram and receive all potential words that can be formed from it. Additionally, upon receiving these words, there is an option to click on one for its definitions.
The site operates smoothly when utilizing live server locally; however, encountering issues arise once the repository is deployed using GitHub Pages.
Locally, when entering a word (for example, "acres"), the site accurately displays all possible words generated by the anagram. Conversely, GitHub Pages fails to produce the same results. The script.js file contains all logic necessary for finding viable words by reading a dictionary.txt file and sifting through words to identify those formable by the anagram. Moreover, this JavaScript file manages retrieving word definitions from an external dictionary API and integrating the data into the main HTML file.
Displayed below is the script.js file. Apologies if it appears disorganized! Admittedly, I am relatively new to coding JavaScript for frontend development. For reference, the index.html and style.css files are provided, as potential issues may lie within them.
[Your rewritten content here]
... [Additional code snippets included] ...
Access the GitHub Pages link here.
I have attached screenshots displaying the differing outcomes when inputting "acres" as the anagram:
Find the direct link to the GitHub repository here.
An oversight seems to prevent identical functionality between the local and deployed versions. Can anyone pinpoint what might be overlooked?