Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
soojeongmin authored Jul 25, 2024
1 parent d525142 commit a7b9934
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions Main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,46 +24,6 @@
display: none;
}

#login-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: absolute;
width: 200px;
height: 200px;
color: white;
border-radius: 15px;
padding: 30px;
background-color: black;
}

#login-container input {
margin: 5px 0;
padding: 10px;
width: 100%;
box-sizing: border-box;
}

#login-container button {
margin: 5px 0;
padding: 10px;
width: 100%;
cursor: pointer;
border: none;
background-color: #FBC70E;
color: black;
}

#login-container button:hover {
background-color: rgb(255, 187, 0);
}

#login-error {
color: red;
display: none;
}

.modal {
display: none;
position: fixed;
Expand Down Expand Up @@ -117,13 +77,6 @@
</head>

<body>
<div id="login-container">
<h2>LOGIN</h2>
<input type="text" id="username" placeholder="username">
<input type="password" id="password" placeholder="password">
<button onclick="login()">로그인</button>
<p id="login-error">아이디 혹은 비밀번호가 잘못되었습니다.</p>
</div>

<div id="game-container"></div>

Expand All @@ -136,17 +89,6 @@ <h2>LOGIN</h2>
</div>

<script>
function login() {
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;

if (username === 'user' && password === 'pass') {
document.getElementById('login-container').style.display = 'none';
document.getElementById('game-container').style.display = 'block';
} else {
document.getElementById('login-error').style.display = 'block';
}
}

const config = {
type: Phaser.AUTO,
Expand Down

0 comments on commit a7b9934

Please sign in to comment.