Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
470 lines (436 loc) · 26.8 KB
/
Copy pathindex.html
File metadata and controls
470 lines (436 loc) · 26.8 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PrintBridge - Free Office Network Printing | Print from Phone & PC</title>
<meta name="description" content="Print from any phone, tablet, or computer to any office printer without installing an app or creating accounts. Free, open-source network printing for Windows and Mac.">
<link rel="canonical" href="https://devnithdev.github.io/printbridge-updates/">
<meta name="keywords" content="PrintBridge, office printing, network printer, print from phone, google cloud print alternative, print without app, windows print server, mac print server, shared printer">
<meta property="og:type" content="website">
<meta property="og:site_name" content="PrintBridge">
<meta property="og:url" content="https://devnithdev.github.io/printbridge-updates/">
<meta property="og:title" content="PrintBridge - Free Office Network Printing | Print from Phone & PC">
<meta property="og:description" content="Print from any phone or computer to any printer in the office. No phone apps, no accounts. Download for Windows and Mac.">
<meta property="og:image" content="https://raw.githubusercontent.com/devnithdev/printbridge/main/Source%20code/installer/guide-img/printbridge-badge.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="PrintBridge - Free Office Network Printing">
<meta name="twitter:description" content="Print from any phone or computer to any printer in the office. No phone apps, no accounts.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/devnithdev/printbridge/main/Source%20code/installer/guide-img/printbridge-badge.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "PrintBridge",
"operatingSystem": "Windows 10, Windows 11, macOS 12+",
"applicationCategory": "BusinessApplication",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"description": "Print from any phone, tablet, or computer to any printer in the office. One main computer runs the printing page, computers with printers share them, and everyone prints from a browser or virtual printer with no apps or accounts.",
"url": "https://devnithdev.github.io/printbridge-updates/",
"downloadUrl": "https://github.com/devnithdev/printbridge-updates/releases/latest",
"softwareVersion": "4.2.27",
"license": "https://opensource.org/licenses/MIT",
"author": {
"@type": "Person",
"name": "Devnith",
"url": "https://github.com/devnithdev"
}
}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400&display=swap" rel="stylesheet">
<link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20width%3D%22100%22%20height%3D%22100%22%3E%3ClinearGradient%20id%3D%22dvg%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%22.36%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23f6ead0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d9b977%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20rx%3D%2223%22%20fill%3D%22url(%23dvg)%22%2F%3E%3Cg%20transform%3D%22translate(50%2050)%20scale(2.1)%20translate(-25%20-22)%22%3E%3Cpath%20d%3D%22M9%2016h24v10a12%2012%200%200%201-12%2012h0A12%2012%200%200%201%209%2026z%22%20fill%3D%22%23fffaf0%22%20stroke%3D%22%235a4330%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M33%2020h3a5%205%200%200%201%200%2010h-3%22%20fill%3D%22none%22%20stroke%3D%22%235a4330%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20class%3D%22dv-g%22%20d%3D%22M8%2021h26v2h-1v2h-1v1h-4v-1h-1v-2h-1v-1h-3v1h-1v2h-1v1h-4v-1h-1v-2H9v-2z%22%20fill%3D%22%230b0b0d%22%20shape-rendering%3D%22crispEdges%22%2F%3E%3Cpath%20d%3D%22M15%2011c-2-2%202-4%200-6M22%2011c-2-2%202-4%200-6M29%2011c-2-2%202-4%200-6%22%20fill%3D%22none%22%20stroke%3D%22%237a5a3a%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E">
<style>
/* PrintBridge colours (the same as the app: desktop/lib/brand.js) */
:root {
--brand: #1E6FBF;
--brand-dark: #123F73;
--green: #21A67B;
--bg: #f5f7fa;
--card: #ffffff;
--ink: #1f2933;
--soft: #5b6775;
--line: #e3e8ee;
--brand-text: #1E6FBF;
--halo: rgba(30, 111, 191, 0.10);
--gold: #7a5f2e; /* the signature's gold, dark enough to read on white */
--serif: 'Cormorant Garamond', Georgia, serif;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0f1419;
--card: #171e26;
--ink: #e6edf3;
--soft: #9aa7b4;
--line: #263241;
--brand-text: #6aa9ea;
--halo: rgba(106, 169, 234, 0.14);
--gold: #d9c08a;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--bg: #0f1419;
--card: #171e26;
--ink: #e6edf3;
--soft: #9aa7b4;
--line: #263241;
--brand-text: #6aa9ea;
--halo: rgba(106, 169, 234, 0.14);
--gold: #d9c08a;
color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
display: flex;
flex-direction: column;
-webkit-font-smoothing: antialiased;
}
/* The light/dark switch, top right */
.theme {
position: fixed; top: 16px; right: 16px;
width: 40px; height: 40px; border-radius: 50%;
border: 1px solid var(--line); background: var(--card); color: var(--ink);
display: grid; place-items: center; cursor: pointer;
transition: border-color .15s, transform .15s;
}
.theme:hover { border-color: var(--brand-text); }
.theme:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .theme { position: absolute; } }
/* Like the print page: the button shows what it switches to (moon in light mode). */
.theme .sun { display: none; }
:root[data-dark] .theme .moon { display: none; }
:root[data-dark] .theme .sun { display: block; }
main {
flex: 1;
display: flex; flex-direction: column; align-items: center;
padding: 72px 16px 32px;
}
.hero { min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); display: grid; place-items: center; width: 100%; }
.hint-more { display: block; text-align: center; margin: 18px auto 0; font-size: 13px; color: var(--soft); text-decoration: none; }
.hint-more:hover { color: var(--brand-text); }
/* How to install, and questions */
section.more { width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 0 8px; }
section.more h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin: 0 0 16px; }
.tabs button {
border: 0; background: transparent; color: var(--soft);
font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 7px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--halo); color: var(--brand-text); }
.tabs button:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 1px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel[hidden] { display: none; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 14px 40px; }
ol.steps li:last-child { padding-bottom: 0; }
ol.steps li::before {
content: counter(step); position: absolute; left: 0; top: 0;
width: 26px; height: 26px; border-radius: 50%;
background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
display: grid; place-items: center;
}
ol.steps b { font-weight: 600; }
.steps .sub { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }
.order { margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.order b { color: var(--ink); font-weight: 600; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
list-style: none; cursor: pointer; padding: 16px 36px 16px 2px; position: relative;
font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 4px; }
.faq p { margin: 0 0 16px; color: var(--soft); padding-right: 24px; }
.faq-link {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
background: var(--card); border: 1px solid var(--line); border-radius: 14px;
padding: 18px 22px; color: var(--ink); text-decoration: none; font-size: 18px;
transition: border-color .15s;
}
.faq-link:hover { border-color: var(--brand-text); }
.faq-link b { display: block; font-size: 16px; font-weight: 600; }
.faq-link .sub { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }
.card {
width: 100%; max-width: 440px;
background: var(--card);
border: 1px solid var(--line);
border-radius: 18px;
padding: 40px 32px 32px;
text-align: center;
overflow: hidden;
position: relative;
}
/* The blue/green bar every PrintBridge page has */
.card::before {
content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
background: linear-gradient(90deg, var(--brand) 0 80%, var(--green) 80%);
}
.logo {
width: 96px; height: 96px; margin: 4px auto 18px;
border-radius: 28px;
background: var(--halo);
color: var(--brand-text);
display: grid; place-items: center;
}
.logo .mug { font-size: 52px; line-height: 1; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.tagline { color: var(--soft); margin: 0 0 28px; }
.download {
display: flex; align-items: center; justify-content: center; gap: 10px;
width: 100%;
padding: 15px 20px;
border-radius: 12px;
background: var(--brand); color: #fff;
font-size: 17px; font-weight: 600; text-decoration: none;
transition: background .15s, transform .1s;
}
.download:hover { background: var(--brand-dark); }
.download:active { transform: translateY(1px); }
.download:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.download svg { width: 20px; height: 20px; flex: none; }
.meta { margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.meta a { color: var(--brand-text); text-decoration: none; font-weight: 600; }
.meta a:hover { text-decoration: underline; }
.note {
margin: 22px 0 0; padding: 12px 14px;
border-radius: 10px; background: var(--halo);
font-size: 14px; color: var(--ink); text-align: left;
}
.note[hidden] { display: none; }
footer {
padding: 28px 16px 28px; text-align: center;
font-size: 13px; color: var(--soft);
}
/* The signature: the same coffee mark as clenol.lk and omil.lk. The cup sits
dimmed; pointing at it (or tapping it) slides in "by @devnithdev". */
.egg {
position: relative; display: inline-flex; align-items: center;
cursor: default; user-select: none; -webkit-user-select: none;
color: var(--gold); outline: none;
}
.egg .cup { font-size: 17px; line-height: 1; opacity: .6; transition: opacity .3s; }
.egg b {
position: absolute; left: 100%; top: 50%; margin-left: 12px;
translate: -10px -50%; opacity: 0; white-space: nowrap; pointer-events: none;
font: italic 400 1.05rem var(--serif); letter-spacing: .04em; color: var(--gold);
transition: opacity .6s, translate .6s cubic-bezier(.2,.7,.2,1);
}
.egg:hover .cup, .egg:focus-visible .cup, .egg.on .cup { opacity: 1; }
.egg:hover b, .egg:focus-visible b, .egg.on b { opacity: 1; translate: 0 -50%; }
.egg:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 420px) {
.card { padding: 36px 20px 24px; }
h1 { font-size: 26px; }
}
.video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Language picker, top left (lang.js) */
.lang-pick { position: absolute; top: 22px; left: 16px; display: flex; align-items: center; gap: 6px; color: var(--ink); z-index: 2; }
.lang-pick select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); max-width: 46vw; }
.lang-label { display: inline-flex; }
body { top: 0 !important; }
body > .skiptranslate, iframe.skiptranslate, #goog-gt-tt, .goog-te-banner-frame { display: none !important; }
</style>
<script src="lang.js" defer></script>
</head>
<body>
<div id="langPick" class="lang-pick"></div>
<button class="theme" id="theme" type="button" aria-label="Switch between light and dark">
<svg class="sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>
<svg class="moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg>
</button>
<main>
<div class="hero">
<div>
<div class="card">
<div class="logo" aria-hidden="true"><span class="mug notranslate" translate="no"><svg viewBox="0 0 100 100" width="1.2em" height="1.2em" style="display:block" aria-hidden="true"><linearGradient id="dv-top" x1="0" y1="0" x2=".36" y2="1"><stop stop-color="#f6ead0"/><stop offset="1" stop-color="#d9b977"/></linearGradient><rect width="100" height="100" rx="23" fill="url(#dv-top)"/><g transform="translate(50 50) scale(2.1) translate(-25 -22)"><path d="M9 16h24v10a12 12 0 0 1-12 12h0A12 12 0 0 1 9 26z" fill="#fffaf0" stroke="#5a4330" stroke-width="2.4" stroke-linejoin="round"/><path d="M33 20h3a5 5 0 0 1 0 10h-3" fill="none" stroke="#5a4330" stroke-width="2.4" stroke-linecap="round"/><path class="dv-g" d="M8 21h26v2h-1v2h-1v1h-4v-1h-1v-2h-1v-1h-3v1h-1v2h-1v1h-4v-1h-1v-2H9v-2z" fill="#0b0b0d" shape-rendering="crispEdges"/><path d="M15 11c-2-2 2-4 0-6M22 11c-2-2 2-4 0-6M29 11c-2-2 2-4 0-6" fill="none" stroke="#7a5a3a" stroke-width="2" stroke-linecap="round"/></g></svg></span></div>
<h1 class="notranslate" translate="no">PrintBridge</h1>
<p class="tagline">Print from any phone or computer to any printer in the office.</p>
<a class="download" id="download" href="https://github.com/devnithdev/printbridge-updates/releases/latest">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"/></svg>
<span id="label">Download PrintBridge</span>
</a>
<p class="meta"><span id="version">Latest version</span><span id="other"></span></p>
<p class="note" id="phone" hidden>
PrintBridge is installed on computers. Open this page on the Windows PC or Mac you want to set up.
To print from this phone, scan the sign on the office wall instead.
</p>
</div>
<a class="hint-more" href="#install">How to install ↓</a> <a class="hint-more" href="faq.html" style="margin-top:6px">Questions →</a>
<a class="hint-more" id="source" href="https://github.com/devnithdev/printbridge" style="margin-top:6px"><svg viewBox="0 0 16 16" width="14" height="14" fill="currentColor" aria-hidden="true" style="vertical-align:-2px;margin-right:5px"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>PrintBridge on GitHub →</a>
</div>
</div>
<section class="more" id="howto" aria-labelledby="howto-h">
<h2 id="howto-h">Watch the full guide (3 minutes)</h2>
<div class="video"><iframe id="guideVideo" src="https://www.youtube-nocookie.com/embed/Cx2plyjPf7w?rel=0" title="PrintBridge: the full guide" loading="lazy" allow="encrypted-media; picture-in-picture" allowfullscreen></iframe></div>
<p style="text-align:center;margin-top:10px;color:var(--soft);font-size:14px">Just want the phone part? <a id="phoneVideo" href="https://youtu.be/R-5XXXhX6Mg">Watch the short version</a>.</p>
</section>
<section class="more" id="install" aria-labelledby="install-h">
<h2 id="install-h">How to install</h2>
<div class="tabs" role="tablist" aria-label="Choose your computer">
<button type="button" role="tab" id="tab-win" aria-controls="p-win" aria-selected="true">Windows</button>
<button type="button" role="tab" id="tab-mac" aria-controls="p-mac" aria-selected="false" tabindex="-1">Mac</button>
</div>
<div class="panel" id="p-win" role="tabpanel" aria-labelledby="tab-win">
<ol class="steps">
<li><b>Download PrintBridgeSetup.exe</b> with the button above.<span class="sub">Windows 10 or 11, 64-bit.</span></li>
<li><b>Open it.</b> If a blue “Windows protected your PC” box appears, click <b>More info</b>, then <b>Run anyway</b>, and allow the changes.</li>
<li><b>Choose what this computer does:</b> the main computer, a computer with a printer, or one that only prints. Give it a name like “Front desk”.</li>
<li><b>On the main computer</b>, tick <b>Make this the only main computer</b> and <b>Give this computer a fixed address</b> (recommended).</li>
<li><b>Press Finish.</b> On the main computer, the sign for the wall opens: print it and put it up.</li>
</ol>
</div>
<div class="panel" id="p-mac" role="tabpanel" aria-labelledby="tab-mac" hidden>
<ol class="steps">
<li><b>Download the installer</b> with the button above.<span class="sub">Apple Silicon and Intel Macs.</span></li>
<li><b>Double-click PrintBridge.pkg.</b> If macOS says it can’t be opened, click <b>Done</b>, then open <b>System Settings → Privacy & Security</b>, scroll down and click <b>Open Anyway</b>.</li>
<li><b>Follow the installer</b> and enter your Mac password. A setup page opens in your browser.</li>
<li><b>Choose what this Mac does</b> and give it a name. On the main computer, tick <b>Make this the only main computer</b> and <b>Give this computer a fixed address</b>.</li>
<li><b>Press Set up PrintBridge</b> and keep the page open until it says <b>All set</b>.</li>
</ol>
</div>
<p class="order"><b>Order:</b> the main computer first, then the computers with printers, then the ones that only print. Each finds the main computer by itself.</p>
</section>
<section class="more" aria-labelledby="faq-h">
<h2 id="faq-h">Questions</h2>
<a class="faq-link" href="faq.html">
<span><b>All questions and answers</b><span class="sub">Setting it up, printing, printing from anywhere, updates, fixing problems.</span></span>
<span aria-hidden="true">→</span>
</a>
</section>
</main>
<footer>
<span class="egg notranslate" id="egg" tabindex="0" role="note" aria-label="by @devnithdev" translate="no"><span class="cup" aria-hidden="true"><svg viewBox="0 0 100 100" width="1.4em" height="1.4em" style="display:block" aria-hidden="true"><linearGradient id="dv-egg" x1="0" y1="0" x2=".36" y2="1"><stop stop-color="#f6ead0"/><stop offset="1" stop-color="#d9b977"/></linearGradient><rect width="100" height="100" rx="23" fill="url(#dv-egg)"/><g transform="translate(19 19) scale(1.29167)"><path d="M9 16h24v10a12 12 0 0 1-12 12h0A12 12 0 0 1 9 26z" fill="#fffaf0" stroke="#5a4330" stroke-width="2.4" stroke-linejoin="round"/><path d="M33 20h3a5 5 0 0 1 0 10h-3" fill="none" stroke="#5a4330" stroke-width="2.4" stroke-linecap="round"/><path class="dv-g" d="M8 21h26v2h-1v2h-1v1h-4v-1h-1v-2h-1v-1h-3v1h-1v2h-1v1h-4v-1h-1v-2H9v-2z" fill="#0b0b0d" shape-rendering="crispEdges"/><path d="M15 11c-2-2 2-4 0-6M22 11c-2-2 2-4 0-6M29 11c-2-2 2-4 0-6" fill="none" stroke="#7a5a3a" stroke-width="2" stroke-linecap="round"/></g></svg></span><b>by @devnithdev</b></span>
</footer>
<script>
(function () {
// --- light / dark ---------------------------------------------------------
var root = document.documentElement;
var media = window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null;
function saved() { try { return localStorage.getItem("pb-theme"); } catch (e) { return null; } }
function apply(theme) {
if (theme) root.setAttribute("data-theme", theme); else root.removeAttribute("data-theme");
var dark = theme ? theme === "dark" : !!(media && media.matches);
if (dark) root.setAttribute("data-dark", ""); else root.removeAttribute("data-dark");
var label = dark ? "Switch to light mode" : "Switch to dark mode";
var btn = document.getElementById("theme");
if (btn) { btn.setAttribute("aria-label", label); btn.title = label; }
}
apply(saved());
if (media && media.addEventListener) media.addEventListener("change", function () { apply(saved()); });
document.getElementById("theme").addEventListener("click", function () {
var next = root.hasAttribute("data-dark") ? "light" : "dark";
try { localStorage.setItem("pb-theme", next); } catch (e) { /* still switches for now */ }
apply(next);
});
// --- the signature: a tap shows "by @devnithdev" for a moment --------------
var egg = document.getElementById("egg"), eggTimer = null;
egg.addEventListener("click", function () {
egg.classList.add("on");
clearTimeout(eggTimer);
eggTimer = setTimeout(function () { egg.classList.remove("on"); }, 3200);
});
// --- which installer ------------------------------------------------------
// GitHub's "latest" addresses always point at the newest release, so this
// page never needs changing when a new version is published.
var BASE = "https://github.com/devnithdev/printbridge-updates/releases/latest/download/";
var FILES = {
windows: { url: BASE + "PrintBridgeSetup.exe", label: "Download for Windows", name: "Windows" },
mac: { url: BASE + "PrintBridge.pkg", label: "Download for Mac", name: "Mac" }
};
var ua = navigator.userAgent || "";
var platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
var isPhone = /iPhone|iPad|iPod|Android/i.test(ua) || (/Mac/.test(platform) && navigator.maxTouchPoints > 1);
var system = /Win/i.test(platform + ua) ? "windows" : /Mac/i.test(platform + ua) ? "mac" : null;
var button = document.getElementById("download");
var label = document.getElementById("label");
var other = document.getElementById("other");
function link(key) {
var a = document.createElement("a");
a.href = FILES[key].url;
a.textContent = FILES[key].name;
return a;
}
if (isPhone) {
document.getElementById("phone").hidden = false;
label.textContent = "See all downloads";
other.append(" · for ", link("windows"), " or ", link("mac"));
} else if (system) {
var alt = system === "windows" ? "mac" : "windows";
button.href = FILES[system].url;
label.textContent = FILES[system].label;
other.append(" · also for ", link(alt));
} else {
label.textContent = "See all downloads";
other.append(" · for ", link("windows"), " or ", link("mac"));
}
// --- How to install: Windows / Mac tabs (the visitor's system first) -----
var tabs = { windows: ["tab-win", "p-win"], mac: ["tab-mac", "p-mac"] };
function showTab(key) {
Object.keys(tabs).forEach(function (k) {
var on = k === key;
document.getElementById(tabs[k][0]).setAttribute("aria-selected", on ? "true" : "false");
document.getElementById(tabs[k][0]).tabIndex = on ? 0 : -1; // one Tab stop; arrows move between them
document.getElementById(tabs[k][1]).hidden = !on;
});
}
document.getElementById("tab-win").addEventListener("click", function () { showTab("windows"); });
document.getElementById("tab-mac").addEventListener("click", function () { showTab("mac"); });
document.querySelector(".tabs").addEventListener("keydown", function (e) {
if (["ArrowLeft", "ArrowRight", "Home", "End"].indexOf(e.key) === -1) return;
e.preventDefault();
var next = e.key === "Home" ? "windows" : e.key === "End" ? "mac"
: document.getElementById("tab-win").getAttribute("aria-selected") === "true" ? "mac" : "windows";
showTab(next);
document.getElementById(tabs[next][0]).focus();
});
if (system === "mac" && !isPhone) showTab("mac");
// --- the version number (just for show; the button works without it) -----
fetch("https://api.github.com/repos/devnithdev/printbridge-updates/releases/latest", { headers: { Accept: "application/vnd.github+json" } })
.then(function (r) { return r.ok ? r.json() : null; })
.then(function (rel) {
if (rel && rel.tag_name) document.getElementById("version").textContent = "Version " + rel.tag_name.replace(/^v/, "");
})
.catch(function () { /* stays "Latest version" */ });
})();
</script>
<script>
// Guide video: Sinhala or Tamil version when that language is picked, otherwise English.
(function () {
var ids = { si: "sP1R5dWC5Hw", ta: "5sw9WdwODrY" }, short = { si: "oU3_QhFajBc", ta: "4WxqC4cTjJE" }, f = document.getElementById("guideVideo"), pv = document.getElementById("phoneVideo");
function pick() {
var l = ""; try { l = localStorage.getItem("printbridge-language") || ""; } catch (e) {}
var u = "https://www.youtube-nocookie.com/embed/" + (ids[l] || "Cx2plyjPf7w") + "?rel=0";
if (f.src !== u) f.src = u;
pv.href = "https://youtu.be/" + (short[l] || "R-5XXXhX6Mg");
}
pick();
document.addEventListener("DOMContentLoaded", function () { // lang.js is deferred, so the picker exists only now
var sel = document.getElementById("langSelect");
if (sel) sel.addEventListener("change", pick);
});
})();
</script>
</body>
</html>