Skip to content

Commit

Permalink
Update access-key.html
Browse files Browse the repository at this point in the history
  • Loading branch information
5H2 authored Apr 16, 2024
1 parent 130ba95 commit 249c801
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions access-key.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}

.container {
position: relative;
background-color: #2d333b;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand Down Expand Up @@ -49,10 +48,10 @@
transition: border-color 0.3s ease;
color: #fff;
}

input[type="text"]::placeholder {
color: #6c7a8c;
}
color: #6c7a8c; /* Set placeholder color to white */
}

input[type="text"]:focus {
outline: none;
Expand All @@ -63,7 +62,7 @@
background-color: #515c6b;
color: #fff;
border: none;
padding: 0; /* Changed */
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
Expand All @@ -77,7 +76,8 @@
margin-top: 20px;
color: #e74c3c;
}



.btn-corner {
position: absolute;
bottom: 20px;
Expand All @@ -101,6 +101,7 @@
.btn-corner:hover {
background-color: #414954;
}

</style>
</head>
<body>
Expand All @@ -115,8 +116,10 @@ <h1>Skyblock Portfolio</h1>

<div id="result"></div>
</div>

<button class="btn-corner"><img src="https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0a6cc3c481a15a141738_icon_clyde_white_RGB.png" alt="discord"></button>



<script>
const allowedKeys = ["3Fb8R6z2Q", "P7nE9G2rD", "a4T6pV9Kc", "J5mR8Xq0W", "L2sE7jN9Y", "1Kl3D5h8S", "Z9xV2cR4F", "H6fA1wV3Q", "C8mB2nV6J", "R4zG7sF9W"];
Expand All @@ -126,7 +129,7 @@ <h1>Skyblock Portfolio</h1>
event.preventDefault();
const inputKey = document.getElementById("accessKey").value;
if (allowedKeys.includes(inputKey)) {
window.location.href = "user/" + inputKey;
window.location.href = "user/" + inputKey + ".html";
} else {
document.getElementById("result").innerText = "That key does not exist. Would you like to purchase a key?";
}
Expand Down

0 comments on commit 249c801

Please sign in to comment.