Add search printer model in Setup wizard (#2692)

Add search printer model in Setup wizard (#2563)
Adopted from #2464

Co-authored-by: ZdDroid <601865048@qq.com>
This commit is contained in:
Noisyfox 2023-11-11 15:13:24 +08:00 committed by GitHub
parent de35ff9a6c
commit 714667ee1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 247 additions and 10 deletions

View file

@ -19,6 +19,11 @@
<div id="Title">
<div class="trans" tid="t10">Printer Selection</div>
</div>
<div class="wrap">
<div class="search">
<input type="text" class="searchTerm" placeholder="Device keyword" oninput="textInput(this)">
</div>
</div>
<div id="Content" class="ZScrol">
<!--<div class="OneVendorBlock" Vendor="BBL">
@ -112,4 +117,19 @@
</body>
<script>
document.onkeydown = function (event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if (window.event) {
try { e.keyCode = 0; } catch (e) { }
e.returnValue = true;
}
};
let pModel = {};
let ModelNozzleSelected = {};
function textInput(obj) {
FilterModelList(obj.value);
}
</script>
</html>