1
0

update gh-actions

This commit is contained in:
2024-08-12 18:49:53 +09:00
parent cb90bcca91
commit 8c5632c8df
68 changed files with 387 additions and 477 deletions

View File

@@ -10,3 +10,29 @@ function blog_list_open() {
}
}
function replace() {
const link = document.getElementById('planet');
const date = new Date();
const durl = 'https://card.syui.ai/planet';
let url;
let u = date.getSeconds().toString().substr(-1);
console.log(u);
switch (u) {
case '0':
url = durl + "?ms=0&g=sun";
break;
case '1':
url = durl + "?ms=0&g=galaxy";
break;
case '2':
url = durl + "?ms=0&g=neutron";
break;
case '3':
url = durl + "?ms=0&g=earth";
break;
default:
url = durl + "?ms=0&g=moon";
}
link.setAttribute('src', url);
}
replace();