mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Wed Apr 6 05:13:22 PM CST 2022
This commit is contained in:
parent
0d44352aa7
commit
c2044dfba0
1 changed files with 5 additions and 2 deletions
|
@ -77,7 +77,10 @@ function moveDown(ta){
|
||||||
ta.focus();
|
ta.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function save(fn){
|
||||||
function onSave(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);
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue