rebuilding site Wed Jul 27 08:45:19 PM CST 2022

This commit is contained in:
James Feng Cao 2022-07-27 20:45:20 +08:00
parent ac3c78e978
commit 358bb90db0
16 changed files with 165 additions and 107 deletions

View file

@ -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>