move phrase responder to resource folder

This commit is contained in:
Tim Fry
2024-12-18 01:49:20 -04:00
parent 4a54fa745d
commit b24ea673bb
2 changed files with 206 additions and 1 deletions
@@ -1,3 +1,4 @@
// use an async function so page works without delays
document.addEventListener("DOMContentLoaded", async function () {
// Initialize the select options
const select = document.getElementById('phrase_detail_data_empty');
@@ -51,7 +52,7 @@ function remove_loading() {
async function fetch_data(command) {
try {
const response = await fetch('phrase_responder.php', {
const response = await fetch('resources/phrase_responder.php', {
method: 'POST', // or 'GET' depending on your requirement
headers: {
'Content-Type': 'application/json'