diff --git a/index.html b/index.html
index 7a8bfe1..d9ebd82 100644
--- a/index.html
+++ b/index.html
@@ -847,6 +847,7 @@
To access local card reader, you need pysim-otaman-server running locally.
To connect, install pysim-otaman-server: git clone https://github.com/anttro/pysim-otaman-server.git and start it.
Refer to pysim-otaman-server README files for details. Click Connect when pysim-otaman-server is ready
+
@@ -2721,7 +2722,8 @@ async function pysimConnect() {
btn.disabled = true;
btn.textContent = t('Connecting...');
const statusEl = document.getElementById('pysim-status');
- statusEl.innerHTML = '' + t('Checking card...') + '';
+ const msgEl = document.getElementById('pysim-connect-msg');
+ msgEl.innerHTML = '' + t('Checking card...') + '';
pysimSetConnected('spin');
try {
// Version check
@@ -2729,13 +2731,13 @@ async function pysimConnect() {
if (!ver.version) throw new Error('No version');
const sv = (ver.version || '').split('.').map(Number);
if (sv[0] < 1 || (sv[0] === 1 && sv[1] < 0)) {
- statusEl.innerHTML = 'Server version ' + esc(ver.version) + ' is outdated. Please update pysim-otaman-server.';
+ msgEl.innerHTML = 'Server version ' + esc(ver.version) + ' is outdated. Please update pysim-otaman-server.';
btn.textContent = t('Connect');
btn.disabled = false;
return;
}
if (sv[0] > 1) {
- statusEl.innerHTML = 'Warning: server version ' + esc(ver.version) + ' is newer than expected. Update OTAMan for full compatibility.';
+ msgEl.innerHTML = 'Warning: server version ' + esc(ver.version) + ' is newer than expected. Update OTAMan for full compatibility.';
}
const status = await pysimFetch('/api/status');
if (!status.app_ready) {
@@ -2763,7 +2765,7 @@ async function pysimConnect() {
pysimSetConnected(false);
const hint = t(pysimIsLikelyBlocked() ? 'pysim-blocked-hint' : 'pysim-unreachable-hint')
.replace('{url}', esc(pysimBase));
- statusEl.innerHTML =
+ msgEl.innerHTML =
'' + t('Connection failed:') + ' ' + esc(e.message) + '' +
'
' + hint + '';
btn.textContent = t('Connect');