rebuilding site Wed Apr 6 05:13:22 PM CST 2022

This commit is contained in:
James Feng Cao 2022-04-06 17:13:22 +08:00
parent 0d44352aa7
commit c2044dfba0

View file

@ -77,7 +77,10 @@ function moveDown(ta){
ta.focus();
}
function onSave(fn){
function save(fn){
let u8=new TextEncoder().encode(textarea.value);let r='';for(let i=0;i<u8.byteLength;i++)r+=String.fromCharCode(u8[i]);location.href='i:0l'+fn+':'+btoa(r);
}
function onSave(){
save(location.pathname);
}