diff --git a/app/app.js b/app/app.js
index 0049046..393f6e0 100644
--- a/app/app.js
+++ b/app/app.js
@@ -81,6 +81,11 @@ function beep(freq, dur, when) {
let USER = null;
const isGuest = () => localStorage.getItem('gym_guest') === '1';
const webauthnOK = () => !!(window.PublicKeyCredential && navigator.credentials);
+/* platform-aware wording — same WebAuthn underneath, different branding on top */
+const IS_APPLE = /iPhone|iPad|iPod|Macintosh/.test(navigator.userAgent);
+const IS_ANDROID = /Android/.test(navigator.userAgent);
+const BIO = IS_APPLE ? 'Face ID / Touch ID' : IS_ANDROID ? 'fingerprint or face unlock' : 'your fingerprint, face or PIN';
+const VAULT = IS_APPLE ? 'iCloud Keychain' : IS_ANDROID ? 'Google Password Manager' : 'your password manager';
async function api(path, opts) {
const r = await fetch(path, Object.assign({ headers: { 'Content-Type': 'application/json' } }, opts));
const data = await r.json().catch(() => ({}));
@@ -241,9 +246,9 @@ function streakWeeks() {
}
/* ---------- media ---------- */
-const imgEl = (ex, cls) => ``;
+const imgEl = (ex, cls) => ``;
/* big autoplay animation for single-exercise views; tap pauses (swaps to still) */
-const mediaEl = (ex, id) => `
⏸ tap to pause
`;
+const mediaEl = (ex, id) => `
⏸ tap to pause
`;
function bindMediaToggle(media, ex) {
if (!media) return;
media.onclick = () => {
@@ -511,6 +516,7 @@ function renderView() {
clearInterval(elapsedInt);
closeAllModals();
const app = $('#app');
+ if (!sameView) { app.classList.remove('vfade'); void app.offsetWidth; app.classList.add('vfade'); }
if (!USER && !isGuest()) viewLogin(app);
else if (view === 'plan' && rest[0] === 'r') viewRoutineEdit(app, rest[1]);
else switch (view) {
@@ -560,7 +566,7 @@ function viewLogin(app) {
` : `
This browser doesn't support passkeys — you can still use GymLog locally on this device.
`}
-
Passkeys use Face ID / Touch ID — no passwords. Each profile keeps its own plan, workouts & body weight.
+
Passkeys use ${BIO} — no passwords. Each profile keeps its own plan, workouts & body weight.
`;
const bi = $('#lg-in');
if (bi) bi.onclick = async () => {
@@ -579,7 +585,7 @@ function viewLogin(app) {
function registerSheet(fromSettings) {
const m = openModal(`
Create your profile ✨
-
Pick a name, then confirm with Face ID / Touch ID. The passkey is saved in your iCloud Keychain — no password needed.
+
Pick a name, then confirm with ${BIO}. The passkey is saved in ${VAULT} — no password needed.
`);
@@ -1753,7 +1759,7 @@ function viewSettings(app) {
Tip
-
📱 In Safari: Share → Add to Home Screen to install GymLog as a full-screen app. All data stays on this device (localStorage) — export a backup now and then!
+
📱 ${IS_ANDROID ? 'In Chrome: ⋮ menu → Add to Home screen' : 'In Safari: Share → Add to Home Screen'} to install GymLog as a full-screen app. ${USER ? 'Your data syncs with your profile — sign in anywhere to see it.' : 'Guest data stays on this device — export a backup now and then!'}