fungiorganic commited on
Commit
9ffe0fe
·
verified ·
1 Parent(s): 6b2316a

v0.3.12.37 phone apps 0.2.1 (location) + Android/Apple personal pages

Browse files
.gitattributes CHANGED
@@ -93,3 +93,6 @@ downloads/android/Cover-Charge-for-Display-v0.1.19-tablet.apk filter=lfs diff=lf
93
  downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
94
  downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
95
  downloads/android/Cover-Charge-for-Head-Chef-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
 
 
 
 
93
  downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
94
  downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
95
  downloads/android/Cover-Charge-for-Head-Chef-v0.2.0-phone.apk filter=lfs diff=lfs merge=lfs -text
96
+ downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk filter=lfs diff=lfs merge=lfs -text
97
+ downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk filter=lfs diff=lfs merge=lfs -text
98
+ downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk filter=lfs diff=lfs merge=lfs -text
downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eef24fbecde5281956606656d8efdb5c28ef3f725230a767c0f694f1f499296
3
+ size 165193
downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk.b64.txt ADDED
The diff for this file is too large to render. See raw diff
 
downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b61f2bcc062928698d4185a08d5c8f78aaf58ebd20e70a0cd83d67e34ad2feb
3
+ size 185673
downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk.b64.txt ADDED
The diff for this file is too large to render. See raw diff
 
downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c38884577dac6ea8f8c203f5d2da8d6d148c99840a6841439e00f8c24b371f80
3
+ size 169289
downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt ADDED
The diff for this file is too large to render. See raw diff
 
downloads/android/SHA256.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  ec2c45d04c0525137ca0ae97ddcf6575b7cf4ce6f3ec3d337286664f135585cc Cover-Charge-for-Head-Chef-v0.2.0-phone.apk
2
  72e378c67c9ee44818be6579d85f6272bf496ea4b501fd578e1c91b7b70b6cbb Cover-Charge-for-Staff-v0.2.0-phone.apk
3
  78fdd403d5ff0b37fb7798e7f05f61b580c320979955822b56bb501281f4fd5f Cover-Charge-for-Managers-v0.2.0-phone.apk
 
1
+ 3eef24fbecde5281956606656d8efdb5c28ef3f725230a767c0f694f1f499296 Cover-Charge-for-Head-Chef-v0.2.1-phone.apk
2
+ c38884577dac6ea8f8c203f5d2da8d6d148c99840a6841439e00f8c24b371f80 Cover-Charge-for-Staff-v0.2.1-phone.apk
3
+ 7b61f2bcc062928698d4185a08d5c8f78aaf58ebd20e70a0cd83d67e34ad2feb Cover-Charge-for-Managers-v0.2.1-phone.apk
4
  ec2c45d04c0525137ca0ae97ddcf6575b7cf4ce6f3ec3d337286664f135585cc Cover-Charge-for-Head-Chef-v0.2.0-phone.apk
5
  72e378c67c9ee44818be6579d85f6272bf496ea4b501fd578e1c91b7b70b6cbb Cover-Charge-for-Staff-v0.2.0-phone.apk
6
  78fdd403d5ff0b37fb7798e7f05f61b580c320979955822b56bb501281f4fd5f Cover-Charge-for-Managers-v0.2.0-phone.apk
get/agate.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Agate</h1><p class="sub">Front of house · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Agate">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Agate</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Agate.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Agate">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/bisto.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Bisto (Preston)</h1><p class="sub">Head Chef · The Anchorage</p>
22
- <div class="badge">Cover Charge for Head Chef</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="chef" href="../downloads/android/Cover-Charge-for-Head-Chef-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Head Chef for Android">Download the app</a><a class="btn alt" data-open="chef" href="../downloads/android/Cover-Charge-for-Head-Chef-v0.2.0-phone.apk" aria-label="Open the app and sign in as Bisto">Open the app and sign in</a><p class="muted">Cover Charge for Head Chef v0.2.0, about 157 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="chef" href="../chef-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="chef" data-platform="iphone" href="../chef-app/index.html" aria-label="iPhone: open Cover Charge for Head Chef">iPhone: open Head Chef app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Bisto (Preston)</h1><p class="sub">Cover Charge for Head Chef</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Head-Chef-Bisto.apk" role="button" aria-label="Android: download Cover Charge for Head Chef, signed in as Bisto">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/cameron-mc.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Cameron Mc</h1><p class="sub">Front of house (temp) · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Cameron Mc">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Cameron Mc</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Cameron-Mc.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Cameron Mc">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/eilidh.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Eilidh</h1><p class="sub">Front of house · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Eilidh">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Eilidh</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Eilidh.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Eilidh">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/emily.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Emily</h1><p class="sub">Front of house · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Emily">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Emily</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Emily.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Emily">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/finn.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Finn (Paddy)</h1><p class="sub">Bar staff · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Finn">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Finn (Paddy)</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Finn.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Finn">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/gabrielle.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Gabrielle</h1><p class="sub">Front of house · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Gabrielle">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Gabrielle</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Gabrielle.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Gabrielle">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/gordon.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Gordon</h1><p class="sub">General Manager · The Anchorage</p>
22
- <div class="badge">Cover Charge for Managers</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Managers for Android">Download the app</a><a class="btn alt" data-open="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" aria-label="Open the app and sign in as Gordon">Open the app and sign in</a><p class="muted">Cover Charge for Managers v0.2.0, about 177 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="owner" href="../owner-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="owner" data-platform="iphone" href="../owner-app/index.html" aria-label="iPhone: open Cover Charge for Managers">iPhone: open Managers app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Gordon</h1><p class="sub">Cover Charge for Managers</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Managers-Gordon.apk" role="button" aria-label="Android: download Cover Charge for Managers, signed in as Gordon">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/harvey.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Harvey</h1><p class="sub">Kitchen porter (KP) · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Harvey">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Harvey</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Harvey.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Harvey">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/jack.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Jack</h1><p class="sub">Kitchen porter (KP) · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Jack">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Jack</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Jack.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Jack">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/james.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi James</h1><p class="sub">Owner · The Anchorage</p>
22
- <div class="badge">Cover Charge for Managers</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Managers for Android">Download the app</a><a class="btn alt" data-open="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" aria-label="Open the app and sign in as James">Open the app and sign in</a><p class="muted">Cover Charge for Managers v0.2.0, about 177 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="owner" href="../owner-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="owner" data-platform="iphone" href="../owner-app/index.html" aria-label="iPhone: open Cover Charge for Managers">iPhone: open Managers app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi James</h1><p class="sub">Cover Charge for Managers</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Managers-James.apk" role="button" aria-label="Android: download Cover Charge for Managers, signed in as James">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/lenny.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Lenny</h1><p class="sub">Commis Chef · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Lenny">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Lenny</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Lenny.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Lenny">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/lillie.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Lillie</h1><p class="sub">Kitchen porter (KP) · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Lillie">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Lillie</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Lillie.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Lillie">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/mia.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Mia</h1><p class="sub">Kitchen porter (KP) · The Anchorage</p>
22
- <div class="badge">Cover Charge for Staff</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Staff for Android">Download the app</a><a class="btn alt" data-open="staff" href="../downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk" aria-label="Open the app and sign in as Mia">Open the app and sign in</a><p class="muted">Cover Charge for Staff v0.2.0, about 161 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="staff" href="../staff-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="staff" data-platform="iphone" href="../staff-app/index.html" aria-label="iPhone: open Cover Charge for Staff">iPhone: open Staff app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Mia</h1><p class="sub">Cover Charge for Staff</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Staff-Mia.apk" role="button" aria-label="Android: download Cover Charge for Staff, signed in as Mia">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
get/tracy.html CHANGED
@@ -13,21 +13,37 @@ h1{font-size:26px;font-weight:600;margin:0;text-align:center}.sub{color:#b9ae98;
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
- .btn.alt{background:transparent;color:#d6a84a;border:1.5px solid #d6a84a}
 
17
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
18
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
19
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
20
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
21
- <h1>Hi Tracy</h1><p class="sub">Owner · The Anchorage</p>
22
- <div class="badge">Cover Charge for Managers</div><div class="badge">Current version v0.3.12.36</div>
23
- <p>Choose your phone: <b>Android phone</b> or <b>iPhone</b>. Both are below.</p>
24
- <section class="card plat" id="android" aria-labelledby="h-android"><h2 id="h-android">Android phone</h2><ol><li>Tap <b>Download the app</b>. If Chrome asks, tap <b>Download</b>, then <b>Open</b>.</li><li>If Android says it can't install from this source, tap <b>Settings</b>, turn on <b>Allow from this source</b>, then go back.</li><li>Tap <b>Install</b>, then <b>Done</b>.</li><li>Come back to this page and tap <b>Open the app and sign in</b>. It signs you in as you.</li></ol><a class="btn" data-apk="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" download aria-label="Download the app: Cover Charge for Managers for Android">Download the app</a><a class="btn alt" data-open="owner" href="../downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk" aria-label="Open the app and sign in as Tracy">Open the app and sign in</a><p class="muted">Cover Charge for Managers v0.2.0, about 177 KB. Next time, open it from your apps.</p><p class="muted" style="margin:0"><a style="color:#d6a84a;display:block;min-height:44px;line-height:44px;text-align:center;font-size:15px" data-app="owner" href="../owner-app/index.html">Or use the web version in Chrome instead</a></p></section><section class="card plat" id="iphone" aria-labelledby="h-iphone"><h2 id="h-iphone">iPhone</h2><ol><li>Open this page in <b>Safari</b>.</li><li>Tap the gold button below. The app opens and signs you in.</li><li>In the app, tap <b>Share</b> (the square with an arrow), then <b>Add to Home Screen</b>, then <b>Add</b>.</li><li>Open it from your Home Screen.</li></ol><a class="btn" data-app="owner" data-platform="iphone" href="../owner-app/index.html" aria-label="iPhone: open Cover Charge for Managers">iPhone: open Managers app</a></section>
25
- <div class="card" id="go"><p class="muted" id="nolink">Open the personal link your manager sent you. It signs you in as you, with your name, job and access already set up. Without it you will be asked to sign in with your own details or the code your manager gives you.</p>
26
- <p class="muted hide" id="haslink">Your link signs you in as you, with everything already set up. This link works for 72 hours from when your manager made it, on one phone. Keep it to yourself.</p></div>
27
- <div class="card" id="new-icon"><b>New icon (October 2026)</b><p class="muted">The apps now have a new, bolder icon and the short name <b>Anchorage</b>. If you added the app before, your old icon stays as it was: press and hold the old icon, remove it from your Home screen, then open this page again (from your own link) and add the app back. It signs you in again from your link.</p></div>
28
- <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){var m=/[#&]i=([A-Za-z0-9_-]{16,})/.exec(location.hash);if(!m)return;var t=m[1];
29
- var AND=/Android/i.test(navigator.userAgent);
30
- // v0.3.12.37: on Android the personal link is only used by the app, so web links never carry it.
31
- [].forEach.call(document.querySelectorAll('[data-app]'),function(a){if(AND&&document.querySelector('[data-open]'))return;a.href='../'+a.dataset.app+'-app/index.html?invite='+t;a.rel='noreferrer'});
32
- [].forEach.call(document.querySelectorAll('[data-open]'),function(a){var v=a.dataset.open;a.href='intent://signin?i='+t+'#Intent;scheme=covercharge-'+v+';package=com.covercharge.'+v+'.phone;S.browser_fallback_url='+encodeURIComponent(new URL(a.getAttribute('href'),location.href).href)+';end'});
33
- document.getElementById('nolink').classList.add('hide');document.getElementById('haslink').classList.remove('hide');})();</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .card{background:#16130e;border:1px solid #2e2a22;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
14
  .btn{display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;text-decoration:none;background:#d6a84a;color:#1a1408;font-weight:600;border-radius:12px;padding:14px;font-size:19px}
15
  .plat{display:flex;flex-direction:column;gap:12px}.plat h2{font-size:22px;margin:0;color:#d6a84a}body{font-size:17px}
16
+ .btn.alt{background:#1f1c17;color:#d6a84a;border:2px solid #d6a84a}
17
+ .btn.big{min-height:96px;font-size:30px;border-radius:18px}.center{text-align:center}
18
  ol{margin:0;padding-left:20px;line-height:1.6;color:#e6dcc8}li b{color:#f3ead8}
19
  .muted{color:#9d927d;font-size:13px;line-height:1.45}.hide{display:none}
20
  footer{text-align:center;color:#6f6656;font-size:12px;margin-top:6px}footer b{color:#a8967a;font-weight:600}</style></head><body><main>
21
  <img class="logo" src="../customer-app/brand-logo.png" alt="The Anchorage logo">
22
+ <h1>Hi Tracy</h1><p class="sub">Cover Charge for Managers</p>
23
+ <a class="btn big" id="and" href="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk" data-b64="../downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk.b64.txt" data-name="Cover-Charge-for-Managers-Tracy.apk" role="button" aria-label="Android: download Cover Charge for Managers, signed in as Tracy">Android</a>
24
+ <p class="muted center">Install it, then open it. It opens straight into your account.</p>
25
+ <p class="muted center hide" id="st"></p>
26
+ <a class="btn big alt" id="ios" href="#" role="button" aria-label="Apple">Apple</a>
27
+ <p class="center hide" id="soon" tabindex="-1">The Apple app is coming soon. Please ask your manager.</p>
28
+
29
+ <footer>powered by <b>CoverCharge</b></footer></main><script>(function(){
30
+ var m=/[#&]i=([A-Za-z0-9_-]{16,64})/.exec(location.hash),t=m?m[1]:null,st=document.getElementById('st'),and=document.getElementById('and'),ios=document.getElementById('ios'),soon=document.getElementById('soon');
31
+ function say(x){st.textContent=x;st.classList.remove('hide')}
32
+ function bake(u8,code){var d=new DataView(u8.buffer),n=u8.length,e=-1;for(var i=n-22;i>=Math.max(0,n-65557);i--){if(d.getUint32(i,true)===0x06054b50){e=i;break}}
33
+ if(e<0)throw 'eocd';var cd=d.getUint32(e+16,true),magic='';for(var k=cd-16;k<cd;k++)magic+=String.fromCharCode(u8[k]);if(magic!=='APK Sig Block 42')throw 'block';
34
+ var size=Number(d.getBigUint64(cd-24,true)),s0=cd-size-8,p=s0+8,end=cd-24,pairs=[];
35
+ while(p<end){var l=Number(d.getBigUint64(p,true)),id=d.getUint32(p+8,true);pairs.push([id,u8.slice(p+12,p+8+l)]);p+=8+l}
36
+ pairs=pairs.filter(function(x){return x[0]!==0x31494343});var val=new TextEncoder().encode(code),need=12+val.length,pad=pairs.filter(function(x){return x[0]===0x42726577})[0];
37
+ if(!pad||pad[1].length<need)throw 'room';pairs=pairs.map(function(x){return x[0]===0x42726577?[x[0],x[1].slice(0,x[1].length-need)]:x});pairs.push([0x31494343,val]);
38
+ var out=new Uint8Array(u8),q=s0+8,o=new DataView(out.buffer);pairs.forEach(function(x){o.setBigUint64(q,BigInt(4+x[1].length),true);o.setUint32(q+8,x[0],true);out.set(x[1],q+12);q+=12+x[1].length});
39
+ if(q!==end)throw 'size';return out}
40
+ var busy=false;
41
+ function go(){if(busy)return;busy=true;say('Downloading your app…');
42
+ fetch(and.dataset.b64,{cache:'no-store'}).then(function(r){if(!r.ok)throw 'http';return r.text()}).then(function(b){var s=atob(b.replace(/\s+/g,'')),u=new Uint8Array(s.length);for(var i=0;i<s.length;i++)u[i]=s.charCodeAt(i);
43
+ var f=t?bake(u,t):u,url=URL.createObjectURL(new Blob([f],{type:'application/vnd.android.package-archive'})),a=document.createElement('a');a.href=url;a.download=and.dataset.name;document.body.appendChild(a);a.click();a.remove();
44
+ say(t?'Downloaded. Tap Open, then Install, then Open. The app opens already signed in as you.':'Downloaded. Tap Open, then Install, then Open.');busy=false})
45
+ .catch(function(){busy=false;say('The download didn’t start. Tap Android to try again.')})}
46
+ and.onclick=function(ev){ev.preventDefault();go()};
47
+ ios.onclick=function(ev){ev.preventDefault();soon.classList.remove('hide');soon.focus()};
48
+ var A=/Android/i.test(navigator.userAgent)&&!/CoverChargePhone\//.test(navigator.userAgent);if(A&&window.BigInt&&window.fetch)go();
49
+ })();</script></body></html>
phone/chef/latest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "versionCode": 1,
3
- "versionName": "0.2.0",
4
- "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Head-Chef-v0.2.0-phone.apk",
5
- "sha256": "ec2c45d04c0525137ca0ae97ddcf6575b7cf4ce6f3ec3d337286664f135585cc"
6
  }
 
1
  {
2
+ "versionCode": 2,
3
+ "versionName": "0.2.1",
4
+ "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Head-Chef-v0.2.1-phone.apk",
5
+ "sha256": "3eef24fbecde5281956606656d8efdb5c28ef3f725230a767c0f694f1f499296"
6
  }
phone/owner/latest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "versionCode": 1,
3
- "versionName": "0.2.0",
4
- "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Managers-v0.2.0-phone.apk",
5
- "sha256": "78fdd403d5ff0b37fb7798e7f05f61b580c320979955822b56bb501281f4fd5f"
6
  }
 
1
  {
2
+ "versionCode": 2,
3
+ "versionName": "0.2.1",
4
+ "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Managers-v0.2.1-phone.apk",
5
+ "sha256": "7b61f2bcc062928698d4185a08d5c8f78aaf58ebd20e70a0cd83d67e34ad2feb"
6
  }
phone/staff/latest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "versionCode": 1,
3
- "versionName": "0.2.0",
4
- "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Staff-v0.2.0-phone.apk",
5
- "sha256": "72e378c67c9ee44818be6579d85f6272bf496ea4b501fd578e1c91b7b70b6cbb"
6
  }
 
1
  {
2
+ "versionCode": 2,
3
+ "versionName": "0.2.1",
4
+ "url": "https://covercharge-apps.static.hf.space/downloads/android/Cover-Charge-for-Staff-v0.2.1-phone.apk",
5
+ "sha256": "c38884577dac6ea8f8c203f5d2da8d6d148c99840a6841439e00f8c24b371f80"
6
  }