-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (68 loc) · 2.34 KB
/
Copy pathindex.html
File metadata and controls
68 lines (68 loc) · 2.34 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Open Ticket Scanner — Set up device</title>
<style>
:root { color-scheme: dark; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0b0f14;
color: #e6edf3;
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
padding: 24px;
}
.card {
max-width: 420px;
width: 100%;
background: #161b22;
border: 1px solid #2a323c;
border-radius: 16px;
padding: 28px;
text-align: center;
}
h1 { font-size: 20px; margin: 0 0 8px; }
p { color: #9aa7b4; font-size: 14px; line-height: 1.5; }
a.button {
display: block;
margin: 18px 0 10px;
background: #3b82f6;
color: #fff;
text-decoration: none;
font-weight: 700;
padding: 14px;
border-radius: 10px;
}
.stores { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.stores a { color: #3b82f6; font-size: 14px; text-decoration: none; }
</style>
</head>
<body>
<div class="card">
<h1>Set up this scanner</h1>
<p>
If Open Ticket Scanner is installed, this link opens it automatically. Otherwise, install
the app and tap the button below.
</p>
<a class="button" id="open" href="#">Open in Open Ticket Scanner</a>
<p><a id="browser" href="#">…or use it in your browser →</a></p>
<div class="stores">
<a href="https://apps.apple.com/app/id6784664554">App Store</a>
<a href="https://play.google.com/store/apps/details?id=nl.fruitcake.openticketscanner">Google Play</a>
</div>
</div>
<script>
// Fall back to the custom scheme, preserving the query params, so an
// installed app claims the link. Also offer the static web scanner, which
// imports the same ?endpoint=... payload — no install required.
var search = window.location.search;
document.getElementById('open').href = 'openticketscanner://configure' + search;
document.getElementById('browser').href = '/scan/' + search;
</script>
</body>
</html>