implemented one-way switching of php via javascript.

This commit is contained in:
Joshua Ashton
2025-02-01 14:00:38 -07:00
parent a6a6831f39
commit c9ad259a65
9 changed files with 820 additions and 111 deletions
+10
View File
@@ -0,0 +1,10 @@
async function modeSwitch() {
const content = document.getElementById("content");
var response = await fetch('explore.php');
if (response.status === 200) {
let data = async () => { return await response.text() };
let text = await data();
content.innerHTML = text;
}
}