rebuilding Sat Sep 10 06:53:01 PM CST 2022

This commit is contained in:
James Feng Cao 2022-09-10 18:53:02 +08:00
parent b6eb718e75
commit e82c754b00
3 changed files with 20 additions and 9 deletions

View file

@ -90,14 +90,16 @@
};
//dictinput.onClick = {(e)=>{e.target.value="";}};
let filenames = location.search.substring(6);
if(filenames.length>0){
dictinput.setAttribute('accept',filenames);
setTimeout(()=>{location.href="i:5fdictinput.click();"},100);
setTimeout(()=>{location.href="i:5fdictinput.click();"},300);
setTimeout(()=>{dictinput.dispatchEvent(new Event('change'));dictinput.removeAttribute('accept')},500);
window.onload = function() {
let filenames = location.search.substring(6);
if(filenames.length>0){
dictinput.setAttribute('accept',filenames);
location.href="i:5fdictinput.click()";
//setTimeout(()=>{location.href="i:5fdictinput.click();"},100);
//setTimeout(()=>{location.href="i:5fdictinput.click();"},300);
setTimeout(()=>{dictinput.dispatchEvent(new Event('change'));dictinput.removeAttribute('accept')},500);
}
}
</script>
</body>
</html>