Interactive FAQ!

I have been working all day on this & is my first piece of shared code :smile:! It requires a JSON file in the following format:
{
“1”: “<faq answer 1>”,
“2”: “<faq answer 2>”,
“error”: “”
}

I used my github.io webpage for this! It is free and you can easily setup HTTPS for it!

Here is my blank test code for you to modify as needed!

$(eval const api=$(urlfetch json https://<your_website>/<yourJSONfile.json>); if ("$(1)" in api) { ${api["$(1)"]}; } else { ${api["error"]} })

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.