friendship with embed has ended, now innterhtml is my best friend
This commit is contained in:
parent
93c19b1d81
commit
bf4e947853
6 changed files with 38 additions and 237 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue