yeah we good for now
This commit is contained in:
parent
bf4e947853
commit
da877dd4f4
15 changed files with 151 additions and 49 deletions
26
script.js
26
script.js
|
|
@ -21,9 +21,25 @@ function getCookie(cname) {
|
|||
return "";
|
||||
};
|
||||
|
||||
async function show(content) {
|
||||
var cont = document.getElementById("content");
|
||||
let data = await fetch(content);
|
||||
let text = await data.text();
|
||||
cont.innerHTML = text;
|
||||
async function init() {
|
||||
var cont = document.getElementById("content");
|
||||
let data = await fetch("git.html");
|
||||
let text = await data.text();
|
||||
cont.innerHTML = text;
|
||||
};
|
||||
|
||||
async function show(content) {
|
||||
var cont = document.getElementById("content");
|
||||
cont.style.animationName = "shiftcontent";
|
||||
cont.style.animationDuration = "0.2s";
|
||||
let data = await fetch(content+".html");
|
||||
let text = await data.text();
|
||||
cont.innerHTML = text;
|
||||
await new Promise(r => setTimeout(r, 200));
|
||||
cont.style.animationName = "";
|
||||
};
|
||||
|
||||
|
||||
function initfedi(){
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue