Skip to content

Commit

Permalink
Enhance UI with new styles and interactivity for solution and notice …
Browse files Browse the repository at this point in the history
…elements
  • Loading branch information
An0n-00 committed Feb 10, 2025
1 parent 6f33888 commit 5f3dd8c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 21 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ main form {
}

#solution div:hover {
background-color: #3700b3;
background-color: #1f1f1f;
border: 1px solid #3700b3;
cursor: pointer;
}

#solution h3 {
Expand Down Expand Up @@ -148,6 +150,7 @@ footer {
width: 70%;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
}

#notice p {
Expand All @@ -165,4 +168,20 @@ footer {
#notice a:hover {
color: #3700b3;
text-decoration: underline;
}
}

.dropdown {
position: relative;
display: inline-block;
}

.dropbtn {
background-color: #6200ea;
color: #ffffff;
padding: 10px;
font-size: 16px;
border: none;
cursor: pointer;
border-radius: 5px;
}

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ showAlert('Please enter a Menti link.', 'error');

document.getElementById('getAnswersForm').addEventListener('submit', (e) => {e.preventDefault();});

document.getElementById('notice').addEventListener('click', (e) => {
document.getElementById('notice').style.display = 'none';
});

document.getElementById('getAnswers').addEventListener('click', async function() {
let mentiLink = document.getElementById('mentiLink').value;
if (mentiLink === '' || !mentiLink.includes('menti.com')) {
Expand Down

0 comments on commit 5f3dd8c

Please sign in to comment.