feat: Passwortfeld-Sichtbarkeit mit SVG-Icons verbessert; Versionsnummer auf 1.0.59 erhöht
This commit is contained in:
6
app.py
6
app.py
@@ -2597,7 +2597,7 @@ body{background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSys
|
|||||||
<div class="field"><label>Passwort (min. 8 Zeichen)</label>
|
<div class="field"><label>Passwort (min. 8 Zeichen)</label>
|
||||||
<div style="display:flex;gap:.4rem">
|
<div style="display:flex;gap:.4rem">
|
||||||
<input type="password" id="ap-pw" placeholder="PiCopy," style="flex:1">
|
<input type="password" id="ap-pw" placeholder="PiCopy," style="flex:1">
|
||||||
<button type="button" class="btn sm ghost" id="ap-pw-toggle" onclick="togglePwVis('ap-pw','ap-pw-toggle')" style="flex-shrink:0;font-size:.85rem">👁</button>
|
<button type="button" class="btn sm ghost" id="ap-pw-toggle" onclick="togglePwVis('ap-pw','ap-pw-toggle')" style="flex-shrink:0;line-height:0"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/></svg></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn pri" onclick="saveAP()">✓ Speichern & Neustart</button>
|
<button class="btn pri" onclick="saveAP()">✓ Speichern & Neustart</button>
|
||||||
@@ -3071,7 +3071,9 @@ function togglePwVis(inputId, btnId){
|
|||||||
const inp=$(inputId), btn=$(btnId);
|
const inp=$(inputId), btn=$(btnId);
|
||||||
const show = inp.type==='password';
|
const show = inp.type==='password';
|
||||||
inp.type = show ? 'text' : 'password';
|
inp.type = show ? 'text' : 'password';
|
||||||
btn.textContent = show ? '🙈' : '👁';
|
const eye='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/></svg>';
|
||||||
|
const eyeOff='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><line x1="3" y1="3" x2="21" y2="21"/></svg>';
|
||||||
|
btn.innerHTML = show ? eyeOff : eye;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function connectWifi(){
|
async function connectWifi(){
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.58
|
1.0.59
|
||||||
Reference in New Issue
Block a user