mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Wed Jul 27 08:45:19 PM CST 2022
This commit is contained in:
parent
ac3c78e978
commit
358bb90db0
16 changed files with 165 additions and 107 deletions
|
@ -79,11 +79,16 @@
|
|||
let word = location.hash.substring(6);
|
||||
let dictinput = document.getElementById('dictfile');
|
||||
let wordinput = document.getElementById('word');
|
||||
let btnLookup = document.getElementById('btnLookup');
|
||||
wordinput.value = word;
|
||||
{
|
||||
dictinput.setAttribute('accept',filenames);
|
||||
location.href="i:5fsetTimeout(()=>{dictinput.click()},20);setTimeout(()=>{document.getElementById('btnLookup').click();dictinput.removeAttribute('accept');},70)";
|
||||
location.href="i:5fsetTimeout(()=>{dictinput.click()},20);setTimeout(()=>{btnLookup.click();dictinput.removeAttribute('accept');},70)";
|
||||
}
|
||||
window.addEventListener('hashchange', function() {
|
||||
wordinput.value = location.hash.substring(6);
|
||||
btnLookup.click();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue