-
Notifications
You must be signed in to change notification settings - Fork 25
/
printers.html
144 lines (132 loc) · 4.64 KB
/
printers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
title: Find a Driverless Printer
layout: default
---
<div class="container-fluid row">
<div class="col-md-12 col-sm-12" style="margin: 1em 2em;">
<h1>Find a Driverless Printer</h1>
<p>This page shows printers that will work without any additional software because they support the <a href="https://support.apple.com/en-us/HT201311" target="_blank">AirPrint™</a> and/or <a href="https://www.pwg.org/ipp/everywhere.html" target="_blank">IPP Everywhere™</a> standards for driverless printers. These printers also often support <a href="https://mopria.org/certified-products" target="_blank">Mopria®</a> as used on Android OS and Microsoft Windows®, and <a href="https://www.wi-fi.org/" target="_blank">Wi-Fi Direct Print Services</a> for printing directly via Wi-Fi.</p>
<form id="search" onSubmit="event.preventDefault(); update();" style="text-align: center;">
<select name="media" onChange="update();">
<option value="">All Makes</option>
<option>Astro-Med</option>
<option>Aurora</option>
<option>Brother</option>
<option>Canon</option>
<option>Conexant</option>
<option>CSR</option>
<option>Deli</option>
<option>Dell</option>
<option>Develop</option>
<option>Epson</option>
<option>f+ imaging</option>
<option>FUJIFILM</option>
<option>Fuji Xerox</option>
<option>G&G</option>
<option>Gestetner</option>
<option>HP</option>
<option>Infotec</option>
<option>iPrint</option>
<option>Jiyin</option>
<option>KODAK</option>
<option>Konica Minolta</option>
<option>Kyocera</option>
<option>Lanier</option>
<option>Lantronix</option>
<option>Lenovo</option>
<option>Lexmark</option>
<option>LG</option>
<option>LRS</option>
<option>Mi</option>
<option>Micro Focus</option>
<option>Muratec</option>
<option>NEC</option>
<option>NRG</option>
<option>NT-ware</option>
<option>NTT</option>
<option>OKI</option>
<option>Olivetti</option>
<option>Panasonic</option>
<option>Pantum</option>
<option>Princiao</option>
<option>Prink</option>
<option>Ricoh</option>
<option>Riso</option>
<option>Rollo</option>
<option>Samsung</option>
<option>Savin</option>
<option>SEH</option>
<option>Sharp</option>
<option>Sindoh</option>
<option>Star Micronics</option>
<option>TA</option>
<option>Toshiba</option>
<option>Xerox</option>
<option>ZINK</option>
</select>
<input type="search" style="width: 50%;" name="q" placeholder="Model, etc." autocomplete="org.openprinting.printers" onInput="update();">
</form>
<table id="printerTable" summary="Printers">
<caption id="printerCount">??? printers.</caption>
<thead>
<tr>
<th style="width: 80%;">Model</th>
<th style="width: 20%;">Standard(s)</th>
</tr>
</thead>
<tbody id="printers">
</tbody>
</table>
</div>
</div>
<script type="text/javascript">
function update()
{
var printers = null;
console.log("update()");
fetch('/assets/json/driverless.json')
.then(function(response) {
return response.json();
})
.then(function(json) {
console.log("Got driverless.json.");
printers = json.sort((a,b) => {
if (a.model < b.model)
return (-1);
else
return (1);
});
var form = document.getElementById("search");
var make = form.elements[0].options[form.elements[0].selectedIndex].value;
var q = form.elements[1].value.toLowerCase();
var r = new Array(), j = 0, count = 0;
for (var i = 0; i < printers.length; i ++)
{
var printer = printers[i];
if (printer.model == "_dummy_")
continue;
else if (make != "" && !printer.model.startsWith(make))
continue;
else if (q != "" && printer.model.toLowerCase().indexOf(q) < 0)
continue;
r[j++] = '<tr><td>' + printer.model + '</td><td>';
if (printer.airprt != 0 && printer.ippeve != 0)
r[j++] = 'AirPrint™, IPP Everywhere™';
else if (printer.airprt != 0)
r[j++] = 'AirPrint™';
else if (printer.ippeve != 0)
r[j++] = 'IPP Everywhere™';
r[j++] = '</td></tr>';
count ++;
}
if (count == 0)
document.getElementById("printerCount").innerHTML = 'No printers.';
else if (count == 1)
document.getElementById("printerCount").innerHTML = '1 printer.';
else
document.getElementById("printerCount").innerHTML = count + ' printers.';
document.getElementById("printers").innerHTML = r.join('');
});
}
update();
</script>