11 lines
289 B
JavaScript
11 lines
289 B
JavaScript
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;
|
|
}
|
|
}
|