friendship with embed has ended, now innterhtml is my best friend

This commit is contained in:
martyTF 2026-06-17 19:06:13 +02:00
parent 93c19b1d81
commit bf4e947853
6 changed files with 38 additions and 237 deletions

View file

@ -21,7 +21,9 @@ function getCookie(cname) {
return "";
};
function show(content) {
async function show(content) {
var cont = document.getElementById("content");
cont.innerHTML="<embed src='" + content + ".html' id='content_embed'>";
let data = await fetch(content);
let text = await data.text();
cont.innerHTML = text;
};