소스 검색

Hide/show password

master
gituser 1 주 전
부모
커밋
4c07783a43
4개의 변경된 파일55개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    0
      .cproject
  2. 1
    0
      .gitignore
  3. 52
    2
      LEDLamp.ino
  4. 1
    1
      sloeber.ino.cpp

+ 1
- 0
.cproject 파일 보기

</storageModule> </storageModule>
<storageModule moduleId="refreshScope"/> <storageModule moduleId="refreshScope"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/> <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
</cproject> </cproject>

+ 1
- 0
.gitignore 파일 보기

/core /core
/libraries /libraries
/Release /Release
/sloeber.ino.cpp

+ 52
- 2
LEDLamp.ino 파일 보기

R"rawliteral( R"rawliteral(
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

<script>
function togglePassword() {
const pass = document.getElementById("pass");
const eye = document.querySelector(".toggle-eye");
if (pass.type === "password") {
pass.type = "text";
eye.textContent = "❌";
} else {
pass.type = "password";
eye.textContent = "👁";
}
}
</script>

<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wemos Setup</title> <title>Wemos Setup</title>
word-break: break-all; word-break: break-all;
} }


.pw-wrapper {
position: relative;
width: 100%;
margin: 8px 0;
}
.pw-wrapper input {
width: 100%;
padding: 12px 40px 12px 12px; /* Platz für Icon rechts */
border-radius: 10px;
border: none;
outline: none;
font-size: 14px;
box-sizing: border-box;
}
.toggle-eye {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
font-size: 16px;
opacity: 0.6;
user-select: none;
transition: 0.2s;
}
.toggle-eye:hover {
opacity: 1;
}

@keyframes fadeIn { @keyframes fadeIn {
from {opacity: 0; transform: translateY(10px);} from {opacity: 0; transform: translateY(10px);}
to {opacity: 1; transform: translateY(0);} to {opacity: 1; transform: translateY(0);}


<form action="/save" method="POST"> <form action="/save" method="POST">
<input name="ssid" placeholder="WLAN Name (SSID)"> <input name="ssid" placeholder="WLAN Name (SSID)">
<input name="pass" type="password" placeholder="Passwort">

<div class="pw-wrapper">
<input id="pass" name="pass" type="password" placeholder="Passwort">
<span class="toggle-eye" onclick="togglePassword()">👁</span>
</div>
<button type="submit">Verbinden</button> <button type="submit">Verbinden</button>
</form> </form>



+ 1
- 1
sloeber.ino.cpp 파일 보기

//This is a automatic generated file //This is a automatic generated file
//Please do not modify this file //Please do not modify this file
//If you touch this file your change will be overwritten during the next build //If you touch this file your change will be overwritten during the next build
//This file has been generated on 2026-06-07 14:55:03
//This file has been generated on 2026-06-07 15:50:46


#include "Arduino.h" #include "Arduino.h"
#include "Arduino.h" #include "Arduino.h"

Loading…
취소
저장