Files
cs2440/music/js/switch.js
T

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;
}
}