mirror of https://github.com/torappinfo/uweb.git
rebuilding site Wed Aug 3 04:57:06 PM CST 2022
This commit is contained in:
parent
3d731c7e4a
commit
ff9f26ebbc
|
@ -78,6 +78,8 @@
|
||||||
let dictinput = document.getElementById('dictfile');
|
let dictinput = document.getElementById('dictfile');
|
||||||
let wordinput = document.getElementById('word');
|
let wordinput = document.getElementById('word');
|
||||||
let btnLookup = document.getElementById('btnLookup');
|
let btnLookup = document.getElementById('btnLookup');
|
||||||
|
let v = location.hash.substring(6);
|
||||||
|
wordinput.value = v;
|
||||||
window.onhashchange = function() {
|
window.onhashchange = function() {
|
||||||
let v = location.hash.substring(6);
|
let v = location.hash.substring(6);
|
||||||
if(v.length>0){
|
if(v.length>0){
|
||||||
|
@ -86,13 +88,16 @@
|
||||||
btnLookup.click();
|
btnLookup.click();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//dictinput.onClick = {(e)=>{e.target.value="";}};
|
||||||
let filenames = location.search.substring(6);
|
let filenames = location.search.substring(6);
|
||||||
if(filenames.length>0){
|
if(filenames.length>0){
|
||||||
dictinput.setAttribute('accept',filenames);
|
dictinput.setAttribute('accept',filenames);
|
||||||
location.href="i:5fdictinput.click();setTimeout(()=>{btnLookup.click();dictinput.removeAttribute('accept');},70)";
|
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.onhashchange();
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue